Computer Science Test 8 Nddc Scholarship
Computer Science Test 8 Nddc Scholarship
Question 21
An interface that can be used to connect the microcomputer bus to ________ is called an I/O Port.
An Input/Output (I/O) port serves as the specific interface or 'gateway' between the internal bus system of a microcomputer and various external peripheral devices such as keyboards, printers, or sensors.
The port provides the necessary electrical buffering and logic to ensure that data travelling at high speeds on the system bus can be safely and accurately exchanged with slower external hardware. Essentially, it maps an external device to a specific address that the CPU can read from or write to.
The port provides the necessary electrical buffering and logic to ensure that data travelling at high speeds on the system bus can be safely and accurately exchanged with slower external hardware. Essentially, it maps an external device to a specific address that the CPU can read from or write to.
Not clear enough?
Question 22
__________ is an electrical pathway through which the processor communicates with the internal and external devices attached to the computer.
A computer bus is a communication system or 'highway' consisting of a set of parallel electrical conductors that transfer data between components inside a computer or between computers.
The bus architecture typically includes a data bus for moving actual information, an address bus for specifying where the data should go, and a control bus for managing the timing of these signals. It allows the processor to interact seamlessly with RAM, storage controllers, and expansion cards through a unified electrical infrastructure.
The bus architecture typically includes a data bus for moving actual information, an address bus for specifying where the data should go, and a control bus for managing the timing of these signals. It allows the processor to interact seamlessly with RAM, storage controllers, and expansion cards through a unified electrical infrastructure.
Not clear enough?
Question 23
Identify the type of serial communication error condition in which a 0 is received instead of a stop bit (which is always a 1)?
In asynchronous serial communication, data is sent in 'frames' that start with a start bit and end with one or more stop bits (which must be a logic high or '1').
A Framing Error occurs when the receiving hardware does not detect the expected stop bit at the end of a character frame. This often happens due to a mismatch in baud rates between the sender and receiver or excessive noise on the communication line, causing the receiver to lose track of where one character ends and the next begins.
A Framing Error occurs when the receiving hardware does not detect the expected stop bit at the end of a character frame. This often happens due to a mismatch in baud rates between the sender and receiver or excessive noise on the communication line, causing the receiver to lose track of where one character ends and the next begins.
Not clear enough?
Question 24
How can you best define an 'interrupt' in the context of computer architecture?
An interrupt is a signal sent to the processor by hardware or software indicating an event that needs immediate attention. When an interrupt occurs, the CPU temporarily suspends its current task, saves its state, and executes a specialized function called an Interrupt Service Routine (ISR).
This mechanism allows the microprocessor to respond to asynchronous external events—such as a mouse click or a packet arriving at a network interface—without having to constantly waste processing cycles 'polling' those devices to see if they have data.
This mechanism allows the microprocessor to respond to asynchronous external events—such as a mouse click or a packet arriving at a network interface—without having to constantly waste processing cycles 'polling' those devices to see if they have data.
Not clear enough?
Question 25
In which of the following methods for resolving priority is the device with the highest priority placed in the first position, followed by lower-priority devices in a series?
Parallel priority logic uses individual lines for each device's interrupt request, and a priority encoder determines which device gets serviced first. However, the description provided in the question—where devices are placed in a series from highest to lowest—is most accurately associated with Parallel Priority Resolution hardware structures.
While Daisy-Chaining also uses a series, the term 'Parallel' in many architectural contexts refers to the simultaneous evaluation of the entire series of request lines to instantly grant access to the highest-ranking device currently requesting the bus.
While Daisy-Chaining also uses a series, the term 'Parallel' in many architectural contexts refers to the simultaneous evaluation of the entire series of request lines to instantly grant access to the highest-ranking device currently requesting the bus.
Not clear enough?
Question 26
In which one of the following methods does the CPU poll to identify the interrupting module and branches to an interrupt service routine on detecting an interrupt?
A Software Poll is an interrupt-handling technique where the CPU responds to a common interrupt signal by executing a branch to a polling routine.
In this routine, the CPU queries each I/O module sequentially to determine which one triggered the interrupt. Once the module is identified, the CPU then branches again to the specific service routine for that device. Although it requires minimal hardware, it is generally slower than hardware-vectored interrupts because of the time spent checking each module programmatically.
In this routine, the CPU queries each I/O module sequentially to determine which one triggered the interrupt. Once the module is identified, the CPU then branches again to the specific service routine for that device. Although it requires minimal hardware, it is generally slower than hardware-vectored interrupts because of the time spent checking each module programmatically.
Not clear enough?
Question 27
Which component is responsible for controlling the sequence and flow of microinstructions in a microprogrammed control unit?
The Microprogram Controller (or microsequencer) is the heart of a microprogrammed control unit. It generates the addresses required to fetch the next microinstruction from control memory.
It manages the sequence of operations, including unconditional jumps, conditional branches based on status flags, and subroutine calls within the microcode. By controlling this flow, it ensures that the CPU executes the correct sequence of elementary control signals to fulfill a complex machine-language instruction.
It manages the sequence of operations, including unconditional jumps, conditional branches based on status flags, and subroutine calls within the microcode. By controlling this flow, it ensures that the CPU executes the correct sequence of elementary control signals to fulfill a complex machine-language instruction.
Not clear enough?
Question 28
Identify the following type of serial communication error: "The prior character that was received was not still read by the CPU and is overwritten by a new received character."
An Overrun Error occurs when the receiving hardware's buffer is not cleared (read) by the CPU before the next unit of data arrives. Since the buffer has limited capacity, the incoming data overwrites the unread data, leading to a loss of information.
This error is typical in systems where the CPU is too busy with high-priority tasks to service the serial port, or when the data transmission speed is higher than the system's ability to process the incoming character stream.
This error is typical in systems where the CPU is too busy with high-priority tasks to service the serial port, or when the data transmission speed is higher than the system's ability to process the incoming character stream.
Not clear enough?
Question 29
In programming, specifically regarding C-style bit fields, which of the following is true about how bit field members are stored?
The storage of bit fields is highly dependent on the compiler and the underlying hardware architecture (endianness). Some compilers store bit fields from the most significant bit to the least significant bit (left to right), while others store them from least significant to most significant (right to left).
Because the C standard does not strictly mandate the ordering, a developer must account for both possibilities when writing portable code. While 'circular array' storage is not a standard compiler implementation for bit fields, in the context of this specific theoretical question, the answer encompasses the various ways members can be aligned in memory across different systems.
Because the C standard does not strictly mandate the ordering, a developer must account for both possibilities when writing portable code. While 'circular array' storage is not a standard compiler implementation for bit fields, in the context of this specific theoretical question, the answer encompasses the various ways members can be aligned in memory across different systems.
Not clear enough?
Question 30
Consider the line of code:
x = 0; where x is a floating-point variable. Which rewritten form is more in line with the 'self-documentation' philosophy?
Self-documentation is a programming philosophy where the code's intent is made clear by the syntax used. If a variable
While
x is declared as a floating-point type (like float or double), assigning it the value 0.0 immediately tells anyone reading the code that the variable handles decimal values. While
x = 0 is technically valid in many languages due to implicit type conversion, x = 0.0 is more precise and prevents confusion with integers, booleans (false), pointers (NULL), or characters ('\0').Not clear enough?
You might like
Which of the following instruments is most suitable for measuring the outside diameter of a narrow pipe in a few millimeters in diameter?
A train takes 18 seconds to pass through a platform 162 m long and 15 seconds to pass through another platform 120 m long. The length of the train (in m) is ?
Which of the following can be deduced from the law of variable proportions when total output is rising?
