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 data types will result in the least memory allocation?
Solution
What is the scope of a variable declared inside a function in C?
Solution
Solution
What is the key distinction between stack and heap memory in C programming?
Solution
Solution
Solution
What will be the output of the following C program?

Solution
Solution
Solution
Solution
Choose the correct statement for fscanf() and scanf().
Solution
Solution
Solution
Consider the following code to check whether the input number is Prime or not. Consider that input is a positive integer. However, it contains a logical error.

Solution
Solution
Solution
Solution
Solution
Which of the following statement(s) is/are true regarding the “static” keyword in C?
Solution
Which of the following statements about pointers is/are true?
Solution
Which of the following statement(s) is/are true about unions in C?
Solution
Solution
Consider the following code.

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