1. What is input in programming?
(A) Data received by the program
(B) Data sent from the program
(C) A type of loop
(D) A function
2. What is output in programming?
(A) Data received by the program
(B) A variable type
(C) Data sent from the program
(D) A loop type
3. Which of the following is used to take input from the user in most programming languages?
(A) print
(B) input
(C) return
(D) read
4. Which of the following is used to display output to the user?
(A) write
(B) read
(C) input
(D) print
5. Input and output operations are also called:
(A) Conditions
(B) Functions
(C) Loops
(D) I/O operations
6. What type of input is entered using a keyboard?
(A) Manual input
(B) Automatic input
(C) File input
(D) Program input
7. What type of output is displayed on the screen?
(A) Manual output
(B) Visual output
(C) File output
(D) Automatic output
8. Which device is commonly used for input in a computer system?
(A) Monitor
(B) Speaker
(C) Printer
(D) Keyboard
9. Which device is commonly used for output in a computer system?
(A) Monitor
(B) Keyboard
(C) Mouse
(D) Scanner
10. Which of the following can be used for file input/output?
(A) Files on disk
(B) Keyboard and monitor
(C) Loop structures
(D) Conditional statements
11. What is the process of reading data from the user called?
(A) Output handling
(B) Looping
(C) Input handling
(D) Conditional handling
12. What is the process of displaying data to the user called?
(A) Input handling
(B) Conditional execution
(C) Output handling
(D) Loop execution
13. Input values provided by the user are stored in:
(A) Variables
(B) Functions
(C) Loops
(D) Operators
14. Which of the following ensures that output is visible to the user?
(A) Display
(B) Storage
(C) Loop
(D) Condition
15. Which of the following is NOT an output device?
(A) Printer
(B) Monitor
(C) Keyboard
(D) Speaker
16. Which of the following is NOT an input device?
(A) Keyboard
(B) Mouse
(C) Monitor
(D) Microphone
17. What type of data can be input from a file?
(A) Both text and numbers
(B) Numbers
(C) Text
(D) None
18. What is the typical format used to display output to the screen?
(A) Data format
(B) File format
(C) Visual format
(D) Loop format
19. Which of the following is necessary to handle input correctly?
(A) Variables to store input
(B) Loops to display input
(C) Conditions to modify input
(D) Operators to compare input
20. What is the main purpose of input/output handling in a program?
(A) To perform calculations
(B) To interact with the user
(C) To create functions
(D) To define loops