Questions

Q:

#define clrscr() 100

main()

{

clrscr();

printf( "%dn", clrscr() );

}

A) 100 B) 0
C) Compilation error D) Exception occurs
 
Answer & Explanation Answer: A) 100

Explanation:

Preprocessor executes as a seperate pass before the execution of the compiler. So textual replacement of clrscr() to 100 occurs.The input program to compiler looks like this :

main ()

{

100;

printf("%d\n",100);

}

Note: 100; is an executable statement but with no action. So it doesn't give any problem.

Report Error

View Answer Report Error Discuss

Filed Under: Programming

24 45443
Q:

Logical puzzle

There are three boxes in a table. One of the box contains Gold and the other two are empty. A printed message contains in each box. One of the message is true and the other two are lies. The first box says 'The Gold is not here'. The Second box says 'The Gold is not here'. The Third box says 'The Gold is in the Second box'. Which box has the Gold?

Answer

As the message contains one truth, the third says that the gold is in the second box, if it is to be true, then the first box message will also become true. So Gold cannot be in second and third boxes. Gold is in the first box.

Report Error

View answer Workspace Report Error Discuss

Subject: Logic Puzzles

490 45376
Q:

If  1 1 1 1 = R
    2 2 2 2 = T
    3 3 3 3 = E
    4 4 4 4 = N

 

Then  5 5 5 5 = ?

A) Y B) Z
C) T D) X
 
Answer & Explanation Answer: A) Y

Explanation:

If you add all the terms of the LHS of equality, then the last letter of the sum written in words would give you the RHS.

1 + 1 + 1 + 1 = 4 = FOUR

2 + 2 + 2 + 2 = 8 = EIGHT

3 + 3 + 3 + 3 = 12 = TWELVE

4 + 4 + 4 + 4 = 16 = SIXTEEN

 

So, following the same pattern.

5 + 5 + 5 + 5 = 20 = TWENTY

 

That gives us our answer to 5 5 5 5 =  "Y".

Report Error

View Answer Report Error Discuss

87 45313
Q:

Fill in the blank with the most appropriate option.

 

The Universal Constant of Gravitation is ___.

 

A) 6.67 x 1010 Nm2/kg2 B) 6.67 x 10-10 Nm2/kg2
C) 6.67 x 10-11 Nm2/kg2 D) 9.8 Nm2/kg2
 
Answer & Explanation Answer: C) 6.67 x 10-11 Nm2/kg2

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Physics
Exam Prep: Bank Exams

0 45279
Q:

Japan invaded Manchuria in 1931 because

 

A) Japan wanted to take back lands that belonged to it B) Manchuria had refused to make peace with Japan
C) Manchuria had invaded Japan during World War I D) Japan wanted raw materials and natural resources
 
Answer & Explanation Answer: D) Japan wanted raw materials and natural resources

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: World History
Exam Prep: Bank Exams

12 45230
Q:

How many millimeters make ten kilometers?

 

A) 1010 B) 109
C) 108 D) 107
 
Answer & Explanation Answer: D) 107

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Physics
Exam Prep: Bank Exams

0 45203
Q:

"Eco Mark" is given to the Indian Products that are ___________.

 

A) pure and unadulterated   B) rich in proteins
C) environment friendly D) economically viable  
 
Answer & Explanation Answer: C) environment friendly

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Science
Exam Prep: Bank Exams

2 45112
Q:

The all India Census was

1.first attempted in 1872

2.regularly undertaken since 1881

3.always undertakenas a five-year exercise

 

Select the correct answer using the code given below.

A) 1 only B) 2 and 3 only
C) 1 and 2 only D) 1, 2 and 3
 
Answer & Explanation Answer: C) 1 and 2 only

Explanation:

While it has been conducted every 10 years, beginning in 1872, the first completecensus was taken in the year 1881. Post 1949, it has been conducted by the Registrar General and Census Commissioner of India under the Ministry of Home Affairs, Government of India.

Report Error

View Answer Report Error Discuss

Filed Under: Indian History
Exam Prep: Bank Exams

3 45079