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 is/are true about the if statement in C?
Solution
Which of the following statements accurately describes the base case in a recursive function in C?
Solution
Which of the following statements correctly initializes a pointer variable ptr to hold the address of another integer variable var in C?
Solution
What character marks the end of a string in C?
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 local variables and function parameters?
Solution
Which function is used to write data to a file in C programming?
Solution
In C preprocessor directives, what does the ## operator do when used in macro definitions?
Solution
Solution
Solution
Solution
Solution
Solution
Solution
Solution
Solution
Solution
Solution
Solution
Solution
Solution
Select the correct statements from the below that dynamically allocate memory to hold a maximum of 2 characters. Assume size of int is 4 bytes, size of char is 1 byte and size of pointer is 8 bytes.
Solution
Solution
Solution
Solution
Shape
Thickness [ / ]
3
All colors