Components Of Computer Language Instruction?

Approved & Edited by ProProfs Editorial Team
The editorial team at ProProfs Quizzes consists of a select group of subject experts, trivia writers, and quiz masters who have authored over 10,000 quizzes taken by more than 100 million users. This team includes our in-house seasoned quiz moderators and subject matter experts. Our editorial experts, spread across the world, are rigorously trained using our comprehensive guidelines to ensure that you receive the highest quality quizzes.
Learn about Our Editorial Process
| By Zjamous
Z
Zjamous
Community Contributor
Quizzes Created: 2 | Total Attempts: 515
Questions: 10 | Attempts: 357

SettingsSettingsSettings
Components Of Computer Language Instruction? - Quiz

There are five elements you need to be well informed with so that you can understand the different programming languages. The programming languages ad discussed in class include input, output, arithmetic, conditional, and looping. Take the short quiz below and get a chance to review what you have understood about components of computer language instructions so far! All the best!


Questions and Answers
  • 1. 

    When a programmer writes a program, the code is known as __________.

    • A.

      Source code

    • B.

      Object code

    • C.

      Object module

    • D.

      Load module

    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.

    Rate this question:

  • 2. 

    A compiler (or an assembler) converts source code into a ____________.

    • A.

      Load module

    • B.

      Excutable program

    • C.

      Object module

    • D.

      Source code

    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.

    Rate this question:

  • 3. 

    A linkage editor (linker) converts a set of object modules into a

    • A.

      Structured design

    • B.

      Source module

    • C.

      Lunar module

    • D.

      Load module, also known as an executable program

    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.

    Rate this question:

  • 4. 

    The advantage of a linked list over a basic list (array) is:

    • A.

      It is easier to dynamically add and delete elements from a linked list.

    • B.

      The linked list occupies less memory

    • C.

      The linked list can be saved to disk easily

    • D.

      There is no advantage over the basic list.

    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.

    Rate this question:

  • 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.

    • A.

      Front, front

    • B.

      Front, rear

    • C.

      Rear, rear

    • D.

      Rear, front

    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.

    Rate this question:

  • 6. 

    This computer component links the other internal components, providing a pathway for data between the components.

    • A.

      Memory

    • B.

      Interface board

    • C.

      Bus

    • D.

      CPU

    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.

    Rate this question:

  • 7. 

    The act of physically transferring a unit of data between the memory and a peripheral device.

    • A.

      Logical I/O

    • B.

      Physical I/O

    • C.

      Access I/O

    • D.

      Peripheral I/O

    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.

    Rate this question:

  • 8. 

    A record is composed of one or more __________ which hold the data values.  

    • A.

      Files

    • B.

      Grooves

    • C.

      Fields

    • D.

      Nodes

    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".

    Rate this question:

  • 9. 

    What are the two components of a machine language instruction?

    • A.

      Operation code and operands

    • B.

      ASCII code and operands

    • C.

      Relative address and physical I/O

    • D.

      Interpreter and assembler

    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.

    Rate this question:

  • 10. 

    In a microcomputer, the responsibility for performing device specific tasks is assigned to a software routine called a ____________.  

    • A.

      Channel

    • B.

      Device driver

    • C.

      Object module

    • D.

      Service

    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.

    Rate this question:

Quiz Review Timeline +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Mar 22, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • Sep 26, 2009
    Quiz Created by
    Zjamous
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.