1.
When a programmer writes a program, the code is known as __________.
Correct Answer
A. Source code
Explanation
When a programmer writes a program, the code that they write is known as source code. This is the human-readable version of the program that is written in a programming language such as C++ or Python. The source code is then compiled or interpreted to create object code, which is the machine-readable version of the program that can be executed by the computer. Object code is further organized into object modules, and these object modules are combined to create a load module, which is the final executable form of the program. However, the initial code written by the programmer is referred to as source code.
2.
A compiler (or an assembler) converts source code into a ____________.
Correct Answer
C. Object module
Explanation
A compiler (or an assembler) converts source code into an object module. An object module is an intermediate form of the code that contains the machine instructions and data in a format that can be further processed by a linker or a loader to create an executable program. The object module is not the final executable program itself, but rather a compiled version of the source code that can be linked with other object modules to create the final executable.
3.
A linkage editor (linker) converts a set of object modules into a
Correct Answer
D. Load module, also known as an executable program
Explanation
A linkage editor, also known as a linker, is responsible for converting a set of object modules into a load module, which is an executable program. This load module contains all the necessary information and instructions for the program to run. It combines the object modules and resolves any external references, ensuring that the program can be executed successfully. Therefore, the correct answer is load module, also known as an executable program.
4.
The advantage of a linked list over a basic list (array) is:
Correct Answer
A. It is easier to dynamically add and delete elements from a linked list.
Explanation
A linked list is advantageous over a basic list (array) because it allows for easier dynamic addition and deletion of elements. Unlike an array, which has a fixed size and requires shifting elements when adding or removing, a linked list can simply update pointers to add or delete elements. This flexibility makes linked lists more efficient for operations that involve frequent modification of the list's size.
5.
When modifying a queue, new elements are added only to the _____________ of the queue, and elements are removed only from the __________ of the queue.
Correct Answer
D. Rear, front
Explanation
When modifying a queue, new elements are added only to the rear of the queue, and elements are removed only from the front of the queue. This is because a queue follows the FIFO (First-In-First-Out) principle, where the first element to be added is the first one to be removed. Therefore, the rear of the queue represents the end where new elements are added, and the front represents the end where elements are removed.
6.
This computer component links the other internal components, providing a pathway for data between the components.
Correct Answer
C. Bus
Explanation
The bus is the correct answer because it is responsible for linking the other internal components of a computer and providing a pathway for data between them. It serves as a communication channel, allowing the CPU to access and transfer data to and from memory, storage devices, and other peripherals. The bus acts as a central highway within the computer system, facilitating the flow of information and ensuring efficient data transfer between the components.
7.
The act of physically transferring a unit of data between the memory and a peripheral device.
Correct Answer
B. pHysical I/O
Explanation
Physical I/O refers to the act of physically transferring a unit of data between the memory and a peripheral device. This involves the actual movement of data between the main memory and an external device, such as a hard drive or a printer. It is different from logical I/O, which refers to the logical operations performed on data, and access I/O, which refers to the process of accessing data from a storage device. Peripheral I/O specifically refers to the interaction between the computer and its peripheral devices.
8.
A record is composed of one or more __________ which hold the data values.
Correct Answer
C. Fields
Explanation
A record is a collection of related data values, and these data values are stored in fields. Each field represents a specific piece of information within the record. Therefore, the correct answer is "fields".
9.
What are the two components of a machine language instruction?
Correct Answer
A. Operation code and operands
Explanation
The two components of a machine language instruction are the operation code and operands. The operation code represents the specific operation or instruction that the computer should perform, such as addition or subtraction. The operands, on the other hand, are the data or values on which the operation is to be performed. These components together allow the computer to execute specific instructions and manipulate data according to the given operation code.
10.
In a microcomputer, the responsibility for performing device specific tasks is assigned to a software routine called a ____________.
Correct Answer
B. Device driver
Explanation
A device driver is a software routine that is responsible for performing device specific tasks in a microcomputer. It acts as an interface between the operating system and the hardware device, allowing the operating system to communicate with and control the device. The device driver handles tasks such as initializing the device, sending and receiving data, and managing device resources. It ensures that the device operates correctly and efficiently within the computer system.