Está en la página 1de 17

Q. What should be the first tag in any HTML document?

title
html
document
head

Q. Which of the following defines a measurement in screen pixels?


pix
pixel
vmin
px

Q. Which of the following property is used to set the color of a text?


direction
letter-spacing
word-spacing
color

Q. Inside which HTML element do we put the JavaScript?


script
javascript
js
scripting

Q. How do you write "Hello World" in an alert box?


msgBox("Hello World");
alertBox("Hello World");
alert("Hello World");
msg("Hello World");

Q. The following package contains the business logic in MVC framework


Services
Models
Utils
Actions

Q. What exception is thrown when Servlet initialization fails?


Servlet Exception
Remote Exception
Server Error
Initialization Exception

Q. Which of the following consists of methods for contacting a database?


JDBC driver
Connection
Statement
DriverManager
Q. Which of the following required to be closed to close database operations?
Statement
Connection
All of these
ResultSet

Q. Methods which is not by default in servlets


doPost()
processRequest()
service()
doGet()

Q. Why is software engineering knowledge required?


To increase software costs
To lower demands
To deliver it fast
To improve software quality

Q. SE is about developing _____ software, meeting _____, on _____, within _____, as _____ occur in
the business.
Quick, technology requirements, site, budget, work
Quality, technology requirements, site, business boundary, changes
Quick, customer requirements, site, business boundary, work
Quality, customer requirements, time, budget, changes

Q. SE principle on modular decomposition recommends _____ coupling and _____ cohesion


High, Low
Low, Low
High, High
Low , High

Q. Which of the following models is recommended when the project is very complex with a lot of risk
factors.
Spiral
Iterative
Prototype
ETVX
Waterfall

Q. A software might allow a user to interact via


Mouse movement
Voice recognition commands
All of the mentioned
Keyboard commands
Q. Which SDLC model is recommended to gain clarity, when the project requirements are not very
clearly articulated by the customer.
Spiral
Iterative
Prototype
ETVX
Waterfall

Q. SRS stands for?


Software Requirements Specification
Software Retirement Specification
Software Rigorous Specification
Software Receiving Specification

Q. _____ is a function of the number of failures experienced by a particular user of that software.
Software reliability
Software performance
None of them
Software Usability

Q. This is a collection of descriptions of the data objects or items in a data model for the benefit of
programmers and others who need to refer to them.
Data Dictionary
Pseudocode
Process Description
Data Flow Diagrams

Q. _____ is the process of testing changes to computer programs to make sure that the older
programming still works with the new changes.
White Box Testing
System Testing
Acceptance Testing
Black Box Testing
Regression Testing
Unit Testing

Q. Helpers are needed to prepare for the fete. Each helper can make either 2 large cakes or 35 small
cakes per hour. The kitchen is available for 3 hours and 20 large cakes and 700 small cakes are needed.
How many helpers are required?
15
20
25
30
10
Q. Jo's collection contains US, Indian and British stamps. If the ratio of US to Indian stamps is 5 to 2
and the ratio of Indian to British stamps is 5 to 1, what is the ratio of US to British stamps?
10 : 5
15 : 2
20 : 2
25 : 2
5:1

Q. A 3 by 4 rectangle is inscribed in circle. What is the circumference of the circle?


3 pi
4 pi
5 pi
10 pi
2.5 pi

Q. What is the greatest of 3 consecutive integers whose sum is 24 ?


7
8
9
10
6

Q. A piece of ribbon 4 yards long is used to make bows requiring 15 inches of ribbon for each. What is
the maximum number of bows that can be made?
9
10
11
12
8

Q. A solid cube of side 6 is first painted pink and then cut into smaller cubes of side 2. How many of
the smaller cubes have paint on exactly 2 sides?
24
12
8
6
30

Q. A machine puts c caps on bottles in m minutes. How many hours will it take to put caps on b
bottles?
bm/60c
bc/60m
60b/cm
b/60cm
60bm/c

Q. Paint needs to be thinned to a ratio of 2 parts paint to 1.5 parts water. The painter has by mistake
added water so that he has 6 litres of paint which is half water and half paint. What must he add to
make the proportions of the mixture correct?
1 litre water
1/2 litre water and one litre paint
1/2 litre paint and one litre water
1/2 litre paint
1 litre paint

Q. If an object travels at five feet per second, how many feet does it travel in one hour?
300
720
1800
18000
30

Q. Why does TCS declare its financial results?


It is a publicly listed private company. So it has to declare its results for the investors and shareholders
It is a semi-government company. It is responsible for both the people and the government.
It is a way to attract more people to join the organization.
It is a public sector company. It is for the welfare of the employees.

Q. TCS offers a consulting- led, integrated portfolio of IT, BPS, Infrastructure, Engineering and ____
Services.
Reinsurance
Assurance
Development
Insurance

Q. What is the full form of TCS


Tata Consultancy Services
Tata Corporate Solutions
Tata Consultancy Solutions
Tata Communication Services

Q. TCS is _____ company


A nonIndian IT Services
A software development
None of the available options
An Indian, multinational IT Services

Q. What is the period of a fiscal/ financial year?


1st April – 31st March
1st January – 31st December
None of the above
31st March – 1st April
Q. What does q-o-q indicate?
Performance of a company in a financial quarter visàvis the performance in the same quarter in the
previous financial year
Performance of a company in a financial quarter vis-a-vis the performance of a rival company in the
same financial quarter
Performance of a company in a financial quarter vis-a-vis the sum of performance in the previous
quarters in the same financial year
Performance of a company in a financial quarter vis-a-vis the performance in the previous quarter

Q. Who is the Chief Executive Officer of TCS?


Ajoy Mukherjee
Ananth Krishnan
Rajesh Gopinathan
N Chandrasekaran

Q. What does y-o-y indicate?


Performance of a company in a financial year vis-a-vis the performance of a rival company in the same
financial year
Performance of a company in a financial year vis-a-vis the performance 10 years earlier
Performance of a company in a financial year vis-a-vis the sum of the performance previous ten years
Performance of a company in a financial year vis-a-vis the performance in the previous year

Q. How big is the organization?


30 – 40 Lakhs
30,000 – 40,000
3 – 4 Crores
3 – 4 Lakhs

Q. Which one of the following companies is not a competitor of TCS?


Wipro
General Electric
Cognizant
Infosys

Q. Determine the output of the following code when executed with the command:

1. for(int a = 1; a <= 4; a++) {


2. for(char x = 'a'; x <= 'c'; x++) {
3. if(a == 2 || x == 'b')
4. continue;
5. System.out.print(" " + a + x);
6. }
7. }
None
1a 1c
1a 1c 3a 3c 4a 4ct
1a 1b 1c 3a 3b 3c
1a 1c 3a 3c
Compiler error
Q. public class Sample{
public static void main(String[] s){
int[] myArray;
myArray = new int[5];
System.out.println(myArray[3] + myArray[4] myArray[1]);
}
}

what will be the output?


-1
some garbage value
6
0
compiler error

Q. public class Sample{


public static void main(String[] s){
int x = 8;
System.out.println( ( x >>1 ) <<1);
}
}

what will be output ?


82
4
8
40

Q. String s = "indus";
char x = s.charAt(5);

What is the value of x?


's'
-1
Exception is thrown
'u'

Q. String s = "Igniting minds";


s.replace("i", "ABC");
System.out.println(s);

What will be the output?


ABCgnABCtABCng mABCnds
IgnABCtABCng mABCnds
Igniting minds
ABCgniting minds

Q. What is the output of the following program?


1. public class OOTest {
2. private String brand;
3. private boolean empty;
4. public static void main(String [] args ) {
5. OOTest wb = new OOTest();
6. if(!wb.empty) {
7. System.out.println("Brand = " + wb.brand);
8. }
9. }
10.}
Line 7 generates a compiler error
There is no output
Brand = null
Line 5 generates a compiler error.
Line 6 generates a compiler error

Q. What is the output of the following program?

1. public class Score {


2. public static void printIt(int[] scores){
3. for(int x : scores) {
4. System.out.print(x + ",");
5. }
6. }
7. public static void main(String [] args) {
8. int [] x = {198, 247, 152, 207};
9. printIt(x);
10. }
11. }
Compiler error on line 8
Compiler error on line 9
198,247,152,207
198,247,152,207
Compiler error on line 2

Q. What is the output of the following code?

public class TestDrive {


public static void go(Car c) {
c.velocity += 10;
}
public static void main(String [] args) {
Car fiat = new Car();
go(fiat);
Car stolen = fiat;
go(stolen);
System.out.println(fiat.velocity);
}
}

class Car {
public int velocity = 10;
}
10
20
30
This code does not compile.
0

Q. Determine the output of the following code when executed with the command:

public static void main(String [] args) {


int [] scores = {2,4,5,5,6,8};
int sum = 0;
for(int x : scores) {
sum += x;
}
System.out.println(sum / scores.length);
}
}
6
4
5
The code does not compile.
30

Q. public class Sample{


public static void main(String[] s){
float f = 0.34f;
int i = (int) (f *10);
f = (float)i;
System.out.println(i + f);
}
}

What will be output?


6
6.34
6.0
3.0
3

Q. Microsoft introduced long filenames removing the 8.3 restriction, when it released:
Windows 3.1
Windows XP
Windows 95
MSDOS 3.11
Q. The complete information of a disk file in a Microsoft operating system is stored in:
Sectors in a disk
inode
CPU
File control block

Q. With respect to UNIX, which one of the following is NOT TRUE?


rm can delete multiple files
stat is used to get file statistics
File extension is used to associate an application to open/run the file
Is will produce different results based on the supplied flags

Q. A new text file in Unix CANNOT be created using:


emacs
here document
gcc
vi

Q. Which one of the following is NOT part of a networking OS core functionality?


User management
Device management
Performance management
Memory management

Q. The earliest 64bit chip released by Intel is:


Pentium4
80686
i3
Pentium

Q. An Ubuntu user can keep the system updated using:


yum
rpm
port update
aptget

Q. PDP11 is an OS for:
intel CPU based systems
IBM systems
any CPU with odd number of bits
mini computer

Q. The instruction set of a CPU is implemented using:


MBE or epitaxy technique
TTL or RTL circuits
C++ or Java language
Micro programmed or hardwired control
Q. While virtual memory fulfills the need for memory, cache memory meets the need for memory
cheaper, higher quality
disk, random access
smaller, cheaper
larger, faster

Q. Which term was coined by William Gibson in his 1982 short story "Burning Chrome"?
Chrome browser
Cyber space
Trojan
Virus

Q.
You have been troubled with sluggish performance in your computer and you suspect malware infectio
n. A popup appears on your comp offering anti-spyware. What should you do?
Click on the link and read the information provided in the page before you purchase it.
Read about the product before you take any steps
Click on the link and instantly purchase it using your credit card to get immediate protection.

Q. An IP Address is the Internet equivalent of:


Postal address
Aadhar id
Phone number
Birthday

Q. How many blocks of numbers does an IPv4 address have?


12
32
16
4

Q. Express the decimal number 467 in binary.


110010011
110010111
111010011
111010010

Q. Which of the following is a common factor for 112 and 98?


4
8
7
12

Q. Compute the greatest common factor of 112 and 98 ?


7
14
112
28
Q.
You connect to the IRCTC website from your computer at home. An attacker who has control over the
network notes down your username and password. What is this attack an example of?
Interception
Modification
Fabrication
Interruption

Q.
Attendance in your college is marked based on a smart card you have to swipe after entering the colleg
e. Your friend one day gives you his card and asks
you to swipe it for him so that he is marked present. This is an example of a poor
Authentication mechanism
Integrity mechanism
Nonrepudiation mechanism
Confidentiality mechanism

Q.
You get am email from an unknown person informing you that you have won a huge lottery and request
ing your bank account details to transfer the prize money. What is this an example of?
Trojan
Phishing
It is good news, not an attack
Virus

Q. The prototype of printf() function is:


int printf(const char *string, ...);
void printf(...);
printf() has no prototype, as it can accept any number and type of parameters
void printf(char *string, int number, float decimal);

Q. Whenever one wants to allocate dynamic memory to hold an integer array sufficient to hold 1024
integers, it is done using the statement:
intArray = (int *) malloc(1025);
intArray = (int *) calloc(512, 2);
intArray = (int *) malloc(1024 * sizeof(int));
intArray = (int *) malloc(512 * 2);

Q. When a programmer intends to open a file for reading using the statement:

FILE *fp = fopen("myfile.txt", "r");

he/she is expected to perform a sanity check that involves:


verifying if the running program has read permissions for myfile.txt
verifying that fp is not NULL after executing the fopen statement
verifying that the C standard library has an fopen() call
verifying if myfile.txt exists

Q. What is the value of index, when the following for loop exits?
for (index = 1; index < 100; index++);
index += 2;
101
201
This loop never terminates. It is an infinite loop
100

Q. #define YES 1 int main() {


int i = YES++;
printf("%d", i);
}
This program literally prints YES++
The line containing YES++ will result in compilation error
Program compiles successfully, but produces unpredictable output
This program prints the output 2

Q. for (i = 1; i <= 1000;i += 2) {


i = 10;
printf("%d\n", i);
}
500 lines of output each line containing the number 10
Every odd number between 1 and 1000 is added to 10 and the result printed. This produces 500 lines of
output
All the numbers between 1 and 1000 are printed, one per line
All odd numbers between 1 and 1000 are printed, one number per line

Q. If a member in a struct has no access modifier specified, then the default access is public in C++.
This is because:
Human mind assumes everything to be public in the absence of any explicit specifier
You cannot specify any access modifier in a C++ struct.
The statement is wrong. C++ struct members are private by default.
Existing C programs can be compiled as C++ programs without any modification

Q. With respect to overriding, which is NOT true?


Constructor is overridden by default
It does not make sense if there is only one class with no hierarchy
Derived class member function has the same name as base class function
It is illegal to override private members

Q. No need of protected members in a class if:


the class is abstract
the class does not contain any virtual functions
the class does not permit usage of this
the class is not a base class for any other class

Q. Which is not TRUE on polymorphism?


member function should be virtual
member function should be called through pointer
there must be inheritance
there must be at least one private member function

Q. A virtual function in a base class:


cannot be tagged as virtual in the derived class
can have different prototype in derived class
can be called through an object of base class type
remains as virtual in the derived class as well

Q. You cannot pass an object by value to copy constructor, because


C++ does not allow pass by value
If the object is large, call by value is very slow
C++ copy constructor rules are immutable
Copy constructor would never terminate

Q. Given the following piece of code, pick the INCORRECT statement from the given choices.
Assume that the statements given as choices are inside main():

class Industrialist {
public: CabDriver * operator >();
// ..
};
class CabDriver {
public: void drive();
};

Industrialist steelMonger;
Industrialist *scrapMerchant = &steelMonger;
CabDriver poorMan;
poorMan.drive();
(*scrapMerchant).drive();
steelMonger.drive();
scrapMerchant.drive();

Q. Which one of them is NOT automatically generated by C++?


non virtual destructor
default constructor
assignment operator function
virtual destructor

Q. Which one of the following CANNOT be a member function with respect to class University?
University & operator + (University &u);
int operator + (University &u);
void operator + (University &u);
University & operator + (University &u1, University &u2);

Q. The assignment operator function:


cannot return anything other than the object itself
should always return an int
is not generated automatically if the programmer does not implement it
can be a void function

Q. The essential difference between data and database is:


Data are more organized, database is disparate
Data are discrete pieces of info; database has connected entities
There is no difference. Just two different ways of referring to the same item
The term data has four letters and the other one eight

Q. Before the advent of relational database, rows and columns were known as:
Values and keys
Functions and variables
Entities and relations
Records and fields

Q. It is NOT possible to tell the key for a given table by looking at:
The complete set of attributes in the table
The schema of the table
The ER diagram
Total number of rows in the table

Q. Which one of the following is independent of the number of rows in a table?


Data dictionary
Time required to fetch a row
Database maintenance cycle
Storage requirement

Q. An invoice software should display/print item number, item description, number of items, unit price
and price of individual items bought besides the total price of all the items purchased. A table design
for optimizing storage should include:
item number, item description, number of items, unit price, price of individual items and total price
item number, item description, number of items and unit price
item number, item description and number of items
item number, item description, number of items, unit price and price of individual items

Q. It is required to capture the number of streets, houses and population of every city in every state in a
country. Which of the following items qualify to be part of the master table for this database task?
States and cities
Cities and streets
States, cities and population
Streets, houses and population

Q. A table that has entries which could change after almost every database activity is called:
Transaction table
Master table
Volatile table
Pivot table
Q. The student said, "teacher, I have normalized the tables in our school database". The teacher
exclaimed, ...
"There will be less number of tables and hence less number of fetches now"
"There will be same number of tables but the performance will be enhanced now"
"There will be less number of keys and hence less number of joins now"
"There will be more tables, but less storage requirement now"

Q. ERD and DFD respectively represent the:


static and dynamic characteristics of a database
predictable and uncertain aspects of a table's attributes
Performance and storage requirements of a database
rows and columns in a table

Q. It is required to print all the details of employees who have taken more than 10 days of leave.
Assuming there is a table giving the details of employees with the number of leaves taken, the
requirement can be fulfilled using a/an:
subquery with SELECT statement
subquery with UPDATE statement
Any query that does not need SELECT
adhoc query with INSERT statement

Q. He had a break after he _____ for two hours.


had been walking
has walked
was walking

Q. I _____ her for a long time.


have known
have been knowing
know

Q. I didn't notice that you ______ .


came
have been coming
had come

Q. You ______ at last! Where ______ so long?


have arrived - have you been
arrived - were you
arrived - have you been

Q. I was so relaxed because I ______ anything all day.


didn't do
had not been doing
have not been doing
Q. The leaders need to ______ out a better way to communicate with their people.
(Hint: develop)
come
give
figure

Q. We need to _____ an interview for Friday.


(Hint: schedule/arrange)
take off
save up
set up

Q. The meeting has been ______ off.


(Hint: cancelled)
talked
called
made

Q. I knew they'd ______ to our way of thinking.


(Hint: I knew that they would eventually accept our way of thinking.)
come around
feel out
get up

Q. In this ______ environment, only one thing is certain - change.


Beautiful
World
Global

También podría gustarte