LEARNERS DESK Technical & Non-Technical

Technical & Non-Technical-II
Question 1
What is RAID ? What is its purpose ?
RAID stands for Redundant Array of Independent Disks. It refers to a group of redundant disks (2 or more)
which offers fault tolerance towards memory failures.
Question 2
Name the unique address that is stored on ROM on the network adapter card.
MAC (Media Access Control) Address is the answer.
Question 3
How to find the maximum number of IPs that can be assigned to a PC.
A simple rule to identify the number of NICs or Network Interface Cards. An equal number of IPs can be
assigned (provided the OS supports).
Question 4
Some directives are used to turn ON and OFF compiler specific features. For example, a compiler could be
able to perform loop optimization and this could be invoked via these directives. What are these directives
called ?
Pragma Directive. (This is bit tough question which you might not be aware of.)
Question 5
#ifndef preprocessor directive can be used to avoid multiple inclusions of a header file. State True or False.
Yes, it is True. For example the below code includes "headerfile.h" only if it is not already included.
#ifndef headerfile.h
#define headerfile.h
Question 6
Can an abstract class be instantiated. What is the real use of an abstract class?
Answer: No, abstract class cannot be instantiated. It serves as a parental blueprint or a benchmark class with
common properties and methods which can be inherited by derived classes.
Page 1
Question 7
Name any two models of SDLC (Software Design Life Cycle) ?
Water Fall Model and Spiral Model. (There are several other models as well which you could answer.)
Question 8
What is the use of HTTPS protocol and how it differs from HTTP ?
HTTPS transmits HTTP interactions via secured channel (encrypted). HTTPS is used for secured data
transmissions over network where HTTP might not be a safer option.
Question 9
Name the data structure that uses a hash function to map keys to their associated values.
Hast Table or Hash Map.
Question 10
Name two different types of polymorphism ?
This is a prominent question from OOPS concepts. Two types of polymorphism are a) Overloading and b)
Question 11
Define Storage Classes and Name four types of storage classes ?
Storage classes are specifiers define lifetime and scope of variables. Four types of Storage classes include
Auto, Register, Extern and Static.
Question 12
Name the header file containing "malloc" subroutine:
malloc is a part of standard library - stdlib.h. (Use of malloc is in dynamic memory allocation.)
Question 13
Amongst calloc and malloc subroutines, which one of them will initialize the allocated memory to zero.
This question would require you to know basics of calloc and malloc memory allocating subroutines (or
functions).Its calloc with does initialize allocated memory to zero.
Page 2
Question 14
What could be a possible arrangement of 10 points in space so that five lines could be drawn with a
condition that every line has four points on it.
This is a question which you would had come across in several puzzle books and previous questions.
Answer is a "star". You could try drawing a star and count the number of intersections which should be 10.
Question 15
Ram has 30 Rupees with him. He has two Rupee notes. One of the rupee notes is not a 20 Rupee note. Then
find out the notes he has with him ?
These kinds of questions are the simplest of the simpler ones. But one could tend to miss out due to
nervousness.Here is the answer : One of the rupee notes is not a 20 Rupee note. So the other one can be a 20
Rupee :). And the first one should be a 10 Rupee note.
Question 16
In a dark room with no equipments other than a clock, you are given a pendulum. How can you
measure your height now ?
This is a bit difficult one. Time period of pendulum is given by 2 X 3.14 X (sqrt(height of rope/gravity)).
Now, gravity = g = 9.18.
Using stop clock you can find the Time Period of pendulum.(average time for one oscillation). Using the
formula for time period you can measure the height of the rope. Then using the rope you can measure your
own height.
Question 17
Sum of square of three numbers is 95 and the product of these numbers is 101. Find the numbers.
This is a tricky question which might consume a lot of time if not read carefully. In the above question, 101
is a prime number which cannot exist as a product of three different numbers. Hence you should
immediately tick the option "none of the above" when reading these kinds of questions.
Question 18
Find the total number of distinct vehicle numbers that can be formed using two letters followed by two
numbers. Letters need to be distinct.
This question comes under permutations and combinations section. Out of 26 alphabets two distinct letters
can be chosen in 26p2 ways. Coming to numbers part, there are 10 ways (any number from 0 to 9 can be
chosen) to choose the first digit and similarly another 10 ways to choose the second digit. Hence there are
Page 3
totally 10X10 = 100 ways. Combined with letters there are 6p2 X 100 ways = 65000 ways to choose vehicle
Question 19
Consider the sum of first 70 natural numbers. If every digit '6' is replaced by '8' what would be the net
increase and the new sum?
To answer this question, you need to know the simple formula for sum of first 'n' natural numbers which is
n (n+1)/2.
Hence sum of numbers from 1 to 70 would be 70X71/2 = 2485.
If every '6' digit is replaced by '8' there would be totally 8 replacements at (6,16,26,36,46,56,60,66). Every
replacement will add an additional '2' to the net sum. Hence the new sum will be 2485 + 8 X 2 = 2501 and
the increase will be 16.
Question 20
Consider the sum of first 100 odd numbers. If every digit 7 is replaced by 2 what would be net decrease in
sum and the new sum ?
This question is for you to try to solve yourselves.
Question 21
Statement :: Men cause more accidents than women while driving. However men are still better drivers than
women. Question :: Which of the following is true considering the above statement
a) Men drive much faster than women
b) Percentage of women causing accidents is greater than that of men.
c) Percentage of men causing accidents is greater than that of women.
Answer : Clear answer is "b) Percentage of women causing accidents is greater than that of men". The
inference from this statement is that though men cause more accidents, there are more men drivers than
women and hence more accidents from men. However the percentage of men drivers causing accidents is
lesser than that of women.
Question 22
Statement :: There is another planet X similar to earth where the total time taken for the completion of an
year matches the duration of 365 days and 6 hours. However the total time taken for 4 years to get
completed in that planet X matches exactly to that of the earth. How is this possible ?? Question :: Which of
the following is true considering the above statement
Page 4
a) Earth revolves slower than that of the planet X.
b) Leap year accounts for the delayed time of planet X.
c) Clocks measure times differently in both the planets.
Answer : Answer would be "b) Leap year accounts for the delayed time of planet X". During leap year the
number of days become 366. The extra one day (24 hours) accounts for 4 years of delay between times of
planet X and earth.
Question 23
Statement :: Total economy of India is much higher than that of United Kingdom. But an average Indian
man has lesser income than that of a man from UK. Question :: Which of the following is true considering
the above statement
a) Currencies in India and UK are different.
b) Though Indian economy is larger the population of India is huge.
c) UK has more jobs than India.
Answer : Correct answer is "b) Though Indian economy is larger the population of India is huge." Since
population of India is much higher than that of UK, the income per individual in India is lesser than that of
Question 24
An elephant fell into a well of depth 20mts. Everyday it climbs 4 mts but at the end falls by 2 mts. Find the
number of days it would take for the elephant to get out of the well ?
Solution :
Since it climbs 4 mts and falls by 2 mts everyday, effectively it climbs 2 mts everyday. In 8 days it climbs
16mts. Then on 9th day it climbs by 4 mts and can get out without having to fall back. Hence it takes 9 days
for the elephant to be safe.
Question 25
Ramu was driving to a city full of mathematicians. There was a distance board reading the number of Kms
he has to travel further. It stated that the distance when divided by 2,3,4,5 and 6 leaves a remainder 1. But
when divided by 11 it leaves a remainder 0. Help Ramu in knowing the exact distance.
Solution :
LCM of 2,3,4,5 and 6 is 60. LCM and its multiples are perfectly divisible by all the numbers 2,3,4,5 and 6.
i.e, 60,120,180... are perfectly divisible by 2,3,4,5 and 6.
Then 61,121,181.... would leave a remainder 1 when divided by any of the numbers 2,3,4,5 or 6.
Among these 121 is perfectly divisible by 11. Hence Ramu has to travel 121 Kms to reach the city of
Question 26
Page 5
Brothers Ramu ,Raju and Rahul are given ropes of equal lengths. They are given a chance by their ailing
father that they can own the land that they manage to fence around in father's common land. Ramu fences in
the shape of a triangle, Raju fences in the shape of a circle and Rahul fences in a star shaped manner. At the
end, who will manage to acquire most land ??
Raju would be the clear winner. This is because for a given perimeter, circle takes the maximum area
Question 27
What is the prime difference between While and Do While Loop ?
Though while and do-while are loop statements, in Do While it is assured that the statements within the
loop will be executed at least once (even if the condition fails.)
Question 28
What is the difference between a = ++b and a = b++ ?
The first statement a = ++b can be broken down into two statements b = b + 1 followed by a = b. Hence b
will be incremented first and will be assigned to a. Hence values of a and b will be same at the end.
The second statement a = b++ can be broken down into two statements a = b followed by b = b + 1. Hence
b will be assigned to a. Only after this assignment b will be incremented. Hence values of a and b will be
different at the end.
Question 29
A C program is compiled into native (binary) code by the compiler. Similary what will be generated out of
JAVA program source by JAVA compiler ?
JAVA program will get compiled into bytecode instead of native (binary) code.
Question 30
Pick the odd man out from the following:
a) HTTP b) SMTP c) FTP d) CDMA
CDMA: explanation and Inference: Amont the given options, the first three namely HTTP, SMTP and FTP
are network transmission related protocols while CDMA stands for Code Division Multiple Access which is
a cellular communication technology.
Page 6
Question 31
Pick the odd man out from the following:
a) J2EE b) J2ME c) PHP d) DOTNET
Answer: b) J2ME
Explanation and Inference: J2ME is a JAVA based technology used for mobile phone applications. The
other three technologies namely J2EE,PHP and DOTNET are conventional web based technologies which
are suitable high end devices like PCs.
Question 32
Pick the odd man out from the following:
Answer: a) SQL
Explanation and Inference: ORACLE, MYSQL and SQL SERVER 2003 are names of Database
Management Systems Software Programs released by different companies. However SQL denotes
Structured Query Language and is used to execute queries on all DBMS systems.
Question 34
Pick the odd man out from the following:
a) Select b) Insert c) Create Table d) Delete
Answer: c) Create Table
Explanation and Inference: All the given options are SQL statements. However "Create Table" is a DDL
(Data Definition Language) type of statement while all the other three options are of type DML (Data
Manipulation Language).
Question 35
Which of the following statements regarding C compilation is true ?
a) C Compiler upon completion invokes Preprocessor.
b) C Compiler invokes Preprocessor prior to compiling a code.
c) C Compiler doesn't use Preprocessor for compiling.
Answer: b) C Compiler invokes Preprocessor prior to compiling a code.
Explanation & Inference: C Preprocessor is invoked by Compiler to handle derivatives like #include, macro
definitions etc. note: Not only HCL, but many companies give much importance to specific areas of C
language like compilation, preprocessing etc.
Page 7
Question 36
The Technique to make a computer to behave as it is having more memory than its actual physical memory
limit is called --------------.
a) Virtual Memory.
b) Random Memory.
c) Mounted Memory.
Answer: a) Virtual Memory.
Expansion of CDMA ?
a) Code Division Multiple Access
b) Cell Data Multiple Access
c) Code Data Multiple Access
d) None of the above.
The above aptitude question is from communication systems. However this question is a basic one which
everyone should remember. The answer is a)Code Division Multiple Access. You could expect similar
questions like expansion of GSM, GPS etc in wipro placement papers.
Question 37
Which of the following layers are not in TCP / IP?
a) Application Layer
b) Network Layer
c) Bridging Layer
d) Data Link Layer
Answer is c) Bridging Layer. You can always expect one or two questions from computer networks in
Wipro papers.
What will printf(++i) in C will do?
a) Print i and then increment i by 1
b) Increment i by 1 and then print i
c) Print i and then increment i by i
d) Increment i by i and then print i
This is one common question which you can expect in Wipro Papers. These kinds of questions dealing with
Page 8
basics of C statements are common in other company placemente papers as well. This includes TCS,
Accenture, HCL, HP etc.
Question 37
What is the function of assembler?
a) Converts assembly to binary code
b) Converts high level language code into assembly code
c) Interprets and executes assembly code
d) Noe of the above
Answer a) Assembly to binary code
Question 38
Rearrange the letters in the word "RAPAKETE" and find the right synonym for
the new word from the following.
a) Bird
b) Reptile
c) Animal
d) Cow
While answering these types of questions it is better to keep all the choices in mind while rearranging. This
could help you to arrive at the solution in a quick time. The rearranged word for the above question is
"PARAKEET" which means a) Bird.
Question 39
If Resistance is denoted by X , Current by Y and voltage by Z (in standard units) which is correct?
a) Z = XY
b) Z = X/Y
c) Z = Y/X
d) None of the above
This question is actually from basic physics. This is from ohm's law which sure everyone one of you would
had studied during high school. Ohm's Law is V = IR where V is the voltage, I is the current and R is the
resistance. Comparing this law with the question the answer would be a) z = XY
Page 9
Question 40
A Pizza shop serves pizzas with any of 8 different toppings as chosen by customers. John is a customer who
likes to buy two pizzas with different toppings. In how many ways he can do that?
For the first pizza John can choose any of the 8 toppings. Hence he has 8 choices. For the second pizza he
can choose from remaining 7 toppings.
In effect he can buy the two pizzas in 8 X 7 = 56 ways (this means he has in total of 56 ways to choose his
two pizzas).
Question 41
A person travels at a speed of 4kmpH from A to B and returns to A with a speed of 5KmpH. Find his
average speed.
Average speed = total distance / total time taken
Let the distance from A to B be x.
Let t1 be the time taken from A to B and t2 be the time taken from B to A (returning time).
Then average speed = 2x / (t1 + t2)
Here t1 = x/4 and t2 = x/5 (speed = distance/time formula is applied here)
Applying these values in the first equation we will get average speed = 4.44.
Question 42
Consider two cars A and B. Speed of A is 10 Kmph. Speed of B is 3 times faster than that of A. What will
be the ratio of time taken by B to cover the same distance as that of A.
Explanation: Time and Speed problems always find their place in TCS recruitment papers. Speed of B = 3
X 10 = 30 Kmph. Hence B can cover 3 times the distance that can be covered by B in a given time. In other
words, B takes one third or 1/3 of time taken by A to cover the same distance. Hence answer would be 1/3.
Question 43
Find the missing number in the given sequence : 1,2,3,5,?,13,21,?
Explanation: These kinds of questions have become common in TCS papers. The given sequence is a
fibonacci series. any third number can be got by summing the first and second numbers. Hence the missing
number would be 3 + 5 = 8.
Question 44
There was a question asking for the area of a trapezium with dimensions of the sides given.
Page 10
Formula for the area will be (a + b)/2 X h = (half of the sum of parallel sides) X (perpendicular distance
between the parallel sides)
Question 45
Next was a very simple question on encoding and decoding. Below is an example question of similar
If NOIDA is written as STNIF, how MEERUT can be written in that code?
Solution: NOIDA is being written as STNIF. Here every letter is replaced by the fifth letter from the letter
under observation. For example the fifth letter after N is S and fifth letter after O is T. Applying the same
logic, MEERUT can be written as RJJWZY.
Question 46
The ratio of Rita's age to her mother's age is 3:8. The difference of their ages is 35 years. The ratio of their
ages after 4 years will be ------ .
Let their ages be 3x and 8x
8x - 3x =35
x =7
Their present ages are 21 and 56 years.
Ratio of their ages after 4 years are 25:60 = 5:12
Question 47
The letters P, Q, R, S, T, U and V, not necessarily in that order represents seven
consecutive integers from 22 to 33.
• U is as much less than Q as R is greater than S.
• V is greater than U.
• Q is the middle term.
• P is 3 greater than S.
Can you find the sequence of letters from the lowest value to the highest value?
Page 11
The sequence of letters from the lowest value to the highest value is TUSQRPV.
Question 48
Because cigars cannot be entirely smoked, a Bobo who collects cigar butts can make a cigar to smoke out
of every 3 butts that he finds.Today, he has collected 27 cigar butts. How many cigars will he be able to
Answer 13
Question 49
A boy found that he had a 48 inch strip of paper. He could cut an inch off every second.How long would it
take for him to cut 48 pieces? He can not fold the strip and also, can not
stack two or more strips and cut them together.
Answer 47 seconds.
Question 50
A man has Ten Horses and nine stables as shown here.
The man wants to fit Ten Horses into nine stables. How can he fit Ten horses
into nine stables?
The answer is simple. It says the man wants to fit "Ten Horses" into nine stables.
There are nine letters in the phrase "Ten Horses". So you can put one letter each
in all nine stables.
[T] [E] [N] [H] [O] [R] [S] [E] [S]
Question 51
To move a Safe, two cylindrical steel bars 7 inches in diameter are used as rollers.How far will the safe
have moved forward when the rollers have made one revolution?
The safe must have moved 22 inches forward.
Question 52
If a rook and a bishop of a standard chess set are randomly placed on a chessboard, what is the probability
that one is attacking the other? Note that both are different colored pieces.
The probability of either the Rook or the Bishop attacking the other is 0.3611
Page 12
Question 53
If three babies are born every second of the day, then how many babies will be born in the year 2001?
9,46,08,000 babies
Question 54
3 blocks are chosen randomly on a chessboard. What is the probability that they are in the same diagonal?
There are total of 64 blocks on a chessboard. So 3 blocks can be chosen out
of 64 in 64C3 ways.
So the sample space is = 41664
There are 2 diagonal on chessboard each one having 8 blocks. Consider one
of them.
3 blocks out of 8 blocks in diagonal can be chosen in 8C3 ways.
But there are 2 such diagonals, hence favourables = 2 * 8C3 = 2 * 56 = 112
The require probability is
= 112 / 41664
= 1 / 372
= 0.002688
Question 55
What is the area of the triangle ABC with A(e,p) B(2e,3p) and C(3e,5p)?
where p = PI (3.141592654)
A tricky ONE.
Given 3 points are colinear. Hence, it is a straight line.
Hence area of triangle is 0.
Question 56
Silu and Meenu were walking on the road.Silu said, "I weigh 51 Kgs. How much do you weigh?"Meenu
replied that she wouldn't reveal her weight directly as she is overweight.
But she said, "I weigh 29 Kgs plus half of my weight."How much does Meenu weigh?
Meenu weighs 58 Kgs.
It is given that Meenu weighs 29 Kgs plus half of her own weight. It means that
29 Kgs is the other half. So she weighs 58 Kgs.
Solving mathematically, let's assume that her weight is X Kgs.
X = 29 + X/2
Page 13
2*X = 58 + X
X = 58 Kgs
Question 57
Consider the sum: ABC + DEF + GHI = JJJ .If different letters represent different digits, and there are no
leading zeros, what does J represent?
The value of J must be 9.Since there are no leading zeros, J must be 7, 8, or 9. (JJJ = ABC + DEF + GHI=
14? + 25? + 36? = 7??)Now, the remainder left after dividing any number by 9 is the same as the
remainder left after dividing the sum of the digits of that number by 9. Also, note that 0 + 1 + ... + 9 has a
remainder of 0 after dividing by 9 and JJJ has a remainder of 0, 3, or 6. The number 9 is the only number
from 7, 8 and 9 that leaves a remainder of 0, 3, or 6 if you remove it from the sum 0 + 1 + ... + 9. Hence, it
follows that J must be 9.
Question 58
At University of Probability, there are 375 freshmen, 293 sophomores, 187 juniors, & 126 seniors. One
student will randomly be chosen to receive an award.
What percent chance is there that it will be a junior? Round to the nearest whole percent.
Answer 19%
Question 59
If you were to dial any 7 digits on a telephone in random order, what is the probability that you will dial
your own phone number? Assume that your telephone number is 7-digits.
1 in 10,000,000
Question 60
An anthropologist discovers an isolated tribe whose written alphabet contains only six letters (call the letters
A, B, C, D, E and F). The tribe has a taboo against
using the same letter twice in the same word. It's never done.If each different sequence of letters constitues
a different word in the language, what is the maximum number of six-letter words that the language can
Answer The language can employ maximum of 720 six-letter words.
Question 61
Page 14
Kate, Demi, Madona, Sharon, Britney and Nicole decided to lunch together in a restaurant. The waiter led
them to a round table with six chairs. How many different ways can they seat?
Answer There are 120 different possible seating arrangments.
Question 62
In a hotel, rooms are numbered from 101 to 550. A room is chosen at random. What is the probability that
room number starts with 1, 2 or 3 and ends with 4, 5 or 6?
There are total 450 rooms.
Out of which 299 room number starts with either 1, 2 or 3. (as room number 100
is not there) Now out of those 299 rooms only 90 room numbers end with 4, 5 or
6.So the probability is 90/450 i.e. 1/5 or 0.20.
Question 63
What is the four-digit number in which the first digit is 1/3 of the second, the third is the sum of the first
and second, and the last is three times the second?
Answer The 4 digit number is 1349.
Question 64
Difference between Bholu's and Molu's age is 2 years and the difference between Molu's and Kolu's age is 5
years. What is the maximum possible value of the sum of the difference in their ages, taken two at a time?
Answer The maximum possible value of the sum of the difference in their ages taken two at a time - is 14 years.
Question 65
A 3 digit number is such that it's unit digit is equal to the product of the other two digits which are prime.
Also, the difference between it's reverse and itself is
396.What is the sum of the three digits?
Answer The required number is 236 and the sum is 11.
Question 66
Find the smallest number such that if its rightmost digit is placed at its left end, the new number so formed
is precisely 50% larger than the original number.
Answer The answer is 285714.
Page 15
Question 67
There is a 4-character code, with 2 of them being letters and the other 2 being numbers.How many
maximum attempts would be necessary to find the correct code? Note
that the code is case-sensitive.
Answer The maximum number of attempts required are 16, 22,400
Question 68
How many possible combinations are there in a 3x3x3 rubics cube? In other words, if you wanted to solve
the rubics cube by trying different combinations, how many might it take you (worst case senerio)?How
many for a 4x4x4 cube?
Answer There are 4.3252 * 10^19 possible combinations for 3x3x3 Rubics and
7.4012 * 10^45 possible combinations for 4x4x4 Rubics.
Question 69
There are 20 people in your applicant pool, including 5 pairs of identical twins.If you hire 5 people
randomly, what are the chances you will hire at least 1 pair of
identical twins? (Needless to say, this could cause trouble ;)
Answer The probability to hire 5 people with at least 1 pair of identical twins is 25.28%
Question 70
A man is visited by his 7 friends in the following pattern.The first friend visited every day.The second
visited every second day.The third visited every third day and so on
upto 7th friend on every 7th day.When will they all meet together.
Question 71
Every man dances with 3 women and every woman dances with 3 men.And also 2 men have 2 women in
common in the party. How many people attended the party?
Ans: 8
Question 72
Two girls go to a shopping. In the first shop they spend half of what they had in their purse + 2 rupees.Next
half of remaining + 5 rs.Next half Of whatremained.The remaining
5 rs spent on coffee.How much did they start with?
Ans: 64.
Page 16
Question 73
A man spent 1/5 of his life as young boy...,1/7,1/12, and then 5 years upto his sons birth his son was chosen
alderman 4 years ago when he was half the age of the man now.
Find the mans age. ( refer shakuntala devi - puzzles to puzzle u- problem from that - we dont remember
exact figures ).
Ans : 84yrs
Question 74
I have 3 rs. and the types of stamps are 2,7,10,15,20 parse. I should buy 6 each of 2 types and 5 each of
remaining 3 types exactly.What should be the types of stamps in the 5
each lot and 6 each lot?
Ans : 5 each lot: 2,7,15 and 6 each lot : 10,20
Question 75
A,B,C,D,E denote diff digits.* means multiply. AB * CD = EEE (CD * E)-AB = CC .Then find the digits.
Ans: A,B,C,D,E = 3,7,1,2,4
Question 76
There r some chickens and some chicken field. If we sell 75 chickens Then the feed will last 20 days
longer.If we buy 100 chickens more, then the feed will get over before 15 days.What is the present number
of chickens?
Ans: 300
Question 77
What is the next number in the series:
A : 3,6,13,26,33,66,__
Ans: 73
Question 78
In the construction of a house these were required Designer and Painter equals Rs. 1100 Painter and
Plumber equals Rs. 1700 Plumber and Electrician equals Rs. 1100 Electrician and Constructor equals Rs.
3200 Constructor and Mechanic equals Rs. 5300 Mechanic and Painter equals Rs. 3200 What are their
individual costs?
Ans: Designer=200; Painter=900; Plumber=800; Electrician=300; Constructor=3000; Mechanic=2300
Page 17
Question 79
complete the following series 1, 5, 14, 30, 55, 91, 140,…
Ans: 204
3) Two men arrived at the airport with 64 and 20 bottles of wine respectively. For paying custom duty first
one give 40 francs and 5 bottles of wine. second one give 2 bottles of wine
and in return he got 40 francs .so,what the price of each bottle of wine and also what the duty for each
Ans: 120 francs and 10 francs
Question 80
I lost my wallet and the money in that. But I remember that before I lost my wallet I purchased to things.
First one I purchased by paying 10% of what in my wallet and also for
second one i also pay 10% of what has been left in my wallet- that is equal to 9. then how much money I
Ans: 81
Question 81
A car is traveling at a uniform speed. The driver sees a milestone showing a 2-digit number. After traveling
for an hour the driver sees another milestone with the same digits in
reverse order. After another hour the driver sees another milestone containing the same two digits separated
by a zero. What is the average speed of the driver?
Ans : 45 kmph
Question 82
Adding 1/4 of the time from midnight to the present time, to 1/2 of the time from present
until midnight, gives the present time. what is the present time.
Ans :9.36
Question 83
Light glows for every 13 seconds . How many times did it between 1:57:58 and 3:20:47 am
Ans : 383 + 1 = 384
Page 18
Question 84
A chain is broken into three pieces of equal lenths conttaining 3 links each. It is taken to a backsmith to join
into a single continuous one.How many links are to be opened to
make it ?
Ans : 2.
Question 85
Grass in lawn grows equally thickand in a uniform rate. It akes 24 days for 70 cows and 60 for 30 cows .
How many cows can eat away the same in 96 days.?
Ans : 18 or 19
Question 86
There is a certain four digit number whose fourth digit is twise the first digit.Third digit is three more than
second digit.Sum of the first and fourth digits twise the third number.What was that number ?
Ans : 2034 and 4368
Question 87
A thief steals half the total no of loaves of bread plus 1/2 loaf from a bakery. A second thief steals half the
remaining no of loaves plus 1/2 loaf and so on. After the 5th thief has stolen there are no more loaves left in
the bakery. What was the total no of loaves did the bakery have at the beginning?
Ans: 31
Question 88
A person needs 6 steps to cover a distance of one slab. if he increases his foot length(step length) by 3
inches he needs only 5 steps to cover the slabs length. what is the length of the each slab?
Ans : 31 inches
Question 89
There is one lily in the pond on 1st june. There are two in the pond on 2nd june . There are four on 3rd june
and so on. The pond is full with lilies by the end of the june. i)On which date the pond is half full.ans. 29th.
--the june has 30 days) (ii)if we start with 2 lilies on 1st june when will be the pond be full with lilies?
Ans: 29th june
Page 19
Question 90
A lorry starts from Banglore to Mysore at 6.00 A.M,7.00am.8.00 am.....10 pm. Similarly one another starts
from Mysore to Banglore at 6.00 am,7.00 am, 8.00 am.....10.00pm. A lorry takes 9 hours to travel from
Banglore to Mysore and vice versa.
(i) A lorry which has started at 6.00 am will cross how many lorries.
(ii)A lorry which had started at 6.00pm will cross how many lorries.
Ans: (i)10 lorries
(ii)14 lorries
Question 91
There is an element which triplicates in every hour. Each of these 3 items in turn reproduces exactly 3 other
items. If a single compound is kept in a container at noon and the container is full by midnight. After how
many hours is the container 1/3 full?
Question 92
A person goes to a bank and Quotes x Rs and y paise on a cheque. The cashier misreads it and gives y Rs
and x paise. The man comes out and donates 5 paise to a begger. Now, the man has exactly double the
amount he has quoted on the cheque.
Ans: 31 Rs. and 63 paise.
Question 93
e(int n)
(not clear)
Question 94
Page 20
Question 95
char s1[20]="hello world";
printf("%%.%...(not clear)",s1);
Ans: bad format specifier
Question 96
func(int i)
static int count;
Ans: 1+2+3...(counts values does not go after funtion cal
Question 97
______ is copying the three sets of files (database files, redo logs, and control file) when the instance is shut
down. This is a straight file copy, usually from the disk directly
to tape. You must shut down the instance to guarantee a consistent copy.
a) Cold backup
b) hot backup
c) Armstrong Rules
Answer is cold backup
Question 98
_______ is a program module, which ensures that database, remains in a consistent state despite system
failures and concurrent transaction execution proceeds without conflicting.
a) Transaction manager
b) File manager
c) None of these
Answer is: Transaction manager
Question 99
_______ is a program module that provides the interface between the low-level data stored in database,
application programs and queries submitted to the system.
Page 21
a) Buffer manager
b) Storage manager
C) None of these
Answer is: Storage manager
Question 100
A _____ with respect to DBMS relates to user commands that are used to interact with a data base.
a) Connection string
b) Query String
c) Query
answer is: Query
Question 101
Explain the use of the WHERE clause.
Answer: It directs SQL to extract data from rows where the value of the column is the same as the current
value of the WHERE clause variable.
Question 102
What technique is used to retrieve data from more than one table in a single SQL statement?
Answer: The Join statement combines data from more that two tables
Question 103
What is a foreign key?
Answer: It identifies a related row in another table and establishes a logical relationship between rows in
two tables.
Question 104
What are the reasons for adding an index to a table ?
Answer: To increase lookup performance. For a unique key to guarantee the uniqueness of the values for a
column on a table.
Question 105
What is PL/SQL ?
Page 22
Answer: A programming language available in Oracle. It is a way of wrapping SQL with 3GL constructs
such as IF..THEN..ELSE, WHILE etc.
Question 106
What is locking and what is it used for?
Answer: Locking is a mechanism to restrict access to data. It prevents one user updating data whilst
another user is looking at it.
Question 107
What types of locking are available with Oracle?
Answer: Row locking and table locking
Question 108
What happens if a tablespace clause is left off of a primary key constraint clause?
Answer: This results in the index that is automatically generated being placed in the users default
tablespace. Since this will usually be the same tablespace as the table is being created in, this can cause
serious performance problems.
Question 109
What are identifiers and what is naming convention?
Ans : Identifiers are used for class names, method names and variable names. An identifier may be any
descriptive sequence of upper case & lower case letters,numbers or underscore or dollar sign and must not
begin with numbers.
Question 110
What is the return type of program’s main( ) method?
Ans : void
Question 111
What is the use of bin and lib in JDK?
Ans : Bin contains all tools such as javac, applet viewer, awt tool etc., whereas Lib contains all packages
and variables.
Page 23
Question 112
The Java interpreter is used for the execution of the source code.
Ans: True
Question 113
What declarations are required for every Java application?
Ans: A class and the main( ) method declarations.
Question 114
What are the two parts in executing a Java program and their purposes?
Ans: Two parts in executing a Java program are: Java Compiler and Java Interpreter The Java Compiler is
used for compilation and the Java Interpreter is used for execution of the application.
Question 115
What are the three OOPs principles and define them?
Ans.: Encapsulation, Inheritance and Polymorphism are the three OOPs Principles.
Encapsulation: Is the Mechanism that binds together code and the data it manipulates, and keeps both safe
from outside interference and misuse.
Inheritance: Is the process by which one object acquires the properties of another object.
Polymorphism: Is a feature that allows one interface to be used for a general class of actions.
Question 116
struct xx
int x=3;
char name[]="hello";
struct xx *s=malloc(sizeof(struct xx));
Page 24
Answer: Compiler Error
Explanation: Initialization should not be done for structure members inside the structure declaration
Question 117
int *j;
int i=10;
Explanation: The variable i is a block level variable and the visibility is inside that block only. But the
lifetime of i is lifetime of the function so it lives upto the exit of main function. Since the i is still allocated
space, *j prints the value stored in i since j points i.
Question 118
int i,j;
Answer: Runtime error: Abnormal program termination. assert failed (i<5), ,
asserts are used during debugging to make sure that certain conditions are satisfied. If assertion fails, the
program will terminate reporting the same. After debugging use, #undef NDEBUG and this will disable all
the assertions from the source code. Assertion is a good debugging tool to make use of..
Question 119
int i;
printf("%d",scanf("%d",&i)); // value 10 is given as input here
Answer: 1
Explanation: Scanf returns number of items successfully read and not 1/0. Here 10 is given as input which
should have been scanned successfully. So number of items read is 1.
Page 25
Question 120
static char names[5][20]={"pascal","ada","cobol","fortran","perl"};
int i;
char *t;
for (i=0;i<=4;i++)
Answer: Compiler error: Lvalue required in function main
Explanation: Array names are pointer constants. So it cannot be modified.
Question 121
main( )
void *vp;
char ch = ‘g’, *cp = “goofy”;
int j = 20;
vp = &ch;
printf(“%c”, *(char *)vp);
vp = &j;
printf(“%d”,*(int *)vp);
vp = cp;
printf(“%s”,(char *)vp + 3);
Explanation: Since a void pointer is used it can be type casted to any other type pointer. vp = &ch stores
address of char ch and the next statement prints the value stored in vp after type casting it to the proper
data type pointer. the output is ‘g’. Similarly the output from second printf is ‘20’. The third printf
statemen t type casts it to print the string from the4th value hence the output is ‘fy’.
Question 122
Answer: Runtime error : Stack overflow.
Page 26
Explanation: main function calls itself again and again. Each time the function is called its return address is
stored in the call stack. Since there is no condition to terminate the function call, the call stack overflows at
runtime. So it terminates the program and results in an error.
Question 123
void show()
printf("I'm the greatest") ;
Answer: Compier error: Type mismatch in redeclaration of show.
Explanation:When the compiler sees the function show it doesn't know anything about it. So the default
return type (ie, int) is assumed. But when compiler sees the actual definition of show mismatch occurs since
it is declared as void. Hence the error.
The solutions are as follows:
1. declare void show() in main() .
2.define show() before main().
3.declare extern void show() before the use of show()
Question 124
Four persons A, B, C and D are playing cards. Each person has one card, laid down
on the table below him, which has two different colours on either side.
No card has the same color on both sides. The colours visible on the table are Red,
Green, Red and Blue respectively. They see the color on the reverse side and give the
following comment.
A: Yellow or Green
B: Neither Blue nor Green
C: Blue or Yellow
D: Blue or Yellow
Given that out of the 4 people 2 always lie find out the colours on the cards each person.
ANSWER: Try all possible combinations. Keep in mind two things. THE combination obtained should
satisfy the conditions
1.Two are lying and two are telling the truth
2.Neither two cards are similar nor are two sides of a card are of same color
Page 27
Question 125
Four tourists A,B,C,D and four languages English, German, French and Italian. They are not able to
converse among themselves in one language. Though A does not know English he can act as an interpreter
between B and C. No one spoke both French and German. A knows German and was able to converse with
D who doesn’t know a word in German. Only one language was spoken by more than two persons. Each
spoke two languages. Find who spoke what.
Question 126
Grass in lawn grows equally thick and in a uniform rate. It takes 40 days for 40 cows and 60 days for 30
cows to eat the whole of the grass. How many days does it take for 20 cows to do the same?
g - grass at the beginning
r - rate at which grass grows, per day
y - rate at which one cow eats grass, per day
n - no of cows to eat the grass in 96 days
g + 40*r = 40 * 40 * y------- 1
g + 60*r = 30 * 60 * y------- 2
g + n*r = 20 * n * y-------- 3
from 1 and 2
r=10y g=120r
from 3
Solving, n = 120
Question 127
Lucia is a wonderful grandmother. Her age is between 50 and 70.Each of her sons have as many sons as
they have brothers. Their combined number gives Lucia’s age. What is the age?
Let the no. of Lucia’s sons = n
No. of brothers for each son = n-1
No. of sons for each of Lucia’s son = n-1
Lucia’s age = n-1 * n-1
= a perfect square between 50 and 70
= 64
Page 28
Question 128
In a race Andrew beats Jim. Jack is not the last. Dennis loses to both Jack and Lucia. Jim beats Jack. Who
won the race?
The possible positions in the race are,
In either case Andrew is the winner.
Question 129
Find the digits X,Y,Z
x+y+z = z ==> x+y = 10
max value for y = 1
hence x = 1
also, (carry)1+x+y+z = x ==> 1+y+z = 10
hence z=8
9 1 8
Question 130
A 1 k.m. long wire is held by n poles. If one pole is removed, the length of the gap becomes 12/3m. What is
the number of poles initially?
Let the no. of poles originally = n
After taking away one pole
(n-1)*12/3 = 1000
n = 251
Question 131
A + B + C +D = D + E + F + G = G + H + I =17.
Page 29
A = 4 ,B = 2, C =6, D = 5, E = 3, F = 8, G = 1,H = 7, I = 9.
Question 132
The L.C.M. (Lowest (or Least) Common Multiple) of two numbers is 45 times to their H.C.F (Highest
Common Factor). If one of the numbers is 125 and sum of L.C.M. and H.C.F. is 1150, the other number is:
a) 215
b) 220
c) 225
d) 235
Solution: Let L.C.M. be l and H.C.F. be h. Then l = 45h, l + h =1150, this gives h =25 and l = 1125
Thus the second number = (25 * 1125)/125 = 225
Question 133
Six bells commence tolling together and toll at intervals 2,4,6,8,10 and 12 seconds respectively. In 30
minutes how many times they toll together.
a) 4
b) 10
c) 15
d) 16
Solution: L.C.M. of 2, 4,6,8,10,12 = 120 so they toll together after every 120 seconds i.e. 2 minutes. So in
30 minutes they toll together 30/2 + 1 = 16 time
Question 134
The value of (0.625 * 0.0729 * 28.9)/(0.0017 * 0.025 * 8.1) is
a) 0.3825
b) 3.825
c) 38.25
d) 382.5
Solution: The sum of decimal places in numerator and denominator being the same, decimal point can be
removed (625*729*289) / (17*25*81) = 3825
Page 30
Question 135
Linear equations are part of all math aptitude tests. They can be age related problems, upstream,
downstream problems etc
I am three times as old as my son. Five years later I shall be two and a half times as old as my son. What is
my age?
Let my age be x years and age of my son be y years.
(i) x = 3y Five years later
(ii) x+5 = 5/2(y+5)
From (i) and (ii)
y=15 and x=45
Question 136
Thirty men take 20 days to complete a job working 9 hours a day. How many hour a day should 40 men
work to complete the job?
(a) 8 hrs
(c) 7 hrs
(b) 7 1/2 hrs
(d) 9 hrs
Ans. (b)
Question 137
Find the smallest number in a GP whose sum is 38 and product 1728
(a) 12
(c) 8
(b) 20
(d) none of these
Ans. (c)
Question 138
A boat travels 20 kms upstream in 6 hrs and 18 kms downstream in 4 hrs. Find the speed of the boat in still
water and the speed of the water current?
(a) 1/2 kmph
(c) 5 kmph
(b) 7/12 kmph
(d) none of these
Ans. (b)
Page 31
Question 139
A goat is tied to one corner of a square plot of side 12m by a rope 7m long. Find the area it can graze?
(a) 38.5 sq.m
(c) 144 sq.m
(b) 155 sq.m
(d) 19.25 sq.m
Ans. (a)
Question 140
If 2x-y=4 then 6x-3y=?
Ans. (b)
Question 141
If x=y=2z and xyz=256 then what is the value of x?
Ans. (b)
Question 142
(1/10)18 - (1/10)20 = ?
(a) 99/1020
(b) 99/10
(c) 0.9
(d) none of these
Ans. (a)
Question 143
Pipe A can fill in 20 minutes and Pipe B in 30 mins and Pipe C can empty the same in 40 mins. If all of
them work together, find the time taken to fill the tank
Page 32
(a) 17 1/7 mins
(c) 8 mins
(b) 20 mins
(d) none of these
Ans. (a)
Question 144
What is the size of the memory unit, WORD ?
a) CPU specific
b) 1 byte
c) 2 bytes
Answer is CPU specific
Question 145
In one hour a boat goes 11 km long the stream and 5 km against the stream. The speed of the boat in still
water is?
Answer is 8
Question 146
A man can row 18 kmph in still water. It takes him thrice as long as row up as to row down the river. Find
the rate of stream?
Answer is 9
Question 147
A man can row 71/2kmph in still watre . if in a river running at 1.5 km an hour, if takes him 50 min to row
to place and back. how far off is the place?
Answer is 3
Question 148
A man can row 3 quarters of a km aganist the stream is 111/4 min. the speed of the man in still water is ?
Answer is 5
Question 149
A boat can travel with a speed of 13 kmph in still water. if the speed of stream is 4 kmph,find the time taken
by the boat to go 68 km downstream?
Page 33
Answer is 4
Question 150
A boat takes 90 min less to travel 36 miles downstream then to travel the same distence upstream. if the
speed of the boat in still water is 10 mph . The speed of the stream is :
a) 4
b) 2
c) 8
Answer is 2
Page 34