MauryaHub PYQ Practice

Programming in C · End Term · Sep 2024 · FN

Programming in C · End Term · Sep 2024 FN

← 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 / 25 published solutions

Question 83 MCQ · 3.0 marks

Which of the following data types will result in the largest memory allocation?
6406533515978.
int
6406533515979.
char
6406533515980.
double
6406533515981.
float

A published solution is not available for this question yet.

Report a correction for Q83

Question 84 MCQ · 3.0 marks

What is the primary difference between a function declaration and a function definition in C?
6406533515994.
A function declaration specifies the name, return type, and parameters of a function, while a function definition provides the implementation of the function.
6406533515995.
A function declaration provides the implementation of the function, while a function definition specifies only the function signature.
6406533515996.
Both are the same, they can be used interchangeably.
6406533515997.
Function declarations are only required for recursive functions.

A published solution is not available for this question yet.

Report a correction for Q84

Question 85 MCQ · 3.0 marks

Which of the following is not a valid memory segment in C?
6406533516036.
Code segment
6406533516037.
Heap segment
6406533516038.
Register segment
6406533516039.
Data segment

A published solution is not available for this question yet.

Report a correction for Q85

Question 86 MCQ · 5.0 marks

Source diagram or notation
6406533515982.
6
6406533515983.
7
6406533515984.
8
6406533515985.
9

A published solution is not available for this question yet.

Report a correction for Q86

Question 87 MCQ · 5.0 marks

Source diagram or notation
6406533515990.
a = 5, b = 3, c = 2
6406533515991.
a = 1, b = 4, c = 3
6406533515992.
a = 2, b = 2, c = 3
6406533515993.
a = 3, b = 2, c = 4

A published solution is not available for this question yet.

Report a correction for Q87

Question 88 MCQ · 5.0 marks

Source diagram or notation
6406533516002.
Counts the number of odd numbers from 1 to n.
6406533516003.
Counts the number of even numbers from 1 to n.
6406533516004.
The sum of odd numbers from 1 to n.
6406533516005.
The sum of even numbers from 1 to n.

A published solution is not available for this question yet.

Report a correction for Q88

Question 89 MCQ · 5.0 marks

Source diagram or notation
6406533516041.Source diagram or notation
6406533516042.Source diagram or notation
6406533516043.Source diagram or notation
6406533516044.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q89

Question 90 MCQ · 5.0 marks

Source diagram or notation
6406533516050.
1
6406533516051.
4
6406533516052.
2
6406533516053.
8

A published solution is not available for this question yet.

Report a correction for Q90

Question 91 MCQ · 5.0 marks

Source diagram or notation
6406533516058.
11
6406533516059.
27
6406533516060.
36
6406533516061.
25

A published solution is not available for this question yet.

Report a correction for Q91

Question 92 MCQ · 4.0 marks

Source diagram or notation
6406533515986.
5
6406533515987.
-5
6406533515988.
15
6406533515989.
Compilation error

A published solution is not available for this question yet.

Report a correction for Q92

Question 93 MCQ · 4.0 marks

Source diagram or notation
6406533515998.
5
6406533515999.
15
6406533516000.
Compilation error
6406533516001.
10

A published solution is not available for this question yet.

Report a correction for Q93

Question 94 MCQ · 4.0 marks

Source diagram or notation
6406533516011.
10
6406533516012.
5
6406533516013.
15
6406533516014.
Compilation error

A published solution is not available for this question yet.

Report a correction for Q94

Question 95 MCQ · 4.0 marks

Source diagram or notation
6406533516015.Source diagram or notation
6406533516016.Source diagram or notation
6406533516017.Source diagram or notation
6406533516018.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q95

Question 96 MCQ · 4.0 marks

Source diagram or notation
6406533516023.
1
6406533516024.
2
6406533516025.
3
6406533516026.
4

A published solution is not available for this question yet.

Report a correction for Q96

Question 97 MCQ · 4.0 marks

Source diagram or notation
6406533516031.
arr[0]: 42, arr[1]: 3.14
6406533516032.
arr[0]: Undefined Behavior, arr[1]: 3.14
6406533516033.
arr[0]: 42, arr[1]: Undefined Behavior
6406533516034.
arr[0]: 42, arr[1]: 0.00

A published solution is not available for this question yet.

Report a correction for Q97

Question 98 MCQ · 4.0 marks

Source diagram or notation
6406533516045.Source diagram or notation
6406533516046.Source diagram or notation
6406533516047.Source diagram or notation
6406533516048.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q98

Question 99 MCQ · 4.0 marks

Which of the following best describes a macro in C?
6406533516054.
A function stored in the stack memory.
6406533516055.
A block of code replaced at runtime.
6406533516056.
A block of code replaced during the preprocessing phase.
6406533516057.
A predefined function in the C Standard Library.

A published solution is not available for this question yet.

Report a correction for Q99

Question 100 MCQ · 4.0 marks

Which of the following statements about conditional compilation is **false?**
6406533516062.Source diagram or notation
6406533516063.Source diagram or notation
6406533516064.Source diagram or notation
6406533516065.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q100

Question 101 MSQ · 3.0 marks

Which of the following statements about pointers is/are true?
6406533516006.
A pointer can be incremented to point to the next memory location of its type.
6406533516007.
A pointer variable cannot be reassigned after initialization.
6406533516008.
Dereferencing a pointer gives the value stored at the memory address it holds.
6406533516009.
Dereferencing a pointer gives the memory address it holds.

A published solution is not available for this question yet.

Report a correction for Q101

Question 102 MSQ · 3.0 marks

Which of the following statement(s) is/are true about arrays in C?
6406533516019.
Arrays in C are zero-indexed.
6406533516020.
The name of an array points to its first element in memory allocated for the array.
6406533516021.
Arrays can hold elements of different data types.
6406533516022.
Array elements are stored in contiguous memory locations.

A published solution is not available for this question yet.

Report a correction for Q102

Question 103 MSQ · 3.0 marks

Which of the following statement(s) is/are true about structures in C?
6406533516027.
Structures can contain members of different data types.
6406533516028.
The size of a structure is always the size of its largest member.
6406533516029.
Structures can not be nested within other structures.
6406533516030.
Members of a structure can be accessed using the dot operator.

A published solution is not available for this question yet.

Report a correction for Q103

Question 104 NAT · 4.0 marks

Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q104

Question 105 NAT · 4.0 marks

Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q105

Question 106 NAT · 4.0 marks

Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q106

Question 107 NAT · 4.0 marks

Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q107