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:

What is called the descendants of Dutch and Portuguese colonies in Sri Lanka?

 

A) Sinhalese B) Tamil
C) Burgher D) Vedda
 
Answer & Explanation Answer: C) Burgher

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams

0 7366
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 7363
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:

Improve the bracketed part of the sentence.

You can always count (at me) in difficult times.

 

A) upon me B) on me
C) on I D) no improvement
 
Answer & Explanation Answer: B) on me

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 7354
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 7346
Q:

Which of the following is NOT a measure of Human Development Index?

 

A) Life expectancy B) Sex ratio
C) Literacy rate D) Gross enrolment
 
Answer & Explanation Answer: B) Sex ratio

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Economy
Exam Prep: Bank Exams

0 7345
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 7344