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

The Study of Universe is called

A) Universology B) Cosmetology
C) Petology D) Cosmology
 
Answer & Explanation Answer: D) Cosmology

Explanation:

Cosmology is the scientific study of the large scale properties of the universe as a whole. It endeavors to use the scientific method to understand the origin, evolution and ultimate fate of the entire Universe.

Depending on the outcome of the observations, the theories will need to be abandoned, revised or extended to accommodate the data. The prevailing theory about the origin and evolution of our Universe is the so-called Big Bang theory.

Report Error

View Answer Report Error Discuss

7 3789
Q:

Who is the author of the book "The way of Knife: The CIA, A secret army and a war at the ends of the earth" ?

A) Mark Twain B) Irika John
C) Mario Pujo D) Mark Mazzetti
 
Answer & Explanation Answer: D) Mark Mazzetti

Explanation:
Report Error

View Answer Report Error Discuss

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

8 3788
Q:

Which of the following is / are fund managers for National Pension System (NPS) in 2017 ?

A) Axis provident fund B) Yes bank pension fund
C) ICICI prudential pension D) Punjab National provident fund
 
Answer & Explanation Answer: C) ICICI prudential pension

Explanation:

At present in 2017, there are only seven NPS fund managers viz. HDFC Pension Fund, ICICI Prudential Pension, Kotak Pension Fund, LIC Pension Fund,  Reliance Capital Pension, SBI Pension Fund and UTI Retirement Solutions.

Report Error

View Answer Report Error Discuss

8 3788
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 3787
Q:

Classify the Hashing Functions based on the various methods by which the key value is found.

Answer

Direct method,


 Subtraction method,


 Modulo-Division method,


 Digit-Extraction method,


 Mid-Square method,


 Folding method,


Pseudo-random method

Report Error

View answer Workspace Report Error Discuss

Subject: Technology

5 3787
Q:

Dimond is

A) an element B) a compound
C) a mixture D) a liquid
 
Answer & Explanation Answer: A) an element

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Chemistry

3 3786
Q:

With which Bank, Solar energy services company Freyr Energy has tied up to offer term loans ?

A) Axis Bank B) United Bank
C) SBI D) Union Bank
 
Answer & Explanation Answer: A) Axis Bank

Explanation:
Report Error

View Answer Report Error Discuss

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

8 3786