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

Who has won the men's shot put world title with a stunning series of throws climaxing with a best of 22.03 meters ?

A) Randy Matson B) Tomas Walsh
C) Ryan Crouser D) Randy Barnes
 
Answer & Explanation Answer: B) Tomas Walsh

Explanation:
Report Error

View Answer Report Error Discuss

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

9 3355
Q:

If price of an article decreases from P1 to Rs 25, quantity demanded increases from 900 units to 1200 units. If point elasticity of demand is ­2 find P1?

A) Rs. 20 B) Rs. 30
C) Rs. 25 D) Rs. 35
 
Answer & Explanation Answer: B) Rs. 30

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Physics

6 3354
Q:

What will happen if an object is dropped from a height and there is no air resistance?

A) It will fall with a constant speed and acceleration B) Its acceleration will increase
C) Both speed and acceleration will increase D) Its speed will increase
 
Answer & Explanation Answer: D) Its speed will increase

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Physics
Exam Prep: AIEEE , Bank Exams , CAT

0 3354
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 3353
Q:

The term "simple carbohydrates" refers to

A) polysaccharides B) monosaccharides and disaccharides
C) starch and glycogen D) dietary fiber
 
Answer & Explanation Answer: B) monosaccharides and disaccharides

Explanation:

Simple carbohydrates are also called as Simple sugars. Monosaccharides and Disaccharides refers to simple carbohydrates.

Report Error

View Answer Report Error Discuss

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

4 3353
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 3352
Q:

Who is the author of the book ' Family Life '

Answer

Akhil Sharma

Report Error

View answer Workspace Report Error Discuss

4 3352