Choose a topic to test your knowledge and improve your C/C skills
What will be the value of the following assignment expression? (x = foo())!= 1 considering foo() returns 2
Operation “a = a * b + a” can also be written as ___________
What will be the final value of c in the following C statement? (Initial value: c = 2) c <<= 1;
Which of the following is an invalid assignment operator?
In expression i = g() + f(), first function called depends on _________
In expression i = g() + f(), first function called depends on ______
Which of the following operators has an associativity from Right to Left?
Which operators of the following have same precedence? P. "!=", Q. "+=", R. "<<="
Comment on the following statement. n = 1;printf("%d, %dn", 3*n, n++);
Which of the following option is the correct representation of the following C statement? e = a * b + c / d * f;
Which of the following is the correct order of evaluation for the given expression? a = w % x / y * z;
Which function in the following expression will be called first? a = func3(6) - func2(4, 5) / func1(1, 2, 3);
Which of the following operator has the highest precedence in the following?
Which of the following is a ternary operator?
Which of the following are unary operators?
Where in C the order of precedence of operators do not exist?
Associativity of an operator is _______
Which of the following method is accepted for assignment?
Which of the following is NOT possible with any 2 operators in C?
Which of the following is possible with any 2 operators in C?
Which of the following is an invalid if-else statement?
The C code ‘for(;;)’ represents an infinite loop. It can be terminated by ______
Which for loop has range of similar indexes of ‘i’ used in for (i = 0;i < n; i++)?
Which of the following cannot be used as LHS of the expression in for (exp1;exp2; exp3)?
Which keyword can be used for coming out of recursion?
The keyword ‘break’ cannot be simply used within ______
Which keyword is used to come out of a loop only for that iteration?
Which of the following is a correct format for declaration of function?
Which of the following function declaration is illegal?
Can we use a function as a parameter of another function? [Eg: void wow(int func())].
The value obtained in the function is given back to main by using ________ keyword.
What is the return-type of the function sqrt()?
What is the default return type if it is not specified in function definition?
Functions can return structure in C?
Functions can return enumeration constants in C?
Functions in C are always _____
Global variables are _______
Array sizes are optional during array declaration by using ______ keyword.
Which of following is not accepted in C?
Which of the following cannot be static in C?
When compiler accepts the request to use the variable as a register?
Which data type can be stored in register?
Which of the following operation is not possible in a register variable?
Which among the following is the correct syntax to declare a static variable register?
Register variables reside in ________
Automatic variables are _________
What is the scope of an automatic variable?
Automatic variables are allocated memory in ____
Automatic variables are initialized to __
Which of the following storage class supports char data type?