Programming and Digital Systems Flashcards
7 cards from real ICAS practice questions. Tap to flip, then mark Knew It or Still Learning — missed cards come back until you master them.
Read the first 7 Programming and Digital Systems flashcards as text
What is the function of a CPU (Central Processing Unit)?
Answer: Process instructions and perform calculations
The CPU is the primary component that executes program instructions and performs arithmetic and logic operations.
Which of the following is a characteristic of a 'for' loop?
Answer: It iterates a specific number of times
A for loop is typically used when the number of iterations is known in advance, controlled by a counter variable.
What is the hexadecimal equivalent of the decimal number 16?
Answer: 10
Decimal 16 equals hexadecimal 10, because hex 10 means 1×16 + 0 = 16.
In networking, what does 'IP address' stand for?
Answer: Internet Protocol address
IP stands for Internet Protocol, and an IP address uniquely identifies a device on a network.
What is a function in programming?
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.
Which storage type retains data even when the computer is turned off?
Answer: Hard disk drive
A hard disk drive (HDD) is non-volatile storage, meaning it retains data permanently without power.
What does the logical operator 'AND' return when both inputs are false?
Answer: False
The AND operator only returns True when BOTH inputs are True; it returns False in all other cases.