C- Declarations and Initializations Questions and Answers
Practice ModeShowing 10 of 49 questions
Q1
Which of the following statements should be used to obtain a remainder after dividing 3.14 by 2.1 ?
Answer: Option C
Q2
What are the types of linkages?
Answer: Option B
Q3
Which of the following special symbol allowed in a variable name?
Answer: Option D
Q4
Is there any difference between following declarations?
1 : extern int fun();
2 : int fun();
Answer: Option B
Q5
How would you round off a value from 1.66 to 2.0?
Answer: Option A
Q6
By default a real number is treated as a
Answer: Option B
Q7
Is the following statement a declaration or definition?
extern int i;
Answer: Option A
Q8
Identify which of the following are declarations
extern int x;
float square ( float x ) { ... }
double pow(double, double);
Answer: Option C
Q9
When we mention the prototype of a function?
Answer: Option B
Q10
Which of the following is a valid variable declaration in C?
Answer: Option B
Explanation: Valid variable names cannot start with numbers or contain special characters except underscore.