Questions

Q:

Point out the error in the following program.

main()

{

    char mybuf[] = "Zanzibar" ;

    char yourbuf[] = " Zienckewiz";

    char * const ptr = mybuf;

     *ptr = 'a';

     ptr = yourbuf;

}

Answer

ptr pointer is constant. In ptr = yourbuf the program is trying to modify it, hence an error.

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

5 7367
Q:

Lathyrism is caused by excess consumption of.......

A) Khesari Dal B) Mustard oil
C) Mushrooms D) Polished rice
 
Answer & Explanation Answer: A) Khesari Dal

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Biology

35 7364
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 7360
Q:

Who had, while fasting in the prision, written to the British governor , "The individual must die so that the nation may live.Today,I must die so that India may win freedom and glory"?

A) Jatin Das B) Lala Lajpat Rai
C) MK Gandhi D) SC Bose
 
Answer & Explanation Answer: A) Jatin Das

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian History

9 7355
Q:

Of the following tree structure, which is, efficient considering space and time complexities?

A) Incomplete Binary Tree B) Complete Binary Tree
C) Full Binary Tree D) None
 
Answer & Explanation Answer: B) Complete Binary Tree

Explanation:

Full binary tree loses its nature when operations of insertions and deletions are done. For incomplete binary trees, extra storage is required and overhead of NULL node checking takes place. So complete binary tree is the better one since the property of complete binary tree is maintained even after operations like additions and deletions are done on it.

Report Error

View Answer Report Error Discuss

Filed Under: Software Testing

6 7349
Q:

Permanent hardness of water is due to the presence of  ? 

A) Calcium sulphate B) Calcium bicarbonate
C) Sodium bicarbonate D) Magnesium bicarbonate
 
Answer & Explanation Answer: A) Calcium sulphate

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Chemistry
Exam Prep: AIEEE , Bank Exams
Job Role: Bank Clerk

25 7349
Q:

Who was the only Secretary General of the UNO to have died while in office ?

A) Dag Hammarskjold B) Trygve Lie
C) Kurt Waldhiem D) U Thant
 
Answer & Explanation Answer: A) Dag Hammarskjold

Explanation:
Report Error

View Answer Report Error Discuss

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

5 7338
Q:

Which Five Year Plan was a failure due to India-China war followed by Indo-Pakistan?

 

A) Fourth Five Year Plan B) Seventh Five Year Plan
C) Third Five Year Plan D) Rolling Plan
 
Answer & Explanation Answer: C) Third Five Year Plan

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Politics
Exam Prep: Bank Exams

0 7334