Congratulations - you have completed C Programming : Multiple Choice Questions.
You scored %%SCORE%% out of %%TOTAL%%.
Your performance has been rated as %%RATING%%
Your answers are highlighted below.
Question 1 |
int main() { int num=20; if(num = = 20) printf("L Value is num"); else printf("L Value is 20"); return(0); }Guess the output of the above program.
L Value is num | |
Compile Error | |
L Value is 20 | |
Run Time Error |
Question 1 Explanation:
We will get L Value Require error.
Question 2 |
L Value cannot be -
Macro | |
All of these | |
Enum Constant | |
Data Type |
Question 3 |
Function can be considered as L Value.
True | |
False |
Question 4 |
R Value of Variable can be considered as __________ value of variable.
Left | |
Right |
Question 5 |
R Value may be Variable -
int num1 = 20; int num2 = num1;
True | |
False |
Question 6 |
The term ________ is sometimes used to describe the value of an expression and to distinguish it from an ______.
R Value, L Value | |
R Value, R Value | |
L Value, R Value | |
L Value, L Value |
Question 7 |
Following C expressions can be l-value expressions -
- An identifier of integral, floating, pointer, structure, or union type
- A subscript ([ ]) expression that does not evaluate to an array
- A member-selection expression (–> or .)
- A unary-indirection (*) expression that does not refer to an array
1,3,4 | |
2,3,4 | |
1,2,3,4 | |
1,2,3 |
Question 8 |
L Value and R Value are associated with which of the following concept in C ?
Array | |
Function | |
Pointer | |
Expression |
Once you are finished, click the button below. Any items you have not completed will be marked incorrect.
There are 8 questions to complete.