C True False Questions

  1. Only character or integer can be used in switch statement
    1. True
    2. False
Answer :
B
Explanation:

The variable used in a switch statement can only be integers, convertable integers (byte, short, char), strings and enums.

Added By : Karan

  1. The return type of malloc function is void.
    1. True
    2. False
Answer :
B
Explanation:

It returns a pointer of type void.

Added By : Pawan


  1. #define is known as preprocessor compiler directive.
    1. True
    2. False
Answer :
A
Explanation:
Added By : Somya

  1. Algorithm is the graphical representation of logic.
    1. True
    2. False
Answer :
B
Explanation:
Added By : Mahipal

  1. sizeof( ) is a function that returns the size of a variable.
    1. True
    2. False
Answer :
B
Explanation:

Sizeof() is a operator in the C programming language. It is a compile time unary operator which can be used to compute the size of its operand.

Added By : Rachita

  1. The ++ operator increments the operand by 1, whereas, the -- operator decrements it by 1.
    1. True
    2. False
Answer :
A
Explanation:
Added By : Srinivas


  1. It is necessary that a loop counter must only be an int. It cannot be a float.
    1. True
    2. False
Answer :
B
Explanation:
You can use float and int as a loop counter.
Added By : Srinivas

  1. A zero value is considered to be false and a non-zero value is considered to be true.
    1. True
    2. False
Answer :
A
Explanation:
Added By : Srinivas

Social Sharing
Search