Questions

Q:

Point out the error, if any, in the following program.

#include "stdio.h"

main()

{

      unsigned char;

       FILE *fp;

       fp = fopen ("trail", "r");

       while (( ch = getc (fp)) ! = EOF)

               printf ("%c", ch);

       fclose (fp);

}  

Answer

EOF has been defined as #define EOF -1 n the file "stdio.h" and an unsigned char ranges from 0 to 255 hence when EOF is read from the file it cannot be accommodated in ch. Solution is to declare ch as an int.

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

1 3334
Q:

Who did the historian K M Pannikar call "India's new Manu, the spirit of modern law incarnate"?

Answer

Thomas Babington Macaulay

Report Error

View answer Workspace Report Error Discuss

Subject: World History

7 3334
Q:

The insects do not have blood pigments because 

A) there is no blood B) blood does not have a respirratory function
C) tissues have pigments D) pigments are elsewhere
 
Answer & Explanation Answer: B) blood does not have a respirratory function

Explanation:

The blood of some invertebrate animals like the earthworm is red due to haemoglobin pigment, but the pigment is dissolved in the plasma. In vertebrates the same pigment is found in the red corpuscles and not in the plasma.

Report Error

View Answer Report Error Discuss

Filed Under: Biology

8 3334
Q:

 Which of the following occurs when a transaction rereads data it has previously read and finds modification or deletions caused by a committed transaction?

A) Nonrepeatable read B) Phantom read
C) Dirty read D) Consistent read
 
Answer & Explanation Answer: A) Nonrepeatable read

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Database

0 3334
Q:

RBI has extended the timeline for full implementation of the Basel III capital regulations to which of the following date instead of 31 March, 2018?

A) 31 Jan, 2019 B) 31 Dec, 2018
C) 31 Mar, 2019 D) 1 Oct, 2018
 
Answer & Explanation Answer: C) 31 Mar, 2019

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness

0 3333
Q:

Branch of biology in which we study about relationship between living and their environment

A) Physiology B) Genetics
C) Ecology D) Geology
 
Answer & Explanation Answer: C) Ecology

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Biology

8 3332
Q:

The Grand Banks are famous fishing grounds in the _____region

A) North - West Pacific B) South - East Pacific
C) North - West Atlantic D) North - East Atlantic
 
Answer & Explanation Answer: C) North - West Atlantic

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: World Geography

3 3332
Q:

Which Indian Pharmaceutical company has announced to acquire Roche's active, pharmaceutical ingredients business in Mexico? Rache is a well-known global pharmaceutical

A) Wockhardt B) Cipla
C) Dr Reddy's Lab D) Ranbaxy
 
Answer & Explanation Answer: C) Dr Reddy's Lab

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Business Awareness

8 3332