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)
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)
Solution
Which of the following statements is/are true about the switch statement in C?
Solution
Solution
Which of the following statements correctly declares a pointer variable ptr to hold the address of a character variable ch in C and assigns the address of ch to ptr?
Solution
Which of the following functions is used in C to allocate memory dynamically during runtime?
Solution
Which of the following statement is true about structures and unions in C regarding memory allocation?
Solution
Which memory region in C programming is used for storing dynamically allocated memory?
Solution
Which function is used to read data from a file in C programming?
Solution
In C preprocessor directives, what does the # operator do when used in macro definitions?
Solution
Consider the below C program

What will be the output of the above C program?
What will be the output of the above C program?
Solution
What is the order in which the functions are called in the following C program?

Solution
Consider the below C program.

What will be the output of the above C program?
What will be the output of the above C program?
Solution
Consider the below C program.

What will be the output of the above C program?
What will be the output of the above C program?
Solution
Consider the below C program.

What will be the output of the above C program?
What will be the output of the above C program?
Solution
Consider the following C program.

What will be the output of the above program?
What will be the output of the above program?
Solution
Consider the following C program.

What will be the output of the above program?
What will be the output of the above program?
Solution
Consider the following C program.

What will be the output of the above program?
What will be the output of the above program?
Solution
Consider the below C program.

What will be the output of the above C program?
What will be the output of the above C program?
Solution
Consider the following C program.

What will be the output of the above program?
What will be the output of the above program?
Solution
Consider the following C program.

What will be the output of the above program?
What will be the output of the above program?
Solution
Consider the below C program.

What will be the output of the above C program?
What will be the output of the above C program?
Solution
Consider the following C program.

What will the output of the above code?
What will the output of the above code?
Solution
Select the correct statements from the below that dynamically allocate memory to hold a maximum of 4 integers. Assume the size of int is 4 bytes.
Solution
Consider the following C program.

If the output of the above program is 15, then select all the options that can replace the missing statement line in the above code.
If the output of the above program is 15, then select all the options that can replace the missing statement line in the above code.
Solution
Solution
Consider the following C program.

What will be the output of the above program?
What will be the output of the above program?
Solution
Shape
Thickness [ / ]
3
All colors