Qn.1 A train 125 m long passes a man, running at 5 km/hr in the

advertisement
Qn.1
A train 125 m long passes a man, running at 5 km/hr in the same direction in which the train is
going, in 10 seconds. The speed of the train is:
45 km/hr
50 km/hr
Answer:
50 km/hr
Explanation:
Speed of the train relative to man = 125 m/sec 10 = 25 m/sec. 2 = 25 x 18 km/hr 2 5
= 45 km/hr.
Let the speed of the train be x km/hr. Then, relative speed = (x - 5) km/hr. x - 5 =
45 x = 50 km/hr.
54 km/hr
55 km/hr
Qn.2
A game of football with 11 players lasts for exactly 90 minutes. There are four substitutes that
alternate equally. If each player plays for the same length of time, what is the duration?
22.5 mins
Answer:
22.5 mins
Explanation:
90 / 4 = 22.5 min
18 mins
66 mins
None of above.
Qn.3
If the wages of 6 men for 15 days be Rs. 1400, then the wages of 9 men for 12 days will be
Rs. 1680
Rs.1840
Rs. 1050
Rs. 1600
Qn.4
Here are some words translated from an artificial language.
hapllesh means cloudburst
srenchoch means pinball
resbosrench means ninepin
Which word could mean "cloud nine"?
leshsrench
ochhapl
haploch
haplresbo
Answer:
haplresbo
Explanation:
Hapl means cloud; lesh means burst; srench means pin; och means ball; and resbo
means nine. Leshsrench (choice a) doesn't contain any of the words needed for
cloud nine. We know that och means ball, so that rules out choices b and c. When
you combine hapl (cloud) with resbo (nine), you get the correct answer
Qn.5
Out of 13 applicants for a job, there are 5 women and 8 men. It is desired to select 2 persons for
the job. The probability that at least one of the selected persons will be a woman is
25/39
Answer:
25/39
Explanation:
Required probability
14/39
5/13
10/3
Qn.6
30% of the people read newspaper X, 50% read newspaper Y, and 20% read both the papers.
What percentage of the people read neither newspaper?
5%
15%
20%
40%
Answer:
40%
Explanation:
n(A) = 30 , n(B) = 50;
n( A ∩ B ) = 20.
n ( A U B ) = n(A) +n(B) - n( A ∩ B ) = 30+50 -20 =60
n( A U B )' = 100 - 60 = 40.
Qn.7
25 workers working 6 hours a day can finish the work in 20 days. If the workers went to work
for 5 hours a day, how many more are required to complete the work in same 20 days?
5
Answer:
5
Explanation:
Ratio of time = 6 / 5
Workers required = 6 / 5 * 25 = 30
No. of additional workers required = 30 – 25 = 5
6
7
9
Qn.8
If two bikes are bought for same price and they sold over at 8% loss and the other sold at 6%
gain. Then find the ratio of their selling price?
43:53
44:51
46:53
Answer:
46:53
Explanation:
Let their cost price be Rs. 100
1 st one loss 8% Selling price of 1 st bike = Rs. 92.
2 nd one gain 6% Selling price of 2 nd one = Rs. 106.
Ratio of their selling prices = 92 : 106
46 : 53
47:54
Qn.9
The average weight of 16 students is 24 kgs. If the weight of the class teacher includes, the
average weight increases by 2 kgs. Then find the weight of the teacher?
55 kgs
62 kgs
60 kgs
58 kgs
Answer:
58 kgs
Explanation:
Sum of weights of the 16 students = 384 kgs
Sum of weights of the 16 students + Teacher weight = = 408 + 34 = 442 kgs
Teacher weight = 442 – 384 = 384= 58 kgs
Qn.10
Find the least number which when increased by 4 is divisible by 21, 25, 27 and 35
4721
Answer:
4721
Explanation:
L.C.M of the numbers = 4725
Required No. = 4725 - 4 = 4721.
4725
4758
2418
Qn.11
Pointing to a photograph of a boy Rajesh said, "He is the son of the only son of my mother."
How is Rajesh related to that boy?
Brother
Uncle
Cousin
Father
Answer:
Father
Explanation:
The boy in the photograph is the only son of the son of Rajesh's mother i.e., the son
of Rajesh. Hence, Rajesh is the father of boy.
Qn.12
Convert the expression ((A + B) * C - (D - E) ^ (F + G)) to equivalent Prefix and Postfix
notations.
^ - * +ABC - DE + FG
AB + C * DE - - FG + ^
AB + C * DE - -^ FG +
None of these
Qn.13
For each of the following syllogisms, decide whether it is valid. If not, determine which rule it
violates.
The three rules are:
1. If the conclusion is a negative claim, so must be one of the premises; if the conclusion is not a
negative claim, neither of the premises can be negative.
2. If a term is distributed in the conclusion, it must be distributed in a premise.
3. The middle term must be distributed in at least one of the premises.
Not all concerts are fun, but movies aren't concerts. So some movies are fun.
Valid
Invalid: violation of the first rule.
Answer:
Invalid: violation of the first rule.
Explanation:
An argument with two negative premises always violates the first rule.
Invalid: violation of the second rule.
Invalid: violation of the third rule.
Qn.14
Some comedians are funny, and some women are not comedians, so some funny people are men.
Valid.
Invalid: violation of the first rule.
Invalid: violation of the second rule.
Answer:
Invalid: violation of the second rule.
Explanation:
"Men" can be replaced by "not women," which means that "women" is distributed
in the conclusion and not in the premise.
Invalid: violation of the third rule.
Qn.15
Find the statement that must be true according to the given information.
The Pacific yew is an evergreen tree that grows in the Pacific Northwest. The Pacific yew has a
fleshy, poisonous fruit. Recently, taxol, a substance found in the bark of the Pacific yew, was
discovered to be a promising new anticancer drug.
Taxol is poisonous when taken by healthy people.
Taxol has cured people from various diseases.
People should not eat the fruit of the Pacific yew.
Answer:
People should not eat the fruit of the Pacific yew.
Explanation:
Given the information presented, the only statement that could be considered true is
that the fruit should not be eaten because it is poisonous. There is no support that
taxol is poisonous or that taxol has cured anyone (choices a and b). There is no
support for choice d.
The Pacific yew was considered worthless until taxol was discovered.
Qn.16
Answer the following questions based on the passage below.
A group of three or four has to be selected from seven persons. Among the seven are two
women, Fiza and Kavita, and five men: Ram, Shyam, David, Peter and Rahim. Ram would not
like to be in the group if Shyam is also selected. Shyam and Rahim want to be selected together
in the group. Kavita would like to be in the group only if David is also there. David, if selected,
would not like Peter in the group. Ram would like to be in the group only if Peter is also there.
David insists that Fiza be selected in case he is there in the group.
Which of the following statements is true?
Kavita and Ram can be part of a group of four.
A group of four can have two women.
A group of four can have all four men.
None of the above
Answer:
None of the above
Explanation:
The group of 4 cannot be made, except S + R + F + D.
Qn.17
Which of the following is a feasible group of three?
David, Ram, Rahim
Peter, Shyam, Rahim
Answer:
Peter, Shyam, Rahim
Explanation:
In all the other choices we have D, who insist that F be with him.
Kavita, David, Shyam
Fiza, David, Ram
Qn.18
Which of the following is a feasible group of four?
Ram, Peter, Fiza, Rahim
Shyam, Rahim, Kavita, David
Shyam, Rahim, Kavita, David
Fiza, David, Ram, Peter
Qn.19
SAUNTER is to AMBLE as _______ is to _______.
BLANCH : CHARBROIL
NIBBLE : SCARF
PRATE : BLATHER
GLIMPSE : SCRUTINIZE
Qn.20
An OBLAST is to RUSSIA as a _______ is to _______.
CANTON : SWITZERLAND
TAOISEACH : IRELAND
DIET : JAPAN
MANDARIN : CHINA
Qn.21
Find the synonym of STRINGENT ?
Tense
Stringly
Strict
Causing to Shrink
Qn.22
Find the synonym of INSOMANIA ?
Lethargy
Sleeplessness
Drunkenness
Unconsciousness
Qn.23
Find the antonym of HONORARY ?
Dishonorable
Reputed
Paid
Official
Qn.24
Find the antonym of METICULOUS ?
Mutual
Shaggy
Meretricious
Slovenly
Qn.25
Fill in the blanks with the appropriate word.
Thinker and poet, ___________ the Brinker prize for his poem 'Alexander' in 1976.
Claude Pinocchio was awarded
was awarded Claude Pinocchio
was awarded to Claude Pinocchio
None of these
Qn.26
In the 1990s, _________ its premium position in the world economy.
the USA returned
the USA returned to
the USA returning
None of these
Qn.27
__________, I would have returned it immediately.
If I knew that you wanted to read it
I had known that you wanted to read it
Had I known that you wanted to read it
None of these
Qn.28
It was ______ Johnny finally gave up.
such difficult that
so difficult that
so a difficult test that
None of these
Qn.29
Select the one underlined word or phrase that is incorrect.
I had a enjoyable time at the party last night.
a
time
at
last
Qn.30
Yvette and Rinaldo send e-mail messages to other often.
and
send
other
often
Qn.31
In RDBMS, what is the efficient data structure used in the internal storage representation?
Bitmap index
Answer:
Bitmap index
Explanation:
Because in Bitmap index such as B+ tree, all the data is stored only in leaf nodes,
that makes searching easier. This corresponds to the records that shall be stored in
leaf nodes.
Dense index
Sparse index
Reverse index
Qn.32
What are the methods used in Open addressing ?
Overflow block.
Answer:
Overflow block.
Explanation:
The types of Collision Resolution Techniques are:
1. Open addressing (closed hashing), The methods used include: Overflow block.
2. Closed addressing (open hashing), The methods used include: Linked list, Binary
tree.
Linked list
Binary tree
None of these
Qn.33
What is the type of the algorithm used in solving the 8 Queens problem?
closed hashing
open hashing
Backtracking
None of these
Qn.34
In tree construction which is the suitable efficient data structure?
Array
Linked list
Answer:
Linked list
Explanation:
Linked list is the suitable efficient data structure.
Stack
Queue
Qn.35
What is the data structures used to perform recursion?
Stack
Answer:
Stack
Explanation:
Because of its LIFO (Last In First Out) property it remembers its 'caller' so knows
whom to return when the function has to return. Recursion makes use of system
stack for storing the return addresses of the function calls.
Every recursive function has its equivalent iterative (non-recursive) function. Even
when such equivalent iterative procedures are written, explicit stack is to be used.
Queue
Linked List
None of these
Qn.36
__________ act as a central transmitter and receiver in wireless local area network
Access Nodes
Access Points
Access Hubs
None of the above
Qn.37
What is the output of the following code?
union u
{
struct st
{
int i : 4;
int j : 4;
int k : 4;
int l;
}
st;
int i;
}
u;
main()
{
u.i = 100;
printf("%d, %d, %d",u.i, u.st.i, u.st.l);
}
4, 4, 0
0, 0, 0
100, 4, 0
40, 4, 0
Qn.38
Which is the simplest file structure?
Sequential
Answer:
Sequential
Explanation:
Sequential is the simplest file structure.
Indexed
Random
None of these
Qn.39
Whether Linked List is linear or Non-linear data structure?
linear one.
Non-linear one
Both (1) and (2)
Answer:
Both (1) and (2)
Explanation:
According to Access strategies Linked list is a linear one.
According to Storage Linked List is a Non-linear one.
Cannot be determined
Qn.40
Information can be transmitted via one of_______siganlling method(s).
One
Two
Four
Five
Qn.41
What is the narrowest valid returnType for methodA ?
public class ReturnIt
{
returnType methodA(byte x, double y)
{
return (long)x / y * 2;
}
}
int
byte
long
double
Qn.42
What will be the output of the program?
int i = l, j = -1;
switch (i)
{
case 0, 1: j = 1;
case 2: j = 2;
default: j = 0;
}
System.out.println("j
= " + j);
i = -1
i=0
i=1
Compilation fails.
Answer:
Compilation fails.
Explanation:
The case statement takes only a single argument. The case statement on line 4 is
given two arguments so the compiler complains.
Qn.43
In which line of the following, an error would be reported?
1. #define CIRCUM(R) (3.14*R*R);
2. main()
3. {
4. float r=1.0,c;
5. c= CIRCUM(r);
6. printf("\n%f",c);
7. if(CIRCUM(r))==6.28)
8. printf("\nGobbledygook");
9. }
Line 1
Line 5
Line 6
Line 7
Qn.44
What would be the output of the following program?
main()
{
char near * near *ptr1;
char near * far *ptr2;
char near * huge *ptr3;
printf("%d %d %d",sizeof(ptr1),sizeof(ptr2),sizeof(ptr3));
}
111
124
244
444
Qn.45
What is the output of the following code?
union u
{
union u
{
int i;
int j;
}a[10];
int b[10];
}u;
main()
{
printf("\n%d", sizeof(u));
printf(" %d", sizeof(u.a));
// printf("%d", sizeof(u.a[4].i));
}
4, 4, 4
40, 4, 4
1, 100, 1
None of the Above
Qn.46
Which cause a compiler error?
int[ ] scores = {3, 5, 7};
int [ ][ ] scores = {2,7,6}, {9,3,45};
Answer:
int [ ][ ] scores = {2,7,6}, {9,3,45};
Explanation:
Option 2 generates a compiler error: expected. The compiler thinks you are trying
to create two arrays because there are two array initialisers to the right of the
equals, whereas your intention was to create one 3 x 3 two-dimensional array.
To correct the problem and make option 2 compile you need to add an extra pair of
curly brackets: int [ ] [ ] scores =
{ {2,7,6}, {9,3,45} };
String cats[ ] = {"Fluffy", "Spot", "Zeus"};
boolean results[ ] = new boolean [] {true, false, true};
Integer results[ ] = {new Integer(3), new Integer(5), new Integer(8)};
Qn.47
class Foo
{
class Bar{ }
}
class Test
{
public static void main (String [] args)
{
Foo f = new Foo();
/* Line 10: Missing statement ? */
}
}
Missing statement can be replaced by ?
Foo.Bar b = new Foo.Bar();
Foo.Bar b = f.new Bar();
Answer:
Foo.Bar b = f.new Bar();
Explanation:
Option B is correct because the syntax is correct using both names (the enclosing
class and the inner class) in the reference declaration, then using a reference to the
enclosing class to invoke new on the inner class.
Bar b = new f.Bar();
Bar b = f.new Bar();
Qn.48
What will be the output of the program?
public class Switch2
{
final static short x = 2;
public static void main(String [] args)
{
for (int z=0; z < 3; z++)
{
switch (z)
{
case x: System.out.print("0 ");
case x-1: System.out.print("1 ");
case x-2: System.out.print("2 "
012
012122
210100
212012
Answer:
212012
Explanation:
The case expressions are all legal because x is marked final, which means the
expressions can be evaluated at compile time. In the first iteration of the for loop
case x-2 matches, so 2 is printed. In the second iteration, x-1 is matched so 1 and 2
are printed (remember, once a match is found all remaining statements are executed
until a break statement is encountered). In the third iteration, x is matched. So 0 1
and 2 are printed.
Qn.49
What will be the output of the program?
int i = 0, j = 5;
tp: for (;;)
{
i++;
for (;;)
{
if(i > --j)
{
break tp;
}
}
cout<<"i ="<< i<< ", j = " << j;
i = 1, j = 0
i = 1, j = 4
i = 3, j = 4
Compilation fails.
Answer:
Compilation fails.
Explanation:
If you examine the code carefully you will notice a missing curly bracket at the end
of the code, this would cause the code to fail.
Qn.50
What will be the output of the program?
for(int i = 0; i < 3; i++)
{ switch(i)
{
case 0: break;
case 1: cout<<"one ";
case 2: cout<<"two ";
case 3: cout<<"three ";
}
}
cout<< "done" ;
done
one two done
one two three done
one two three two three done
Answer:
one two three two three done
Explanation:
The variable i will have the values 0, 1 and 2.
When i is 0, nothing will be printed because of the break in case 0.
When i is 1, "one two three" will be output because case 1, case 2 and case 3 will be
executed (they don't have break statements).
When i is 2, "two three" will be output because case 2 and case 3 will be executed
(again no break statements). Finally, when the for loop finishes "done" will be
output.
Qn.51
public class Test { }
What is the prototype of the default constructor?
Test( )
Test(void)
public Test( )
Answer:
public Test( )
Explanation:
Option A and B are wrong because they use the default access modifier and the
access modifier for the class is public (remember, the default constructor has the
same access modifier as the class).
Option D is wrong. The void makes the compiler think that this is a method
specification - in fact if it were a method specification the compiler would spit it
out.
public Test(void)
Qn.52
What will be the output of the program?
int i = O;
while(1)
{
if(i == 4)
{
break;
}
++i;
}
System.out.println("i = " + i);
i=0
i=3
i=4
Compilation fails.
Answer:
Compilation fails.
Explanation:
Compilation fails because the argument of the while loop, the condition, must be of
primitive type boolean. In Java, 1 does not represent the true state of a boolean,
rather it is seen as an integer.
Qn.53
What will be the output of the program?
void main ( )
{
int result = 4 | 3 ;
cout << result ;
}
3
4
7
Compilation fails.
Qn.54
What will be the output of the program?
int x = 3;
int y = 1;
if (x = y)
{
cout<<"x =" << x;
}
x=1
x=3
Compilation fails.
Answer:
Compilation fails.
Explanation:
if statement receives an integer value instead of a boolean. So the compilation fails.
The code runs with no output.
Qn.55
What will be the output of the program?
int x = l, y = 6;
while (y--)
{
x++;
}
System.out.println("x = " + x +" y = " + y);
x=6y=0
x=7y=0
x = 6 y = -1
Compilation fails.
Answer:
Compilation fails.
Explanation:
Compilation fails because the while loop demands a boolean argument for it's
looping condition, but in the code, it's given an int argument.
while(true) { //insert code here }
Qn.56
class Boo
{
Boo(String s) { }
Boo(){
}
}
class Bar extends Boo
{
Bar() { }
Bar(String s) {super(s);
}
void zoo()
{
// insert code here
}
}
which one create an anonymous inner class from within class Bar?
Boo f = new Boo(24) { };
Boo f = new Bar() { };
Answer:
Boo f = new Bar() { };
Explanation:
Option B is correct because anonymous inner classes are no different from any
other class when it comes to polymorphism. That means you are always allowed to
declare a reference variable of the superclass type and have that reference variable
refer to an instance of a subclass type, which in this case is an anonymous subclass
of Bar. Since Bar is a subclass of Boo, it all works.
Bar f = new Boo(String s) { };
Boo f = new Boo.Bar(String s) { };
Qn.57
An Enterprise Resource Planning application is an example of a(n) ________ .
single-user database application
multiuser database application
e-commerce database application
data mining database application
Qn.58
You have run an SQL statement that asked the DBMS to display data in a table named
USER_TABLES. The results include columns of data labeled "TableName,"
"NumberOfColumns" and "PrimaryKey." You are looking at ________ .
user data.
metadata
A report
indexes
Qn.59
What is the result of the following code?
main()
{
int i;
float *pf;
pf = (float *)&i;
*pf = 100.00;
printf("\n %d", i);
}
Runtime error.
100
Some Integer not 100
None of the above
Qn.60
If the following program (myprog) is run from the command line as myprog monday tuesday
wednesday thursday
What would be the output?
main(int argc, char *argv[])
{
while(--argc >0)
printf("%s",*++argv);
}
myprog monday tuesday wednesday thursday
monday tuesday wednesday thursday
mondaytuesdaywednesdaythursday
myprog tuesday thursday
Qn.61
What would be the output of the following program?
main()
{
const int x=5;
int *ptrx;
ptrx=&x;
*ptrx=10;
printf("%d",x);
}
5
10
Error
Garbage Value
Qn.62
What is the result of the following code?
main()
{
int i = 100;
clrscr();
printf("%d", sizeof(sizeof(i)));
}
2
100
4
None of these
Qn.63
What is the result of the following code?
main()
{
int x=5;
for(;x!=0;x--) {
printf("x=%d\n", x--);
}
}
5, 4, 3, 2,1
4, 3, 2, 1, 0
5, 3, 1
none of the above
Qn.64
What would be the output of the following program?
main()
{
int i=4;
switch(i)
{
default:
printf("\n A mouse is an elephant built by the Japanese");
case 1:
printf(" Breeding rabbits is a hair raising experience");
break;
case 2:
printf("\n Friction is a drag");
break;
case 3:
printf("\n If practice make perfect, then nobody's perfect");
}
}
A mouse is an elephant built by the Japanese
Breeding rabbits is a hare raising experienceBreeding rabbits is a hare raising
experience
A mouse is an elephant built by the Japanese Breeding rabbits is a hare raising
experience
None of the above
Qn.65
Any electronic device on a network is called a:
Node
Hub
Router
Cable
Qn.66
What layer of OSI does the encryption/decryption?
Network layer
Presentaion layer
Application layer
Data Link layer
Qn.67
A network of computers and other devices that is confined to a relatively small space.
Global network
Local area network
Peer-to-Peer network
Metropolitan network
Qn.68
Which device act as a traffic cop?
Router
Hub
Switch
Modem
Qn.69
IEEE designates Thicknet as_______Ethernet.
10Base5
10BaseT
10Base10
10Base2
Qn.70
void foo( boolean a, boolean b)
{
if( a )
{
cout<< "A";
}
else if(a && b)
{
cout << "A && B";
}
else
{
if ( !b )
{
cout << "notB" ;
}
else
{
cout << "ELSE" ;
}
}
}
What will be the output of the program?
If a is true and b is true then the output is "A && B"
If a is true and b is false then the output is "notB"
If a is false and b is true then the output is "ELSE"
If a is false and b is false then the output is "ELSE"
Download