Exam preparation MCQs with answers

Practice Pakistan's most useful MCQs for competitive exams

Prepare for NTS, PPSC, FPSC and subject-wise tests with fresh multiple choice questions, clear options and quick answer reveal.

Latest MCQs

Assembly code data base is associated with__________________?
  • (A)  a permanent table which lists all key words and special symbols of the language in symbolic form
  • (B)  assembly language version of the program which is created by the code generation phase and is input to the assembly phase
  • (C)  a permanent table of decision rules in the form of patterns for matching with the uniform symbol table to discover syntactic structure
  • (D)  consists of a full or partial list or the tokens as they appear in the program. Created by Lexical analysis and used for syntax analysis and interpretation
A base register table___________________?
  • (A)  is a term that refers to the control programs of an operating system
  • (B)  allows multiple programs to reside in separate areas of core at the same time
  • (C)  allows the programmer to write base registers and displacements explicitly in the source program
  • (D)  is used to remember which of the general-purpose registers are currently available as base registers, and what base addresses they contain
The function(s) of the Syntax phase is/ are__________________?
  • (A)  to build a uniform symbol table
  • (B)  to build a literal table and an identifier table
  • (C)  to parse the source program into the basic elements or tokens of the language
  • (D)  to recognize the major constructs of the language and to call the appropriate action routines that will generate the intermediate form or matrix for these constructs
Which of the following functions is/ are performed by the loader ?
  • (A)  Physically place the machine instructions and data into memory
  • (B)  Allocate space in memory for the programs and resolve symbolic references between object decks
  • (C)  Adjust all address dependent locations, such as address constants, to correspond to the allocated space
  • (D)  All of the above