Q.1

In which way(s) can a macro processor for assembly language be implemented?

  • independent two-pass processor
  • independent one-pass processor
  • processor incorporated into pass of a standard two-pass assembler
  • All of the above
Q.2

Convert the BRNE h#01Ei assembly language instructions into hexadecimal machine language:

  • 0111EF
  • 9001E6
  • DA000F
  • 40
Q.3

Systems software is a program that directs the overall operation of the computer, facilitates its use and interacts with the users. What are the different types of this software?

  • Operating system
  • Languages
  • Utilities
  • All of the above
Q.4

A loader is

  • a program that places programs into memory and prepares them for execution
  • a program that automate the translation of assembly language into machine language
  • is a program that appears to execute a source program as if it were machine language
  • program that accepts a program written in a high level language and produces an object program
Q.5

Indicate which of the following is not true about an interpreter?

  • Interpreter generates an object program from the source program
  • Interpreter is a kind of translator
  • Interpreter analyses each source statement every time it is to be executed
  • All of the above
Q.6

In analyzing the compilation of PL/I program, the term "Lexical analysis" is associated with

  • recognition of basic syntactic constructs through reductions
  • recognition of basic elements and creation of uniform symbols
  • creation of more optional matrix
  • use of macro processor to produce more optimal assembly code
Q.7

The function(s) of the Storage Assignment is/are:

  • to assign storage to all variables referenced in the source program
  • to assign storage to all temporary locations that are necessary for intermediate results
  • to assign storage to literals, and to ensure that the storage is allocated and appropriate locations are initialized
  • All of the above
Q.8

Which of the following system program forgoes the production of object code to generate absolute machine code and load it into the physical main storage location from which it will be executed immediately upon completion of the assembly?

  • two pass assembler
  • load-and-go assembler
  • macroprocessor
  • compiler
Q.9

A system program that combines the separately compiled modules of a program into a form suitable for execution

  • assembler
  • linking loader
  • cross compiler
  • load and go
Q.10

Bug means

  • A logical error in a program
  • A difficult syntax error in a program
  • Documenting programs using an efficient documentation tool
  • All of the above
Q.11

Which of the following functions is/ are performed by the loader?

  • Allocate space in memory for the programs and resolve symbolic references between object decks
  • Physically place the machine instructions and data into memory
  • Adjust all address dependent locations, such as address constants, to correspond to the allocated space
  • All of the above
Q.12

Convert the CHARI h#000F, s assembly language instructions into hexadecimal machine language:

  • 0111EF
  • 9001E6
  • DA000F
  • 40
Q.13

When a computer is first turned on or restarted, a special type of absolute loader, called a ______ is executed

  • loader
  • linker
  • bootstrap loader
  • None of the above
Q.14

An algorithm is best described as

  • A computer language
  • A step by step procedure for solving a problem
  • A branch of mathematics
  • All of the above
Q.15

Convert themachine language instructions into assembly language, assuming that they were not generated by pseudo-ops:

  • ASRA
  • LOADA h#OD4E, i
  • STOREA h#014B, d
  • ADDA h#01FE, i
Q.16

A compiler is

  • a program that places programs into memory and prepares them for execution
  • a program that automate the translation of assembly language into machine language
  • program that accepts a program written in a high level language and produces an object program
  • is a program that appears to execute a source program as if it were machine language
Q.17

Convert themachine language instructions into assembly language, assuming that they were not generated by pseudo-ops:

  • ASRA
  • LOADA h#OD4E, i
  • STOREA h#014B, d
  • ADDA h#01FE, i
Q.18

The table created by lexical analysis to describe all literals used in the source program, is:

  • Terminal table
  • Literal table
  • Identifier table
  • Reductions
Q.19

Indicate whether the statement LDA B is a statement, in

  • Machine language
  • Assembly language
  • High level language
  • All of the above
Q.20

The macro processor must perform

  • recognize macro definitions and macro calls
  • save the macro definitions
  • expand macro calls and substitute arguments
  • All of the above
Q.21

In an absolute loading scheme, which loader function is accomplished by loader?

  • Reallocation
  • Allocation
  • Linking
  • Loading
Q.22

The advantage(s) of incorporating the macro processor into pass 1 is/ are:

  • many functions do not have to be implemented twice
  • Functions are combined and it is not necessary to create intermediate files as output from the macro processor and input to the assembler
  • more flexibility is available to the programmer in which he/she may use all the features of the assembler in conjunction with macros
  • All of the above
Q.23

Advantage(s) of using assembly language rather than machine language is/are:

  • It is mnemonic and easy to read
  • Addresses any symbolic, not absolute
  • Introduction of data to program is easier
  • All of the above
Q.24

In which addressing mode, the effective address of the operand is generated by adding a constant value to the contents of register?

  • absolute mode
  • indirect mode
  • immediate mode
  • index mode
Q.25

The action of parsing the source program into the proper syntactic classes is known as

  • syntax analysis
  • lexical analysis
  • interpretation analysis
  • general syntax analysis
Q.26

A self-relocating program is one which

  • cannot be made to execute in any area of storage other than the one designated for it at the time of its coding or translation
  • consists of a program and relevant information for its relocation
  • can itself perform the relocation of its address-sensitive portions
  • All of the above
Q.27

The task(s) of the Lexial analysis phase is/are:

  • to parse the source program into the basic elements or tokens of the language
  • to build a literal table and an identifier table
  • to build a uniform symbol table
  • All of the above
0 h : 0 m : 1 s