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

Who is the author of book ' Arctic Summer'.

Answer

Dammon Galgut

Report Error

View answer Workspace Report Error Discuss

2 3329
Q:

Roentgen discovered

A) Electrocardiograph B) X–rays
C) Anti polio vaccine D) Encephalograph
 
Answer & Explanation Answer: B) X–rays

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Inventions

3 3329
Q:

Since foundation of nobel prize awards has been added to the original five disciplines which were considered for award of Nobel Prize

A) Medicine B) Peace
C) Literature D) Economics
 
Answer & Explanation Answer: D) Economics

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Honours and Awards

0 3329
Q:

The five permanent members of UN security council are

A) Japan, West Germany, USSR, UK and USA B) Germany, China, USSR, UK and USA
C) Canada, China, France, USSR and USA D) China, France, USSR, UK and USA
 
Answer & Explanation Answer: D) China, France, USSR, UK and USA

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: World Organisations

3 3328
Q:

A computer program consists of

A) flowchart B) algorithm
C) logical steps D) All of the above
 
Answer & Explanation Answer: B) algorithm

Explanation:

A computer program is a set of instructions i.e algorithm that are to be executed to complete a task.

Report Error

View Answer Report Error Discuss

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

3 3328
Q:

A Disease which spreads by contact?

A) Infectious B) Fatal
C) Incurable D) Contagious
 
Answer & Explanation Answer: D) Contagious

Explanation:

A Disease which spreads by contact are Contagious.

Infectious diseases : These are caused by microscopic germs such as bacteria or viruses that get into the body and cause problems. Some but not all infectious diseases spread directly from one person to another. Infectious diseases that spread from person to person are said to be contagious. Some infections spread to people from an animal or insect, but are not contagious from another human. 

Contagious diseases such as the flu, colds, or strep throat spread from person to person in several ways. One way is through direct physical contact, like touching or kissing a person who has the infection. Another way is when an infectious microbe travels through the air after someone nearby sneezes or coughs.

Fatal Diseases : Diseases leading to failure or disaster.

Incurable Diseases : Diseases of a sick person not able to be cured.

Report Error

View Answer Report Error Discuss

Filed Under: General Science
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

8 3328
Q:

Which protocol does ping use?

A) ICMP B) TCP
C) BootP D) ARP
 
Answer & Explanation Answer: A) ICMP

Explanation:

ICMP means Internet Control Message Protocol and is always coupled with the IP protocol (There are 2 ICMP variants one for IPv4 and one for IPv6.) echo request and echo response are the two operation codes of ICMP used to implement ping.

Report Error

View Answer Report Error Discuss

4 3327