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 7363
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 7359
Q:

The rank of the different Ministers in the Union Council of Ministers is determined by the 

A) President B) Prime Minister
C) Cabinet Secretary D) Speaker of the Lok Sabha
 
Answer & Explanation Answer: B) Prime Minister

Explanation:

The rank of the different ministers is determined by the Prime Minister, according to whose advice the President appoints the Ministers [ Art 75(1) ] and also allocates business among them [ Art 77 ].

Report Error

View Answer Report Error Discuss

Filed Under: Indian Politics

18 7359
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 7348
Q:

Select the antonym of

to contend

A) to comply B) to oppugn
C) to grapple D) to vie
 
Answer & Explanation Answer: A) to comply

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

1 7344
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 7343
Q:

Select the antonym of

jaunt

A) halt B) excursion
C) stroll D) ramble
 
Answer & Explanation Answer: A) halt

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 7340
Q:

Which Indian state touches the border of maximum states?

 

A) Madhya Pradesh B) Assam
C) Uttar Pradesh D) Chhattisgarh
 
Answer & Explanation Answer: C) Uttar Pradesh

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Geography
Exam Prep: Bank Exams

3 7338