Digital Systems and Programming Flashcards
6 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 6 Digital Systems and Programming flashcards as text
In a digital computing context, what is the primary reason for using the binary system (base-2) to represent data?
Answer: It directly corresponds to the two-state (on/off) nature of electronic circuits.
Digital systems are built on electronic circuits, which exist in two stable states: on (representing 1) or off (representing 0). The binary system's use of only two digits (0 and 1) provides a reliable and straightforward way to represent these physical states, forming the foundation of all digital data processing.
A developer is writing a device driver for a new piece of graphics hardware. Performance and direct control over memory are critical requirements. Which type of programming language would be most suitable for this task?
Answer: A low-level language like C or Assembly, for its minimal abstraction and direct hardware access.
Low-level languages, such as C and Assembly, provide minimal abstraction from the computer's hardware. This allows for precise control over memory allocation and hardware registers, which is essential for performance-critical tasks like writing device drivers. High-level languages prioritize ease of use and portability over this granular control.
A network administrator is analyzing data packets and notices that a simple error-checking mechanism is being used. An extra bit is added to each byte of data to ensure that the total number of '1's is always even. Which of the following error detection techniques is being used?
Answer: Parity Check
A parity check is an error detection technique that involves adding an extra bit (the parity bit) to a block of data. In 'even parity,' the parity bit is set to 1 if the number of ones in the data is odd, making the total count of ones even. If the number of ones is already even, the parity bit is set to 0. This is one of the simplest forms of error detection.
A digital circuit contains a logic gate that produces a high output (1) only when both of its two inputs are high (1). What type of logic gate is this?
Answer: AND gate
An AND gate is a fundamental logic gate that performs logical conjunction. Its output is true (1) if, and only if, all of its inputs are true (1). If any input is false (0), the output will also be false (0).
A programmer creates a simple loop intended to display numbers. The pseudocode is as follows: SET a TO 1 WHILE a < 5 DISPLAY a SET a TO a + 1 END WHILE What is the final number displayed by this algorithm?
Answer: 4
The loop continues as long as the variable 'a' is less than 5. It starts by displaying 1, then increments 'a'. It then displays 2, 3, and finally 4. When 'a' is incremented to 5, the condition 'a < 5' becomes false, and the loop terminates. Therefore, the last number displayed is 4.
Which of the following is a key characteristic of high-level programming languages compared to low-level languages?
Answer: They offer greater abstraction from the hardware, making them easier to read and write.
High-level languages are designed to be closer to human language, abstracting away complex hardware details. This makes them more portable across different computer systems and generally easier to learn, debug, and maintain than low-level languages, which are much closer to the machine's native instruction set.