Pak
QuizHub
Home
Important MCQs
Past Papers
About
Contact
Privacy
Language processors
Practice MCQs under Language processors. 61 available
Questions
Show Answers
Correct options are highlighted when revealed.
1.
What defines a relocatable program form?
It includes a program along with the necessary data to support its relocation.
It is capable of relocating its own address-dependent sections automatically.
It must run only in the specific memory location assigned during its coding or translation.
All of the above statements are true.
2.
What best describes the function of an interpreter?
A software that loads programs into memory and readies them for running
A tool that converts assembly code into machine code automatically
A program that executes source code directly, simulating machine language operations
A system that takes high-level language code and generates an object file
3.
What is the name of the translator that processes a complete program written in a high-level language and converts it into machine code?
compiler
translator
assembler
system software
4.
What is the function of a compiler?
A software that loads programs into memory and readies them for running
A tool that converts assembly code into machine code automatically
A program that simulates running a source code as if it were machine code
A program that takes source code written in a high-level language and generates an object file
5.
What do you call a compiler that is executed on one computer but generates executable code for another computer?
cross compiler
single-pass compiler
multi-pass compiler
performance-enhancing compiler
6.
What is the hexadecimal machine code equivalent of the assembly directive .WORD d#790?
F8
03 16
0111EF
42 65 61 72
7.
In an absolute loading process, which task is performed by the loader?
Connecting modules
Loading the program into memory
Assigning memory addresses
Adjusting addresses
Relocating code
8.
What does the assembly code database refer to in the context of compiler design?
A fixed table containing all the language's reserved words and special symbols in symbolic form
The assembly language representation of the program generated during code generation, which serves as input for the assembly phase
A permanent set of pattern-based decision rules used to match against the symbol table to identify syntactic structures
A complete or partial list of tokens as they appear in the source code, produced by lexical analysis and utilized during syntax analysis and interpretation
9.
What aspects must the Process Manager monitor during its operation?
the current state of every program
the priority levels assigned to each program
both the status and priority of programs
the support provided to programmers by the information management system
10.
What is the purpose of a base register table?
It denotes the control software components of an operating system.
It enables several programs to be loaded into distinct memory sections simultaneously.
It permits the programmer to specify base registers and offsets directly within the source code.
It keeps track of which general-purpose registers are designated as base registers and stores their corresponding base addresses.
Past Papers & Resources →
Language processors | PakQuizHub