Questions

Q:

What will be output when you will execute following c code?

#include <stdio.h>
void main()

{
    signed int a = -1;
    unsigned int b = -1u;
    if(a == b)
         printf( "The Lord of the Rings" );
    else
         printf( "American Beauty" );
}

A) The Lord of the Rings B) American Beauty
C) Compilation error: Cannot compare signed number with unsigned number D) Warning: Illegal operation
 
Answer & Explanation Answer: A) The Lord of the Rings

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Programming

11 23486
Q:

SnCl2 + 2HgCl2 ---> Hg2Cl2 + SnCl4

 

In the given reaction

 

A) HgCl2 is oxidised B) SnCl2 is oxidised
C) Hg2Cl2 is oxidised D) SnCl2 is reduced
 
Answer & Explanation Answer: B) SnCl2 is oxidised

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Chemistry
Exam Prep: Bank Exams

1 23473
Q:

A married couple adopted a male child. A few years later, twin boys were born to them. The blood group of the couple is AB positive and O negative. The blood group of the three sons is A positive, B positive, and O positive. The blood group of the adopted son is

A) O positive B) A positive
C) B positive D) Cannot be determined on the basis of the given data
 
Answer & Explanation Answer: A) O positive

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Science

129 23472
Q:

A fort had provision of food for 150 men for 45 days. After 10 days, 25 men left the fort. The number of days for which the remaining food will last, is:

A) 29/5 B) 37/4
C) 42 D) 54
 
Answer & Explanation Answer: C) 42

Explanation:

After 10 days : 150 men had food for 35 days.

 

 

 

Suppose 125 men had food for x days.

 

 

 

Now, Less men, More days (Indirect Proportion)

 

 

 

 125 : 150 :: 35 : x    =>    125 x x = 150 x 35

 

 

 

 =>

 

 

 

=> x = 42.

Report Error

View Answer Report Error Discuss

38 23461
Q:

Which of the following is not a valid escape code?

A) " B) \
C) ' D) =
 
Answer & Explanation Answer: D) =

Explanation:

The valid escape codes in programming languages are ', ", \, n, or t are the valid escape codes. 

 

For example, the sequence \n usually represents a newline, while the escape sequence \\ represents a backslash, \t usually represents a newtab.

Report Error

View Answer Report Error Discuss

41 23452
Q:

Which one of the following cities will never get the vertical rays of the sun?

A) Srinagar B) Thiruvananthapuram
C) Kolkata D) Mumbai
 
Answer & Explanation Answer: A) Srinagar

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Geography

58 23424
Q:

Storage which stores or retains data after power off is called____

A) Volatile storage B) Non-volatile storage
C) Sequential storage D) Direct storage
 
Answer & Explanation Answer: B) Non-volatile storage

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Computer

73 23413
Q:

Among the following Union Territories of India, which one has the largest size

A) Puducherry B) Lakshadweep
C) Daman and diu D) Chandigarh
 
Answer & Explanation Answer: A) Puducherry

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Geography

83 23395