C Multiple Choice Questions

  1. What is variable in C?
    1. It is a name of the memory location
    2. It is used to store data
    3. It’s value can be changed during execution of program
    4. All of the above
Answer :
D
Explanation:

Variable is a memory location  which is used to store data.

It’s value can be changed any time during execution of program.

Added By : Gaurav


  1. C variable cannot start with
    1. An alphabet
    2. A number
    3. A special symbol other than underscore
    4. both (b) and (c)
Answer :
D
Explanation:
Added By : Sumit

  1. Select worng statement for constructing C variable
    1. A variable name is any combination alphabets, digits or underscores
    2. First character in variable must be alphabets and underscore
    3. Any special symbol can be used in variable name
    4. No commas or blanks are allowed within a variable name
Answer :
C
Explanation:
Added By : Salman


  1. Which of the following is invalid C variable name?
    1. _p_q
    2. break
    3. #pq
    4. Both option (b) and (c)
Answer :
D
Explanation:

Keywords cannot be used as variable name.

Variable name cannot be start with special character except underscore.

Added By : Suhail

  1. Which of the following is correct way to declare integer variable in C?
    1. a int;
    2. integer a;
    3. int a;
    4. All of the above
Answer :
C
Explanation:
Added By : Rahul

  1. Which of the following is correct way to initialize integer variable in C?
    1. int a = 10;
    2. a = 10;
    3. int a = 10 + b;
    4. All of the above
Answer :
D
Explanation:
Added By : Daksh


  1. What is Keyword in C?
    1. Keyword has their predefined meaning whose meaning already been explained to the C compiler
    2. Keyword cannot be use as a variable name
    3. Keyword also known as reserved word
    4. All of the above
Answer :
D
Explanation:
Added By : Daksh

  1. How many keywords in C?
    1. 30
    2. 32
    3. 38
    4. 33
Answer :
B
Explanation:
Added By : Sumit

Post Your Question
Social Sharing
Search