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

Boost and Crocin brands are owned by which company?

A) GalaxoSmithKline B) Pfizer
C) Henz D) ParasPharma
 
Answer & Explanation Answer: A) GalaxoSmithKline

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Business Awareness

21 7343
Q:

'Start' menu in a standard personal computer is

 

A) Part of the hardware B) A set of options and commands
C) Nothing but the status bar D) Network related  
 
Answer & Explanation Answer: B) A set of options and commands

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Computer
Exam Prep: Bank Exams

19 7340
Q:

Rearrange the parts of the sentence in correct order.

We should learn our lesson
P-from this history and stay away
Q-of our neighbours
R-from interfering in the messy domestic politics

A) PRQ B) PQR
C) QPR D) RPQ
 
Answer & Explanation Answer: A) PRQ

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 7339
Q:

Which bacterium is used to turn milk to curd?

 

A) Streptomyces B) Vibrio
C) Lactobacillus D) Spirilla
 
Answer & Explanation Answer: C) Lactobacillus

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Biology
Exam Prep: Bank Exams

2 7338
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 7336
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 7335
Q:

A piece of ice is floating in water kept in a beaker. When all the ice melts the level of water will

A) first rise and then fall B) fall
C) remain the same D) rise
 
Answer & Explanation Answer: C) remain the same

Explanation:

The submerged portion of the ice on melting shrinks a little in volume. so the level of water goes down a little.But this is just made up by the water added by the melting of upper portion. Addition is equal to the Shrinkage. Hence level is unchanged.

Report Error

View Answer Report Error Discuss

Filed Under: Physics

15 7329