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 is/are false statement(s) regarding C programming language?
Solution
Which of the following statement(s) is/are true regarding ASCII and Unicode?
Solution
Which of the following is/are valid identifiers in C language?
Solution
In split memory architecture, what is the purpose of cache memory?
Solution
What is the primary function of the Program Counter in a CPU?
Solution
Suppose you have a document which contains 58 unique characters. What is the minimum number of bits required to encode a single character in this document?
Solution
Consider the following equation:

If all the variables are float, which of the following is a correct way to write the given equation in C language?
If all the variables are float, which of the following is a correct way to write the given equation in C language?
Solution
Consider the following steps to compute the minimum among three numbers. Load the three numbers from memory locations M[0], M[1] and M[2] and store the maximum number in M[3].

Identify the appropriate instructions to fill the blank at step 4 and step 6.
Identify the appropriate instructions to fill the blank at step 4 and step 6.
Solution
Consider the below C program.

The above C program is used to calculate the sum of individual digits of a number. For ex: If the value given to the variable “n” is 25, the sum of individual digits will be 7.
Fill in the placeholders “Expression1” and “Expression2” to ensure that the program functions correctly.
The above C program is used to calculate the sum of individual digits of a number. For ex: If the value given to the variable “n” is 25, the sum of individual digits will be 7.
Fill in the placeholders “Expression1” and “Expression2” to ensure that the program functions correctly.
Solution
Compute the 9-bit binary representation of the decimal number 468.
Solution
Find the 8-bit binary representation of (− 50)10 using 2’s complement notation.
Solution
(764)10 = (________)8
Identify the appropriate option to fill in the above blank.
Identify the appropriate option to fill in the above blank.
Solution
Given two integer variables, x and y, which of the following expressions ensures that both x and y are distinct positive integers if the expression returns 1?
Solution
Consider the following code snippet.

What will be the value of x, y and z after executing the given code snippet?
What will be the value of x, y and z after executing the given code snippet?
Solution
Consider the below C program.

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

What would be the output of the given code?
What would be the output of the given code?
Solution
Consider the following assembly program (assume anything after “;” is a comment).

What will be the final value stored in register R2?
Note: The answer input must be an integer. For Ex: If the answer is 32, you must enter 32 only.
What will be the final value stored in register R2?
Note: The answer input must be an integer. For Ex: If the answer is 32, you must enter 32 only.
Solution
Consider the below C program.

What would be the output of the given code?
Note: The answer input must be an integer. For Ex: If the answer is 32, you must enter 32 only.
What would be the output of the given code?
Note: The answer input must be an integer. For Ex: If the answer is 32, you must enter 32 only.
Solution
Shape
Thickness [ / ]
3
All colors