Home / Study library / Programming in C / End Term · Sep 2024 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
Q83 Q84 Q85 Q86 Q87 Q88 Q89 Q90 Q91 Q92 Q93 Q94 Q95 Q96 Q97 Q98 Q99 Q100 Q101 Q102 Q103 Q104 Q105 Q106 Q107
Question 83 MCQ · 3.0 marks Which of the following data types will result in the largest memory allocation?
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 A published solution is not available for this question yet.
Report a correction for Q86
Question 87 MCQ · 5.0 marks 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 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 6406533516041. 6406533516042. 6406533516043. 6406533516044. A published solution is not available for this question yet.
Report a correction for Q89
Question 90 MCQ · 5.0 marks A published solution is not available for this question yet.
Report a correction for Q90
Question 91 MCQ · 5.0 marks A published solution is not available for this question yet.
Report a correction for Q91
Question 92 MCQ · 4.0 marks 6406533515989. Compilation error
A published solution is not available for this question yet.
Report a correction for Q92
Question 93 MCQ · 4.0 marks 6406533516000. Compilation error
A published solution is not available for this question yet.
Report a correction for Q93
Question 94 MCQ · 4.0 marks 6406533516014. Compilation error
A published solution is not available for this question yet.
Report a correction for Q94
Question 95 MCQ · 4.0 marks 6406533516015. 6406533516016. 6406533516017. 6406533516018. A published solution is not available for this question yet.
Report a correction for Q95
Question 96 MCQ · 4.0 marks A published solution is not available for this question yet.
Report a correction for Q96
Question 97 MCQ · 4.0 marks 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 6406533516045. 6406533516046. 6406533516047. 6406533516048. 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. 6406533516063. 6406533516064. 6406533516065. 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 A published solution is not available for this question yet.
Report a correction for Q104
Question 105 NAT · 4.0 marks A published solution is not available for this question yet.
Report a correction for Q105
Question 106 NAT · 4.0 marks A published solution is not available for this question yet.
Report a correction for Q106
Question 107 NAT · 4.0 marks A published solution is not available for this question yet.
Report a correction for Q107