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 3784
Q:

Who has become world's no.1 Junior Badminton player in 2017 ?

A) Chia Hao Lee B) Lakshya Sen
C) Chirag Sen D) Karthikey Gulshan Kumar
 
Answer & Explanation Answer: B) Lakshya Sen

Explanation:

India's Lakshya Sen has become the World No 1 Junior Badminton player. He achieved the distinction in the latest rankings of the Badminton World Federation (BWF). Fifteen-year-old is the first shuttler from Uttarakhand to attain the numero uno spot at the international level. Lakshya, who is considered as the shining future star of Indian badminton, moved ahead of Chia Hao Lee of the Chinese Taipei, to attain the top spot. According to BWF current rankings, Lakshya has 16,903 points in eight tournaments he has played in the season. Chia Hao, who is at the second spot, has 16,091 points.

Report Error

View Answer Report Error Discuss

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

4 3784
Q:

A restrictive clause is one that

A) usually occurs at the beginning of a sentence B) should be set off by commas
C) limits the meaning of the word it describes D) functions as an adverb
 
Answer & Explanation Answer: C) limits the meaning of the word it describes

Explanation:

A restrictive clause is one that limits the meaning of the word it describes.

For example :: 

The girl who lives next door is beautiful.

This restrictive clause limits "the girl" to say it's specifically the one next door.

Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: AIEEE , Bank Exams , CAT , GATE , GRE , TOEFL
Job Role: Analyst , Bank Clerk , Bank PO , Database Administration , IT Trainer

1 3783
Q:

I am always infront of you, but you will never see me. Who am I?

A) Mirror B) Shadow
C) Future D) None of the above
 
Answer & Explanation Answer: C) Future

Explanation:

Yes, future is always infront of us, but no one can see it.

Report Error

View Answer Report Error Discuss

3 3782
Q:

I am an English word which starts with 'T' and ends with 'T' and has 'T' in it.

Answer

The English word that starts & ends with T and has T (Tea) in it is " TEAPOT ".


teapot1586508959.jpg image


 

Report Error

View answer Workspace Report Error Discuss

Subject: Word Puzzles Exam Prep: CAT , Bank Exams

4 3781
Q:

' Crime and Punishment ' was written by

A) Alexander Solzhenitysn B) Lewis Carroll
C) Fyodor Dostoevsky D) Valdimir Nabakov
 
Answer & Explanation Answer: C) Fyodor Dostoevsky

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Books and Authors

2 3781
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 3781
Q:

How many times the following program would print 'Jamboree'?

main()

{

     printf ( "\nJamboree");

     main ();

}

Answer

Till the stack doesn't overflow

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

2 3781