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.
A
L Value is num
B
Compile Error
C
L Value is 20
D
Run Time Error
Question 1 Explanation: 
We will get L Value Require error.
Question 2
L Value cannot be -
A
Macro
B
All of these
C
Enum Constant
D
Data Type
Question 3
Function can be considered as L Value.
A
True
B
False
Question 4
R Value of Variable can be considered as __________ value of variable.
A
Left
B
Right
Question 5
R Value may be Variable -
int num1 = 20;
int num2 = num1;
A
True
B
False
Question 6
The term ________ is sometimes used to describe the value of an expression and to distinguish it from an ______.
A
R Value, L Value
B
R Value, R Value
C
L Value, R Value
D
L Value, L Value
Question 7
Following C expressions can be l-value expressions -
  1. An identifier of integral, floating, pointer, structure, or union type
  2. A subscript ([ ]) expression that does not evaluate to an array
  3. A member-selection expression (–> or .)
  4. A unary-indirection (*) expression that does not refer to an array
A
1,3,4
B
2,3,4
C
1,2,3,4
D
1,2,3
Question 8
L Value and R Value are associated with which of the following concept in C ?
A
Array
B
Function
C
Pointer
D
Expression
Once you are finished, click the button below. Any items you have not completed will be marked incorrect. Get Results
There are 8 questions to complete.