C Multiple Choice Questions
- What is variable in C?
- It is a name of the memory location
- It is used to store data
- It’s value can be changed during execution of program
- 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
- C variable cannot start with
- An alphabet
- A number
- A special symbol other than underscore
- both (b) and (c)
Added By : Sumit
- Select worng statement for constructing C variable
- A variable name is any combination alphabets, digits or underscores
- First character in variable must be alphabets and underscore
- Any special symbol can be used in variable name
- No commas or blanks are allowed within a variable name
Added By : Salman
- Which of the following is invalid C variable name?
- _p_q
- break
- #pq
- 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
- Which of the following is correct way to declare integer variable in C?
- a int;
- integer a;
- int a;
- All of the above
Added By : Rahul
- Which of the following is correct way to initialize integer variable in C?
- int a = 10;
- a = 10;
- int a = 10 + b;
- All of the above
Added By : Daksh
- What is Keyword in C?
- Keyword has their predefined meaning whose meaning already been explained to the C compiler
- Keyword cannot be use as a variable name
- Keyword also known as reserved word
- All of the above
Added By : Daksh
- How many keywords in C?
- 30
- 32
- 38
- 33
Added By : Sumit
Also Exercise
Post Your Question
Social Sharing
Search
Articles
Recently Added Jobs
Rajasthan High Court - Jodhpur Recruitment 2017 for Civil Judges
Last Date: 21 December, 2017
Last Date: 21 December, 2017
WBSEDCL Recruitment - 2017 for Office Executive
Last Date: 16 May, 2017
Last Date: 16 May, 2017
RECRUITMENT OF PROBATIONARY OFFICERS IN STATE BANK OF INDIA
Last Date: 06 March, 2017
Last Date: 06 March, 2017
UPSC Combined Medical Services Examination 2015
Last Date: 10 April, 2015
Last Date: 10 April, 2015
UPSC Engineering Services Examination 2015
Last Date: 10 April, 2015
Last Date: 10 April, 2015