Question 1 | MCQ
THIS IS QUESTION PAPER FOR THE SUBJECT "DEGREE LEVEL : PROGRAMMING IN C (COMPUTER BASED EXAM)"
ARE YOU SURE YOU HAVE TO WRITE EXAM FOR THIS SUBJECT?
CROSS CHECK YOUR HALL TICKET TO CONFIRM THE SUBJECTS TO BE WRITTEN.
(IF IT IS NOT THE CORRECT SUBJECT, PLS CHECK THE SECTION AT THE TOP FOR THE SUBJECTS REGISTERED BY YOU)
ARE YOU SURE YOU HAVE TO WRITE EXAM FOR THIS SUBJECT?
CROSS CHECK YOUR HALL TICKET TO CONFIRM THE SUBJECTS TO BE WRITTEN.
(IF IT IS NOT THE CORRECT SUBJECT, PLS CHECK THE SECTION AT THE TOP FOR THE SUBJECTS REGISTERED BY YOU)
Solution
Which of the following statements are true about the switch statement in C?
Solution
What will be the output of the following program?

Solution
What will be the output of the following program?

Solution
What will be the output of the following program?

Solution
Consider the following program.

Assuming each function must complete before its result is used in the next function call, in which sequence are the functions executed?
Assuming each function must complete before its result is used in the next function call, in which sequence are the functions executed?
Solution
Which of the following is true about recursion in C?
Solution
Which of the following correctly declares and initializes a pointer to a float variable f?
Solution
What will be the output of the following program?

Solution
What will be the output of the following program?

Solution
Consider the following program.

If the output is 450, which of the following lines could replace the missing statement?
If the output is 450, which of the following lines could replace the missing statement?
Solution
Which operator is used in C for dynamic memory deallocation?
Solution
What will be the output of the following program?

Solution
What will be the output of the following program?

Solution
Which of the following are valid storage classes in C?
Solution
What will be the output of the following program?

Solution
What will be the output of the following program?

Solution
Which keyword in C prevents a variable from being modified after initialization?
Solution
What will be the output of the following program?

Solution
What will be the output of the following program?

Solution
Which of the following are valid file handling modes in C?
Solution
Consider the following program.

If data.txt is empty before execution, what will be printed?
If data.txt is empty before execution, what will be printed?
Solution
What will be the output of the following program?

Solution
In macros, which operator is used to substitute the actual argument as a string?
Solution
What will be the output of the following program?

Solution
What will be the output of the following program?

Solution
Shape
Thickness [ / ]
3
All colors