ICAS Digital Systems and Programming 3 — Questions and Answers
Question 1: Which of the following is an example of an output device?
- Keyboard
- Mouse
- Monitor (Correct answer)
- Scanner
Correct answer: Monitor
A monitor displays information from the computer and is therefore an output device.
Question 2: In programming, what is a 'function'?
- A type of variable
- A reusable block of code that performs a specific task (Correct answer)
- A loop that runs forever
- A data type for storing text
Correct answer: A reusable block of code that performs a specific task
A function is a named, reusable block of code designed to perform a particular task when called.
Question 3: What does HTML stand for?
- High Tech Machine Language
- HyperText Markup Language (Correct answer)
- Home Tool Management Language
- Hyperlink and Text Mode Language
Correct answer: HyperText Markup Language
HTML stands for HyperText Markup Language, the standard language used to create web pages.
Question 4: Which storage type loses its data when the computer is turned off?
- Hard disk drive
- Solid state drive
- RAM (Correct answer)
- USB flash drive
Correct answer: RAM
RAM (Random Access Memory) is volatile memory, meaning it loses all stored data when power is removed.
Question 5: What is the result of the AND operation: 1 AND 0?
- 1
- 0 (Correct answer)
- 2
- Undefined
Correct answer: 0
The AND operation outputs 1 only when both inputs are 1; since one input is 0, the result is 0.
Question 6: What is an algorithm?
- A type of computer hardware
- A programming language
- A step-by-step set of instructions to solve a problem (Correct answer)
- A method of storing data
Correct answer: A step-by-step set of instructions to solve a problem
An algorithm is a precise, ordered sequence of steps or instructions designed to solve a problem or complete a task.
Question 7: Which of the following converts a high-level programming language into machine code before running?
- Interpreter
- Compiler (Correct answer)
- Debugger
- Text editor
Correct answer: Compiler
A compiler translates the entire high-level source code into machine code before the program is executed.
Which of the following is an example of an output device?