MCQ Collection
Programming Fundamentals MCQs
Programming Fundamentals MCQs for variables, loops, functions, arrays, and basic logic building.
A. A compiler file
B. A flowchart symbol
C. A variable that stores only true or false
D. A variable that stores a memory address
Correct Answer: D. A variable that stores a memory address
A. delete[]
B. remove
C. delete only for arrays
D. free[]
Correct Answer: A. delete[]
A. a
B. w
C. r
D. read
A. Computer brand
B. Function name and required arguments
C. Screen resolution
D. File icon
Correct Answer: B. Function name and required arguments
A. %
B. $
C. &
D. *
A. Compiler always prevents it
B. Program becomes an algorithm
C. Memory leak may occur
D. Pointer becomes a string
Correct Answer: C. Memory leak may occur
A. malloc
B. fscanf
C. fopen
D. fprintf
Correct Answer: D. fprintf
A. A hardware port
B. A function only stored in a book
C. A compiler error
D. A prewritten function provided by a library
Correct Answer: D. A prewritten function provided by a library
A. *
B. &
C. #
D. '@
A. Compare strings
B. Close a program
C. Find the size in bytes of a type or object
D. Open a file
Correct Answer: C. Find the size in bytes of a type or object
A. free
B. fprintf
C. fscanf
D. fclose
Correct Answer: C. fscanf
A. printer.h
B. graphics only
C. iostream only always
D. cmath