Questions

Q:

Puzzle : Sequence of numbers

Sequence of numbers are 1, 11, 21, 1211, 111221. What will be the next one in the above sequence?

Answer

 It is a strange sequence. Each number describes the resemblance of the previous one, except the first one.


11 describes the previous '1' which contains one '1'


21 describes the previous '11' which contains two '1'


1211 describes the previous '21' which contains one '2' and one '1'


111221 describes the previous '1211' which contains one '1', one '2' and two '1'.


So the next sequence will be 312211, that is the previous '111221' contains three '1', two '2' and one '1'.

Report Error

View answer Workspace Report Error Discuss

Subject: Math Puzzles

16 4538
Q:

Which among the following is a system call used for process management

A) fork() B) exec()
C) getppid() D) All the above
 
Answer & Explanation Answer: D) All the above

Explanation:

All the above listed are the System calls for process management

Report Error

View Answer Report Error Discuss

Filed Under: Operating Systems
Exam Prep: GATE
Job Role: Software Architect

0 4532
Q:

There are two numbers such that the sum of twice the first number and thrice the second number is 300 and the sum of thrice the first number and twice the second number is 265. Which is the largest number ?

A) 24 B) 39
C) 85 D) 74
 
Answer & Explanation Answer: D) 74

Explanation:
Report Error

View Answer Report Error Discuss

14 4528
Q:

Solve the MathPuzzle Challenge ?

21728536_1414818525291914_2403155789974071436_n1505380084.jpg image

A) 4! B) 5!
C) 6! D) Can't be determined
 
Answer & Explanation Answer: D) Can't be determined

Explanation:

NUMERICAL has 9 positions in which 2, 4, 6, 8 are even positions.

And it contains 5 consonents i.e, N, M, R, C & L. Hence this cannot be done as 5 letters cannot be placed in 4 positions.

Therefore, Can't be determined.

Report Error

View Answer Report Error Discuss

Filed Under: Math Puzzles
Exam Prep: AIEEE , Bank Exams , CAT , GATE
Job Role: Bank Clerk , Bank PO

11 4527
Q:

Which is the only snake that builds nests?

A) Viper B) King Cobra
C) Anaconda D) Python
 
Answer & Explanation Answer: B) King Cobra

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Animals and Birds

19 4526
Q:

The Teesta River is flowing through which two Indian states ?

A) Haryana & Punjab B) Sikkim & West Bengal
C) West Bengal & Manipur D) Assam & Uttarakhand
 
Answer & Explanation Answer: B) Sikkim & West Bengal

Explanation:

The Teesta River is a 309 km long river flowing through the Indian states of West Bengal and Sikkim, before going to Bay of Bengal through Bangladesh.

Report Error

View Answer Report Error Discuss

Filed Under: Indian Geography
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Bank PO

30 4523
Q:

Logical puzzle

At a restaurant, how could you choose one out of three desserts with equal probability with the help of a coin? What if the coin is biased and the bias is unknown?

Answer

Our solution:


Toss the coin twice.
Let TH, HT and TT correspond to the three choices.
And if you get HH, just repeat (so it takes 8/3 tosses on average).


BIASED COIN

If the coin was biased, TH and HT would occur with equal probability.
So you could assign THHT, HTTH and THTH to the three choices, with other 4-toss outcomes rejected.
Or you could assign HTT, THT and TTH to the three choices, with other 3-toss outcomes rejected.

Report Error

View answer Workspace Report Error Discuss

Subject: Logic Puzzles

18 4521
Q:

What's the difference between the functions rand(), random(), srand() and randomize()?

Answer

rand()  returns a random number


random()  returns a random number in a specified range


srand()  initialise a random number generator with a given seed value


randomize()   initializes a random number generator with a random value based o time.

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

2 4519