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

Which of the following is the largest unit of information?

A) 1 TB B) 1 GB
C) 1 MB D) 1 KB
 
Answer & Explanation Answer: A) 1 TB

Explanation:

1 TB  >  1 GB  >  1 MB  >  1 KB

 

1 Tb (Tera Byte) = 1024 GB

 

1 GB (Giga Byte) = 1024 MB

 

1 MB (Mega Byte) = 1024 KB

 

1 KB (Kilo Byte) = 1024 Bytes

 

1 Byte = 8 Bit

 

Hence, largest unit of information is TB (Tera Byte) and smallest unit of information is Bit.

 

Report Error

View Answer Report Error Discuss

4 3376
Q:

Per Captain Income of a country derived from

A) National Income B) Population
C) National Income and Population both D) none of these
 
Answer & Explanation Answer: C) National Income and Population both

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Economy

1 3376
Q:

The functional unit of the nervous system is the

A) Nephrons B) Axons
C) Neurons D) All of the above
 
Answer & Explanation Answer: C) Neurons

Explanation:

Neurons are the functional units of the nervous system in the body.

the_functional_unit_of_the_nervous_system_is_the1535026518.png image

Report Error

View Answer Report Error Discuss

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

3 3376
Q:

How fast do satellites orbit the earth?

A) 28,000 kmph B) 26,000 kmph
C) 17,500 kmph D) 22,500 kmph
 
Answer & Explanation Answer: A) 28,000 kmph

Explanation:

Satellites orbit the earth at a speed of 28,000 kmph.

Satellites that are further away actually travel slower. The International Space Station has a Low Earth Orbit, about 400 kilometers (250 miles) above the earth's surface. Objects orbiting at that altitude travel about 28,000 kilometers per hour (17,500 miles per hour).

Report Error

View Answer Report Error Discuss

5 3375
Q:

What is the usual colour of Aircraft data recorder "Black box" ?

A) Black B) Orange
C) Blue D) Greeen
 
Answer & Explanation Answer: B) Orange

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness

4 3373
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 3373
Q:

The country which covers two continents is 

A) USSR B) Canada
C) Australia D) Indonesia
 
Answer & Explanation Answer: A) USSR

Explanation:

The USSR( now a Common Wealth of Independent States) is spread over Europe and Asia

Report Error

View Answer Report Error Discuss

Filed Under: World Geography

3 3373