📝 MCQ Test
Chapter 15 - Programming Concepts
1. What is programming?
A. Writing instructions for a computer
B. Designing only computer hardware
C. Printing documents manually
D. Repairing electrical wiring
2. What is an algorithm?
A. A programming keyboard
B. A finite sequence of steps to solve a problem
C. A storage device
D. A type of monitor
3. Which diagram represents the steps of an algorithm graphically?
A. Spreadsheet
B. Database table
C. Flowchart
D. Text editor
4. What is a variable used for?
A. Displaying a webpage only
B. Printing a document
C. Connecting a monitor
D. Storing or referring to data
5. Which of the following is commonly used as a Boolean value?
A. true
B. paragraph
C. keyboard
D. document
6. Which operator performs addition in many programming languages?
A. /
B. +
C. %
D. =
7. Which construct is used to make decisions in a program?
A. Comment
B. Variable declaration only
C. Conditional statement
D. Output device
8. Which construct repeats a block of instructions?
A. Constant
B. Compiler
C. String
D. Loop
9. What is the main advantage of a function?
A. Code reuse and modularity
B. Increasing screen brightness
C. Replacing the operating system
D. Removing all input
10. What is debugging?
A. Creating a computer network
B. Finding and correcting program errors
C. Formatting a hard disk
D. Printing source code only
11. What is a syntax error?
A. A correct program output
B. A network connection
C. A violation of language grammar
D. A hardware upgrade
12. What is a logical error?
A. A missing monitor cable
B. A type of printer
C. A successful test only
D. Faulty logic that produces an incorrect result
13. What does a compiler commonly do?
A. Translates source code into another form
B. Cleans the computer screen
C. Creates physical cables
D. Stores paper documents
14. What is pseudocode?
A. A computer virus
B. A readable description of algorithm steps
C. A type of processor
D. A database backup
15. What is input?
A. The final result only
B. A syntax error
C. Data supplied to a program
D. A programming language keyword only
16. What is output?
A. The source code before execution only
B. A loop condition
C. A programming keyboard
D. The result produced by a program
17. Which activity helps verify that a program behaves as expected?
A. Testing
B. Renaming the computer
C. Changing wallpaper
D. Disconnecting the keyboard
18. Which of the following is a comparison operator in many languages?
A. +
B. >
C. print
D. input
19. What is a constant intended to represent?
A. A value that changes on every operation
B. A loop that never ends
C. A value or binding that is not meant to be reassigned
D. A physical storage device
20. Which programming structure executes instructions in order, one after another?
A. Selection only
B. Recursion only
C. Iteration only
D. Sequence
✅ Submit Test
⬅ Back To Chapter