MauryaHub PYQ Practice

Programming in C · Quiz 1 · Jan 2024

Programming in C · Quiz 1 · Jan 2024

← Course papers · Start practice / exam

Questions and published explanations below are available without starting a test. Some questions may not have a published solution yet.

0 / 16 published solutions

Question 58 MCQ · 2.0 marks

Which of the following components temporarily stores data and instructions that are **frequently** requested?
6406532474126.
ALU (Arithmetic Logic Unit)
6406532474127.
Cache Memory
6406532474128.
Control Unit
6406532474129.
RAM

A published solution is not available for this question yet.

Report a correction for Q58

Question 59 MCQ · 2.0 marks

Which type of memory is typically used for storage of BIOS (Basic Input/Output System) firmware in a computer?
6406532474130.
Cache Memory
6406532474131.
RAM (Random Access Memory)
6406532474132.
ROM (Read-Only Memory)
6406532474133.
Registers

A published solution is not available for this question yet.

Report a correction for Q59

Question 60 MCQ · 3.0 marks

Select the correct statement about peripherals in a computer.
6406532474122.
CPU reads the values from the peripherals by reading the value at the memory address mapped to them.
6406532474123.
CPU has separate instructions for performing read and write from a peripheral.
6406532474124.
CPU cannot read the values from the peripherals
6406532474125.
There is a standard and fixed memory mappings for each input device.

A published solution is not available for this question yet.

Report a correction for Q60

Question 61 MCQ · 3.0 marks

Consider the signed integer -4 is represented with 4 bits in signed magnitude form. If the same 4 bits are interpreted as an unsigned integer, what will be the value of the unsigned integer in decimal?
6406532474138.
4
6406532474139.
14
6406532474140.
12
6406532474141.
5

A published solution is not available for this question yet.

Report a correction for Q61

Question 62 MCQ · 3.0 marks

The number of '1's present in the binary form of the hexadecimal number 0xE5F7 is ___?
6406532474142.
4
6406532474143.
8
6406532474144.
12
6406532474145.
16

A published solution is not available for this question yet.

Report a correction for Q62

Question 63 MCQ · 3.0 marks

Assume the digits from 0 to 9 are encoded as characters. The even digits are mapped from 0 to 4 in ascending order, and the odd digits are mapped from 5 to 9 in the descending order. What is the mapping for the digit "7" with respect to the above encoding?
6406532474146.
4
6406532474147.
6
6406532474148.
7
6406532474149.
8

A published solution is not available for this question yet.

Report a correction for Q63

Question 64 MCQ · 3.0 marks

Source diagram or notation
6406532474155.Source diagram or notation
6406532474156.Source diagram or notation
6406532474157.Source diagram or notation
6406532474158.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q64

Question 65 MCQ · 3.0 marks

Select the correct statement about the sizes of the different data types in C.
6406532474159.
sizeof(char) >= sizeof(double)
6406532474160.
sizeof(int) >= sizeof(float)
6406532474161.
sizeof(double) >= sizeof(float)
6406532474162.
sizeof(short) >= sizeof(int)

A published solution is not available for this question yet.

Report a correction for Q65

Question 66 MCQ · 3.0 marks

Select the snippet that will generate the output "12345".
6406532474171.Source diagram or notation
6406532474172.Source diagram or notation
6406532474173.Source diagram or notation
6406532474174.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q66

Question 67 MCQ · 4.0 marks

Source diagram or notation
6406532474134.
If (R[1] >= 0), go to Step 3
6406532474135.
If (R[1] > 0), go to Step 3
6406532474136.
If (R[1] >= 0), go to Step 7
6406532474137.
If (R[1] > 0), go to Step 7

A published solution is not available for this question yet.

Report a correction for Q67

Question 68 MCQ · 4.0 marks

Source diagram or notation
6406532474151.
8
6406532474152.
18
6406532474153.
14
6406532474154.
10

A published solution is not available for this question yet.

Report a correction for Q68

Question 69 NAT · 3.0 marks

What is the minimum **number of bits** required to represent the character set with uppercase and lowercase alphabets, the digits from 0 to 9, space, comma and full stop?

A published solution is not available for this question yet.

Report a correction for Q69

Question 70 MCQ · 3.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
If a = 0 and the output of the given program is 'A', then what can be the possible values of b and c?
6406532474163.Source diagram or notation
b = 0, c = 0
6406532474164.
b = 0, c = 1
6406532474165.
b = 1, c = 0
6406532474166.
b = 1, c = 1

A published solution is not available for this question yet.

Report a correction for Q70

Question 71 MSQ · 4.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
If a, b, and c could only take the values 0 or 1, select all the statements that are correct.
6406532474167.
If the output of the program is '2' and b=0, then the value of c is 1.
6406532474168.
If the output of the program is '2' and b=0, then the value of c is 0.
6406532474169.
If the value of c is 0, then the output cannot be '1' for any values of a and b.
6406532474170.
If the value of b is 0, then the output cannot be '1' for any values of a and c.

A published solution is not available for this question yet.

Report a correction for Q71

Question 72 NAT · 3.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
If the value of **b** is 9, then what will be the output of the given program?

A published solution is not available for this question yet.

Report a correction for Q72

Question 73 NAT · 4.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
If the value of **b** is 10, then what will be the output of the given program?

A published solution is not available for this question yet.

Report a correction for Q73