MCQ Collection
Programming Fundamentals MCQs
Programming Fundamentals MCQs for variables, loops, functions, arrays, and basic logic building.
A. Compilation
B. Allocation
C. Dereferencing
D. Concatenation
View Answer →
Correct Answer: D. Concatenation
A. Memory assigned only after user closes program
B. Memory created by printer
C. Memory size decided before or during compilation
D. Memory never used
View Answer →
Correct Answer: C. Memory size decided before or during compilation
A. Only compiling code
B. Only displaying graphics
C. Only declaring variables
D. Reading from and writing to files
View Answer →
Correct Answer: D. Reading from and writing to files
A. A picture border
B. Information stored for one active function call
C. A printer page
D. A file extension
View Answer →
Correct Answer: B. Information stored for one active function call
A. Stack rolling
B. String comparison
C. Memory leaking
D. File closing
View Answer →
Correct Answer: B. String comparison
A. Memory allocated during program execution
B. Memory printed to screen
C. Memory allocated only in source comments
D. Memory deleted before program starts
View Answer →
Correct Answer: A. Memory allocated during program execution
A. To store data only until power off
B. To remove input
C. To replace CPU
D. To store data permanently
View Answer →
Correct Answer: D. To store data permanently
A. Making code unreadable
B. Avoiding duplicate code
C. Increasing copy-paste errors
D. Removing all testing
View Answer →
Correct Answer: B. Avoiding duplicate code
A. Linking
B. Allocation only
C. CPU decoding
D. Length calculation
View Answer →
Correct Answer: D. Length calculation
A. malloc
B. fclose
C. printf
D. scanf
View Answer →
Correct Answer: A. malloc
A. fprintf
B. fclose
C. fopen
D. free
View Answer →
A. A function that only stores files
B. A function that has no name
C. A function that cannot be called
D. A function that does not return a value
View Answer →
Correct Answer: D. A function that does not return a value