E & W openings in the square, plus one object at N & S
N & S openings, plus 2 objects at N & S
E & W openings, plus one object at N & S
N & S openings, plus 2 objects at N & S
E & W openings, plus one object at N & S: D is the answer
Q. No. :
8
Question :
1. No two people can have the same number of hairs
2. No one can have 999 hairs.
3. No one can have more than, or the same number of hairs as, the population of the town
The town has now reached its maximum population - what is it?
In each segment of the diagram are a pair of letters, one of which is the same distance from the start of the alphabet as the other is from the end.
Q. No. :
10
Question :
Two trains are 200 km apart, and travelling towards each other at 50 km/hour each.
From one train a fly takes off, flying straight above the rails to the other train at the speed of 75 km/hour, bounces off it and flies back to the first train.
This is repeated till the trains crash together and the fly is smashed (Headline: Fly Dies in Freak Train Crash)
What distance is the fly able to fly until its meet its tragic end?
The complicated way: figure out how long its first journey is, then the return journey, and so on . . . .
Or simply figure that the trains will meet each other in 2 hours (200 km, and each is travelling at 50 km/hour), so the fly is flying for 2 hours at 75 km/h for a distance of 150 km.
Working in rows, the numerical value of the letter in the right hand column equals the sum of the numerical values of the letters in the left and central columns.
1. Choice 1 if the question can be answered using one of the statements alone, while the other statement is not sufficient to answer the question.
2. Choice 2 if the question can be answered using each of the statements independently
3. Choice 3 if both the statements together are needed to answer the question
4. Choice 4 if both the statements independently or taken together are not sufficient to answer the question
=> = 2. This is possible when x = y. Hence statement A alone is sufficient.
Statement B. (x – 50)2 = (y – 50)2 . We cannot say if x = y in this case. Take for example, let x = 100 and y = 0. Then (x – 50)2 = (100 – 50)2 = 502 = 2500.
And (y – 50)2 = (0 – 50)2 = 502 = 2500.
Hence, statement A alone is sufficient and statement B alone is not sufficient.
Q. No. :
14
Question :
Is the smallest of five consecutive integers even?
(A) The product of the five integers is 0
(B) The arithmetic mean of the five integers is 0.
If the smallest of five consecutive integers is even, then the first, third and fifth integers will be even. From statement A, we know that one of the 5 numbers is 0. However, we will not be able to say which of the 5 numbers happen to be 0.
From statement B, we know the arithmetic mean of the 5 numbers is 0. The A.M of five consecutive integers is the third integer, which is 0. 0 is even. Hence, the smallest of the 5 consecutive integers is even. Hence statement B alone is sufficient and the answer is (1).
We need to answer if m is divisible by 6. The answer has to be a definitive YES or a NO.
The test of divisibility for 6 is that the number should be divisible by both 3 and 2.
From statement (A) we know that m is divisible by 3. However, this does not answer the question if m is also divisible by 2. Hence, statement (A) alone is not sufficient. We can rule out answer choices (2). The correct answer has to be between (1), (3) or (4).
From statement (B) we know that m is divisibly by 4. If m is divisible by 4, then m should surely be divisible by 2. However, from statement (B) alone we do not know if m is divisible by 3. Therefore, statement (B) alone is also not sufficient. Hence, we can eliminate answer choice (1).
Combining the two statements, we know that m is divisible by 3 and by 4. Hence, we can conclude that m is divisible by 6. Choice (3 ) is correct.
Following questions are based on data sufficiency
1. Choice 1 if the question can be answered using one of the statements alone, while the other statement is not sufficient to answer the question.
2. Choice 2 if the question can be answered using each of the statements independently
3. Choice 3 if both the statements together are needed to answer the question
4. Choice 4 if both the statements independently or taken together are not sufficient to answer the question
Q. No. :
16
Question :
Is it Monday on March 7 of the year Z? (Z is a natural number).
I. March 31 of the year (Z + 1) will be a Sunday.
II. April 25 of the year Z is Monday.
Statement I, March 31 of (Z + 1) was Sunday, the March 7 must have been Thursday. So, if March 7 of (Z + 1) was Thursday, then March 7 of Z cannot be Monday.
The answer is no.
It does not matter whether Z or (Z + 1) is a leap year or not.
Statement I is sufficient to answer.
Statement II also is sufficient to answer.
Q. No. :
17
Question :
The sum of the ages of Amar, Akbar and Anthony is 53 years. If Anthony, whose ages are a perfect square, is the oldest, then who is the youngest?
I. Sum of ages of Amar and Akbar is a perfect square.
II. Ages (in years) of all of them are distinct odd natural numbers.
Even after combining both the statements, we cannot say surely who is the youngest.
All that we know is Anthony’s age = 49
(Amar’s age + Akbar’s age) = 4
It has to be either Amar 1 year and Akbar 3 years or Amar 3 years and Akbar 1 year old.
Q. No. :
18
Question :
If Argentina beats Brazil by 3 goals in a soccer match, how many goals were scored by Argentina?
I. Both terms were tied at the end of first half.
II. The number of goals scored by both the teams in the first half as well as the second half was a perfect square.
Combining I and II,
In the second half
Brazil – 1, Argentina – 4 is the only option.
But in the first half
Brazil – 1, Argentina – 1
Brazil – 4, Argentina – 4 … and so on.
So, total goals scored by Argentina cannot be determined.
In a survey of children who saw three different shows at Walt Disney World, the following information was gathered:
* 39 children liked The Little Mermaid
* 43 children liked 101 Dalmatians
* 56 children liked Mickey Mouse
* 7 children liked The Little Mermaid and 101 Dalmatians
* 10 children liked The Little Mermaid and Mickey Mouse
* 16 children liked 101 Dalmatians and Mickey Mouse
* 4 children liked The Little Mermaid, 101 Dalmatians, and Mickey Mouse
* 6 children did not like any of the shows
The logic problems in this set present you with three true statements: Fact 1, Fact 2, and Fact 3. Then, you are given three more statements (labeled I, II, and III), and you must determine which of these, if any, is also a fact. One or two of the statements could be true; all of the statements could be true; or none of the statements could be true. Choose your answer based solely on the information given in the first three facts.
Q. No. :
23
Question :
Fact 1:
All hats have brims.
Fact 2:
There are black hats and blue hats.
Fact 3:
Baseball caps are hats.
If the first three statements are facts, which of the following statements must also be a fact?
I:
All caps have brims.
II:
Some baseball caps are blue.
III:
Baseball caps have no brims.
All baseball caps have brims, since baseball caps are hats (Fact 3) and all hats have brims (Fact 1). This rules out statement III, but it doesn't follow that all caps, a category that may include caps that are not baseball caps, have brims (statement I). Statement II cannot be confirmed, either, since it is possible, given the information, that all baseball caps are black.
Q. No. :
24
Question :
Fact 1: All chickens are birds.
Fact 2: Some chickens are hens.
Fact 3: Female birds lay eggs.
If the first three statements are facts, which of the following statements must also be a fact?
I: All birds lay eggs.
II: Hens are birds.
III: Some chickens are not hens.
The first statement cannot be true because only female birds lay eggs. Statement II is true because hens are chickens and chickens are birds. Statement III is also true because if only some chickens are hens, then some must not be hens.
Q. No. :
25
Question :
Fact 1: Pictures can tell a story.
Fact 2: All storybooks have pictures.
Fact 3: Some storybooks have words.
If the first three statements are facts, which of the following statements must also be a fact?
I: Pictures can tell a story better than words can.
II: The stories in storybooks are very simple.
III: Some storybooks have both words and pictures.
Statements I and II are not supported by the facts. Statement III is true because if all story-books have pictures and only some have words, then some storybooks have both words and pictures.
Q. No. :
26
Question :
daftafoni means advisement
imodafta means misadvise
imolokti means misconduct
Which word could mean "statement"?
Dafta means advise; foni is the same as the suffix ment; imo is the same as the prefix mis; lokti means conduct. Since the only word in the answer choices that hasn't been defined is krata, it is reasonable to assume that krata means state. Therefore, kratafoni is the only choice that could mean statement.
In each of the following questions two statements are given and these statements are followed by two conclusions numbered (1) and (2). You have to take the given two statements to be true even if they seem to be at variance from commonly known facts. Read the conclusions and then decide which of the given conclusions logically follows from the two given statements, disregarding commonly known facts.
Q. No. :
27
Question :
Statements: All the locks are keys. All the keys are bats. Some watches are bats.
Conclusions:
1. Some bats ate locks.
2. Some watches are keys.
3. All the keys are locks.
If it is true that all men are equals and some equals are fair then, which of the following conclusions definitely follow?
Select Answer:
A :
Some men are fair
B :
All men are fair
C :
Some fair are men
D :
None of the above
Answer: D
Q. No. :
29
Question :
If it is said that All marine life is perishable and some marine life is extinct then, which of the following conclusions definitely do not follow?
A :
Some perishable is marine life
B :
Some extinct is perishable
C :
Some extinct is marine life
D :
All perishable is extinct
Answer: D
Q. No. :
30
Question :
Six bells commence tolling together and toll at intervals of 2, 4, 6, 8 10 and 12 seconds respectively. In 30 minutes, how many times do they toll together ?
L.C.M. of 2, 4, 6, 8, 10, 12 is 120. So, the bells will toll together after every 120 seconds(2 minutes). In 30 minutes, they will toll together (30/2) + 1 = 16 times.
Q. No. :
31
Question :
A train running at the speed of 60 km/hr crosses a pole in 9 seconds. What is the length of the train?
Length of the train = (Speed x Time) = (50/3) x 9 m = 150 m.
Q. No. :
32
Question :
Out of forty students, 14 are taking English Composition and 29 are taking Chemistry. If five students are in both classes, how many students are in neither class?
Let the ages of children be x, (x + 3), (x + 6), (x + 9) and (x + 12) years. Then, x + (x + 3) + (x + 6) + (x + 9) + (x + 12) = 50 5x = 20 x = 4. Age of the youngest child = x = 4 years.
int a=250; The variable a is declared as an integer type and initialized to value 250. printf("%1d
", a); It prints the value of variable a. Hence the output of the program is 250.
Step 1: void swap(char *, char *); This prototype tells the compiler that the function swap accept two strings as arguments and it does not return anything.
Step 2: char *pstr[2] = {"Hello", "GPLgtests"}; The variable pstr is declared as an pointer to the array of strings. It is initialized to pstr[0] = "Hello", pstr[1] = "GPLgtests"
Step 3: swap(pstr[0], pstr[1]); The swap function is called by "call by value". Hence it does not affect the output of the program.
If the swap function is "called by reference" it will affect the variable pstr.
Step 4: printf("%s
%s", pstr[0], pstr[1]); It prints the value of pstr[0] and pstr[1].
Hence the output of the program is : Hello GPLgtests
Q. No. :
6
Question :
what will be the output ?
#include< stdio.h >
main()
{
int i=0;
switch(i)
case 0 : i++;
case 1 : i++;
case 2 : i++;
default: i++;
printf("%d",i);
}
The logical not operator takes expression and evaluates to true if the expression is false and evaluates to false if the expression is true. In other words it reverses the value of the expression.
Step 1: if(!(!x) && x)
Step 2: if(!(!10) && 10)
Step 3: if(!(0) && 10)
Step 3: if(1 && 10)
Step 4: if(TRUE) here the if condition is satisfied. Hence it prints x = 10.
Which of the following operations is performed more efficiently by doubly linked list than by linear linked list ?
A :
Deleting a node whose location is given
B :
Searching an unsorted list for a given item
C :
Inserting a node after the node with a given location
D :
Traversing the list to process each node
Answer: A
Q. No. :
2
Question :
When inorder traversing a tree resulted E A C K F H D B G; the preorder traversal would return
A :
FAEKCDBHG
B :
FAEKCDHGB
C :
EAFKHDCBG
D :
FEAKDCHBG
Answer: B
Q. No. :
3
Question :
The five item A,B,C,D and E are pushed in a stack, one after another starting from A. The stack is popped four times and each element is inserted in a queue. The two elements are deleted from the queue and pushed back on stack. Now one item is popped from stack. The popped item is: