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

Which of the following vitamin helps in clotting of blood?

A) Vitamin K B) Vitamin D
C) Vitamin B1 D) Vitamin B2
 
Answer & Explanation Answer: A) Vitamin K

Explanation:

Vitamin K helps in clotting of blood. It is used by the body to help blood clot.

 

Warfarin (Coumadin) is used to slow blood clotting. By helping the blood clot, vitamin K might decrease the effectiveness of warfarin (Coumadin).

Report Error

View Answer Report Error Discuss

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

3 7301
Q:

Rearrange the parts of the sentence in correct order.

They have now
P-by a paternalistic state
Q-of goods mandated
R-been turned into consumers

A) QRP B) QPR
C) PRQ D) RQP
 
Answer & Explanation Answer: D) RQP

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 7300
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 7294
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 7291
Q:

When was the wealth tax first introduced in India ?

A) 1948 B) 1957
C) 1976 D) 1991
 
Answer & Explanation Answer: B) 1957

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Politics

27 7283
Q:

Select the antonym of

 

vivified

 

A) invigorated B) revived
C) dull D) animated
 
Answer & Explanation Answer: C) dull

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 7283
Q:

When was the "Boxer Rebellion" happened in China?

 

A) 1895   B) 1900  
C) 1905   D) 1909
 
Answer & Explanation Answer: B) 1900  

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: World History
Exam Prep: Bank Exams

4 7282