Questions

Q:

If I use the following printf() to print a long int why I am not warned about the type mismatch?

printf ("%d",num );

Answer

When a function accepts a variable number of arguments , its prototype cannot provide any information about the number of arguments and type of those variable arguments. Hence the compiler cannot warn about the mismatches. The programmer must make sure that arguments match or must manually insert explicit typecast.

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 3821
Q:

The first indian to enter the Indian Civil Service was

A) Gokhale B) Satyendra Nath Tagore
C) Ramanuja D) Rabindranath Tagore
 
Answer & Explanation Answer: B) Satyendra Nath Tagore

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian History

3 3819
Q:

At what temperature do the Fahrenheit and celcius scales give the same reading?

A) 212 degrees B) 32 degreees
C) -40 degreees D) 0 degreees
 
Answer & Explanation Answer: C) -40 degreees

Explanation:

We want the temperature when F=C.

We know that, F = C x 95 + 32

So substituting C For F, we have C = -40o

Therefore,  C = -40. 

Thus when C = -40, we have C = F

Report Error

View Answer Report Error Discuss

Filed Under: Physics
Exam Prep: CAT , AIEEE
Job Role: Bank PO

17 3819
Q:

Which position is always staffed in ICS applications?

A) Commander in Chief B) Incident Commander
C) Operations Section Chief D) None of the above
 
Answer & Explanation Answer: B) Incident Commander

Explanation:

The Incident Commander is the only position that is always staffed in ICS applications. On small incidents and events, one person, the Incident Commander, may accomplish all five management functions.

The Incident Command System (ICS) is a standardized approach to the command, control, and coordination of emergency response providing a common hierarchy within which responders from multiple agencies can be effective.

Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: AIEEE , Bank Exams
Job Role: Analyst , Bank Clerk , Bank PO

0 3819
Q:

................mixtures are used for making a glass

A) Quartz and Mica B) Salt and Quartz
C) Sand and Salt D) Sand and Silicates
 
Answer & Explanation Answer: D) Sand and Silicates

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Science

18 3819
Q:

Jewar airport is proposed to be developed in which state ? 

A) Madhya Pradesh B) Uttarakhand
C) Punjab D) Uttar Pradesh
 
Answer & Explanation Answer: D) Uttar Pradesh

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness

2 3818
Q:

Who is the author of the book "The Hungry Tide"?

A) Mitali Meelan B) Ravinder Singh
C) Amitav Ghosh D) Sudha Murty
 
Answer & Explanation Answer: C) Amitav Ghosh

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Books and Authors
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank PO

13 3818
Q:

Which of the following is true?

A) It is appropriate to use assertions to validate arguments to methods marked public B) It is appropriate to catch and handle assertion errors
C) It is NOT appropriate to use assertions to validate command-line arguments D) None
 
Answer & Explanation Answer: C) It is NOT appropriate to use assertions to validate command-line arguments

Explanation:

A is incorrect. It is acceptable to use assertions to test the arguments of private methods.

 

B is incorrect. While assertion errors can be caught, Sun discourages you from doing so.

Report Error

View Answer Report Error Discuss

Filed Under: Programming

0 3818