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

Which country is going to launch the world's first nuclear power plant (Sanmen Nuclear Power Station) that is immune to meltdown ?

A) India B) USA
C) China D) Russia
 
Answer & Explanation Answer: C) China

Explanation:
Report Error

View Answer Report Error Discuss

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

5 3361
Q:

The Hooke's law is valid for

A) only proportional region of the stress strain curve B) entire stress strain curve
C) entire elastic region of the stress strain curve D) elastic as well as plastic region of the stress strain curve
 
Answer & Explanation Answer: A) only proportional region of the stress strain curve

Explanation:

Hooke's law states that within the elastic limit, stress developed is directly proportional to the strain produced in a body.Hooke’s law is valid only in the linear part of stress-strain curve. Hence, statement 1 is correct.

Report Error

View Answer Report Error Discuss

Filed Under: Physics
Exam Prep: Bank Exams

2 3361
Q:

Which phase change is an example of an exothermic process?

A) Liquid to Solid B) Gas to Solid
C) Gas to Liquid D) All the above
 
Answer & Explanation Answer: D) All the above

Explanation:

Processes that require or give off heat will be limited to changes of state, known as phase changes, and changes in chemical constitution, or chemical reactions. Changes of state involve a solid melting, a liquid freezing, a liquid boiling or a gas condensing.

 

An exothermic process is one that gives off heat, which is transferred to the surroundings. An endothermic process is a reaction which heat has to be supplied to the system from the surroundings.

 

Here in all the given options, heat is taken away from them to change there phase. 

Liquid to Solid --- Freezing

Gas to Liquid --- Condensation

Gas to Solid --- Deposition 

are all examples of exothermic processes.

 

Report Error

View Answer Report Error Discuss

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

6 3361
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 3360
Q:

As per Census 2001, among the following hill states of India, which one has the highest literacy rate

A) Arunachal Pradesh B) Himachal Pradesh
C) Sikkim D) Uttarakhand
 
Answer & Explanation Answer: B) Himachal Pradesh

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Economy

1 3360
Q:

What is Throughput, Turnaround time, waiting time and Response time?

Answer

Throughput : number of processes that complete their execution per time unit.

Turnaround time : amount of time to execute a particular process.

Waiting time : amount of time a process has been waiting in the ready queue.

Response time : amount of time it takes from when a request was submitted until the firstresponse is produced, not output (for time-sharing environment).

Report Error

View answer Workspace Report Error Discuss

2 3359
Q:

Victoria Falls is located between which two countries?

A) Zambia & Zimbabwe B) Senegal-Botswana
C) Ethiopia-Kenya D) Tanzania-Kenya
 
Answer & Explanation Answer: A) Zambia & Zimbabwe

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Famous Places

3 3359