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

When development in economy takes place, the share of tertiary sector in National Income

A) first falls and the rises B) first rises and then falls
C) keeps on increasing D) remains constant
 
Answer & Explanation Answer: C) keeps on increasing

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Economy

4 7382
Q:

Consider the following statements about Sikh Gurus:
1. Banda Bahadur was appointed as the military leader of the Sikhs by Guru Tegh Bahadur.
2. Guru Arjan Dev become the Sikh Guru after Guru Ram Das.
3. Guru Arjan Dev gave to Sikhs their own script- Gurumukhi.
Which of the statements given is/are correct?

A) 1 only B) 2 and 3
C) 1 and 3 D) 1 and 2
 
Answer & Explanation Answer: D) 1 and 2

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Culture

122 7380
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 7378
Q:

Isotopes of an element have ______.

 

A) Same physical properties B) Different chemical properties
C) Different number of neutrons D) Different atomic number
 
Answer & Explanation Answer: C) Different number of neutrons

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Chemistry
Exam Prep: Bank Exams

1 7371
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 7369
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 7369
Q:

When was the national emblem of Bangladesh adopted?

 

A) 1971 B) 1973  
C) 1975   D) 1977
 
Answer & Explanation Answer: A) 1971

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams

3 7366