MauryaHub PYQ Practice

Programming in C · End Term · Sep 2023 · AN

Programming in C · End Term · Sep 2023 AN

← 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 102 MCQ · 4.0 marks

Source diagram or notation
6406532335161.
Value of a is 30 Value of a is 30
6406532335162.
Value of a is 30 Value of a is 10
6406532335163.
Value of a is 10 Value of a is 10
6406532335164.
Value of a is 10 Value of a is 30

A published solution is not available for this question yet.

Report a correction for Q102

Question 103 MCQ · 4.0 marks

Source diagram or notation
6406532335165.
12
6406532335166.
2
6406532335167.
16
6406532335168.
1
6406532335169.
64

A published solution is not available for this question yet.

Report a correction for Q103

Question 104 MCQ · 4.0 marks

Source diagram or notation
6406532335174.
Compile Time Error
6406532335175.
239 314
6406532335176.
234 316
6406532335177.
239 316
6406532335178.
234 314

A published solution is not available for this question yet.

Report a correction for Q104

Question 105 MCQ · 4.0 marks

Source diagram or notation
6406532335179.
3
6406532335180.
4
6406532335181.
5
6406532335182.
6

A published solution is not available for this question yet.

Report a correction for Q105

Question 106 MCQ · 4.0 marks

Source diagram or notation
6406532335193.
The value is: 4
6406532335194.
The value is: 8
6406532335195.
The value is: 16
6406532335196.
The value is: 2

A published solution is not available for this question yet.

Report a correction for Q106

Question 107 MCQ · 4.0 marks

Consider an integer variable holding a value “0x89209899”. Suppose the available memory addresses are starting from the address “0x128” in a machine, which of the following stores this multibyte data in the little endian way?
6406532335197.Source diagram or notation
6406532335198.Source diagram or notation
6406532335199.Source diagram or notation
6406532335200.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q107

Question 108 MCQ · 4.0 marks

Which of the following statements about array initialization in C is correct?
6406532335201.
Arrays can only be initialized at the time of declaration.
6406532335202.
Arrays can be initialized both at the time of declaration and later in the program.
6406532335203.
Arrays can only be initialized with integer values.
6406532335204.
The index of the first element in an array is always 1.

A published solution is not available for this question yet.

Report a correction for Q108

Question 109 MCQ · 4.0 marks

Source diagram or notation
6406532335210.
Hello C Programming !!
6406532335211.
Hello C Programming
6406532335212.
C Programming
6406532335213.
C Programming !!
6406532335214.
Programming
6406532335215.
Programming !!

A published solution is not available for this question yet.

Report a correction for Q109

Question 110 MCQ · 4.0 marks

Source diagram or notation
6406532335216.Source diagram or notation
6406532335217.Source diagram or notation
6406532335218.Source diagram or notation
6406532335219.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q110

Question 111 MCQ · 4.0 marks

Source diagram or notation
What will be the output of the above program?
6406532335220.
0
6406532335221.
6
6406532335222.
7
6406532335223.
1

A published solution is not available for this question yet.

Report a correction for Q111

Question 112 MCQ · 4.0 marks

Which of the following statements is true about unions in C?
6406532335224.
Unions allow you to store values of different data types at a time in different members.
6406532335225.
Unions can only contain elements of the same data type.
6406532335226.
Unions always consume more memory than structs.
6406532335227.
Unions are used to define functions.

A published solution is not available for this question yet.

Report a correction for Q112

Question 113 MCQ · 4.0 marks

Source diagram or notation
6406532335232.
4, 20
6406532335233.
4, 40
6406532335234.
8, 20
6406532335235.
8, 40

A published solution is not available for this question yet.

Report a correction for Q113

Question 114 MCQ · 4.0 marks

Source diagram or notation
6406532335236.
*(*A + i*R + j)
6406532335237.
*(*A + j*C + i)
6406532335238.
*(*A + i*C + j)
6406532335239.
*(*A + j*R + i)

A published solution is not available for this question yet.

Report a correction for Q114

Question 115 MCQ · 4.0 marks

Source diagram or notation
6406532335244.
Remove all data from file and write "1,2,3" to "numbers.txt".
6406532335245.
Remove all data from file and write "1 2 3" to "numbers.txt".
6406532335246.
Appends "1,2,3" to "numbers.txt".
6406532335247.
Appends "1 2 3" to "numbers.txt".

A published solution is not available for this question yet.

Report a correction for Q115

Question 116 MCQ · 4.0 marks

Source diagram or notation
6406532335248.
9BB1
6406532335249.
9BA1
6406532335250.
BBA1
6406532335251.
BBB1

A published solution is not available for this question yet.

Report a correction for Q116

Question 117 MCQ · 4.0 marks

Source diagram or notation
6406532335252.
34
6406532335253.
7
6406532335254.
12
6406532335255.
Compilation error

A published solution is not available for this question yet.

Report a correction for Q117

Question 118 MCQ · 4.0 marks

Which of the following preprocessor directives is used to define macros in C?
6406532335256.
define
6406532335257.
include
6406532335258.
ifdef
6406532335259.
undef

A published solution is not available for this question yet.

Report a correction for Q118

Question 119 MSQ · 4.0 marks

Which of the following statements is/are true regarding functions in C Language?
6406532335170.
A function signature must indicate the data type of all the function parameters.
6406532335171.
A function signature must indicate the variable names for the function parameters.
6406532335172.
A function does not always return a value.
6406532335173.
A function cannot accept more than 2 parameters.

A published solution is not available for this question yet.

Report a correction for Q119

Question 120 MSQ · 4.0 marks

In C, which of the following is/are valid operations on pointer variables? (Select all that apply)
6406532335183.
Dividing one pointer variable by another pointer variable.
6406532335184.
Comparing two pointers variables for equality.
6406532335185.
Incrementing/Decrementing a pointer variable (e.g. ptr++/ ptr–).
6406532335186.
Multiplying two pointer variables.

A published solution is not available for this question yet.

Report a correction for Q120

Question 121 MSQ · 4.0 marks

Source diagram or notation
6406532335187.
*a
6406532335188.
&a
6406532335189.
a
6406532335190.
p
6406532335191.
*p
6406532335192.
&p

A published solution is not available for this question yet.

Report a correction for Q121

Question 122 MSQ · 4.0 marks

Source diagram or notation
6406532335206.Source diagram or notation
6406532335207.Source diagram or notation
6406532335208.Source diagram or notation
6406532335209.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q122

Question 123 MSQ · 4.0 marks

Source diagram or notation
6406532335228.Source diagram or notation
Source diagram or notation
6406532335229.Source diagram or notation
6406532335230.Source diagram or notation
6406532335231.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q123

Question 124 MSQ · 4.0 marks

Source diagram or notation
6406532335240.
The function allocates the memory for a 2D array at the time of compilation.
6406532335241.
The function dynamically allocates the memory for a 2D array.
6406532335242.
The function does not initialize the elements of the 2D array.
6406532335243.
The function initializes all the elements of the 2D array with 0.

A published solution is not available for this question yet.

Report a correction for Q124

Question 125 NAT · 4.0 marks

Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q125

Question 126 NAT · 4.0 marks

Source diagram or notation
**Note:** The answer must be an integer. For Ex: If the answer is 32, you must enter 32 only.

A published solution is not available for this question yet.

Report a correction for Q126