Contents

C Programs are used in?
a) Any Electronic device which works on some logic and Operating System.
b) Washing machine
c) Fridge, Microwave Ovens
d) All the above.

d Explanation: C is very fast to execute and safe to embed along with microprocessors. Device drivers are written in C and C++.

What are the types of Constants in C Language.?
a) Primary Constants
b) Secondary Constants
c) Basic Constants and Advanced Constants
d) Primary Constants and Secondary Constants

d

Explanation: Primary Constants are Integer (int), Floating Point (float) , Character (char)
Secondary Constants are Structure, Union, Array and Enum.


Choose correct statements
a) A constant value does not change. A variable value can change according to needs.
b) A constant can change its values. A variable can have one constant value only.
c) There is no restriction on number of values for constants or variables.
d) Constants and Variables can-not be used in a single main function.

a

Explanation: Constant value is always constant. Constant is also called Literal.
Variable can have any number of arbitrary values and once value at any point of time. Variable is also called Identifier.


Find an integer constant.
a) 3.145                                
b) 34
c) "125"                                
d) None of these

b

Explanation: Integer constant is a full or whole number without any decimal point. So 3.14 is a floating point number or Real number.


A Variable of a particular type can hold only a constant of the same type. Choose right answer.
a) TRUE                              
b) FALSE
c) It depends on the place the variable is declared.
d) None of the above.

a

Explanation: An int can hold only Integer constant.


A float can hold only Real Number constants.
A char can hold only Character constants.

Number of Keywords present in C Language are?
a) 32                                      
b) 34
c) 62                                      
d) 64

a

Explanation: Only 32 Keywords originally. Compilers are individual companies can include and use extra keywords if required. Such keywords should preceed with __ ( two Underscore symbols before names).
eg. __mykeyword