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 components is primarily responsible for performing arithmetic and logical operations in a computer?
Solution
A 4-byte integer 0x89ABCDEF is stored beginning at memory address 4000 in a Little-Endian system.
Which value will be stored at address 4002?
Which value will be stored at address 4002?
Solution
Consider the following C program.

What will be the output?
What will be the output?
Solution
Which of the following statements about typedef in C is correct?
Solution
Which of the following file opening modes allows reading and writing while preserving the existing file contents?
Solution
Consider the following C program.

What will be the output?
What will be the output?
Solution
Inscript
Consider the following computation steps.

What is the final value stored in R[3]?
Consider the following computation steps.
What is the final value stored in R[3]?
Solution
Inscript
Consider the following C program.

(ASCII value of 'B' is 66.)
What will be the output?
Consider the following C program.
(ASCII value of 'B' is 66.)
What will be the output?
Solution
Inscript
Consider the following C program.

What will be the output?
Consider the following C program.
What will be the output?
Solution
Consider the following generalized memory computations.

What is the final value stored in M[3]?
What is the final value stored in M[3]?
Solution
The decimal equivalent of the following 8-bit signed two's complement number is

Solution
Consider the following C code.

What will be the output?
What will be the output?
Solution
Consider the following recursive function.

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

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

What will be the output?
What will be the output?
Solution
Which stage of the C compilation process is responsible for expanding macros and processing header files?
Solution
Consider the following C program.

What will be the output?
What will be the output?
Solution
Which preprocessor directive is used to include the contents of another source or header file into the current program?
Solution
Consider the following C program.

What will be the output?
What will be the output?
Solution
Which of the following statements are correct regarding character encoding?
Solution
Inscript
Consider the following C program.

What will be the output printed on the screen?
Consider the following C program.
What will be the output printed on the screen?
Solution
Inscript
Consider the following C program.

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

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

What will be the output?
Consider the following C program.
What will be the output?
Solution
Which of the following statements about pointers are correct?
Solution
Shape
Thickness [ / ]
3
All colors