0

Compiler Design

Description: System Programming Design System Software and CompilersCompiler Design
Number of Questions: 30
Created by:
Tags: System Programming Design System Software and Compilers Compiler Design
Attempted 0/30 Correct 0 Score 0

Which indicates the address of the next instruction to be executed for this process?

  1. Processor status

  2. Program counter

  3. Accounting info

  4. Pointer

  5. Process number


Correct Option: B
Explanation:

It indicates the address of the next instruction to be executed for this process.

Which errors can occur when the program is typed onto cards?

  1. Transcription errors

  2. Syntactic errors

  3. Algorithmic errors

  4. Memory protection

  5. Dynamic errors


Correct Option: A
Explanation:

These errors can occur when the program is typed onto cards.

In which process state, there is a period when the process occupies space in the process table and has resources allocated to it but is not yet ready to run?

  1. Fork

  2. Ready

  3. Runnable

  4. Init

  5. Sched


Correct Option: D
Explanation:

There is a period when the process occupies space in the process table and has resources allocated to it but is not yet ready to run.

Which decides which of the ready, in memory processes are to be executed next following a clock interrupt, an IO interrupt and an operating system call?

  1. Process scheduling

  2. Medium term scheduler

  3. Short term scheduler

  4. Sched

  5. Runnable


Correct Option: C
Explanation:

It decides which of the ready, in memory processes are to be executed next following a clock interrupt, an IO interrupt and an operating system call.

In which operating system, if the calculation could not be performed for making the object available at the designated time, the operating system would terminate with a failure?

  1. Hard real time operating system

  2. Soft real time operating system

  3. Multi user operating system

  4. Multitasking oparting system

  5. Real time application


Correct Option: A
Explanation:

Here, if the calculation could not be performed for making the object available at the designated time, the operating system would terminate with a failure.

Which organization of symbol table includes two link fields, LEFT and RIGHT to each record?

  1. Hash table

  2. Tree

  3. Buckets

  4. Array

  5. Fixed length representation


Correct Option: B
Explanation:

Tree organization of symbol table include two link fields, LEFT and RIGHT to each record.

Which allocation corresponds to memory allocated via malloc() or operator new[]?

  1. Dynamic memory allocation

  2. Stack memory allocation

  3. Static memory allocation

  4. Memory leak

  5. Memory protection


Correct Option: A
Explanation:

It corresponds to memory allocated via malloc() or operator new[].

Which register always points to the start address of the TOS record?

  1. Block

  2. Activation record

  3. Activation base

  4. Pointer

  5. Accounting info


Correct Option: C
Explanation:

A register called the activation base always points to the start address of the TOS record.

Which are common usage of dynamically link libraries, especially useful when the libraries can be replaced by other libraries with a similar interface, but different functionality?

  1. Static library

  2. Plugins

  3. Binary object file

  4. Object code

  5. Linker


Correct Option: B
Explanation:

These are one common usage of dynamically linked libraries, especially useful when the libraries can be replaced by other libraries with a similar interface, but different functionality.

Which reads a fixed location on a disk and passes control over to it?

  1. Absolute loader

  2. Boot strap loader

  3. Binary object file

  4. Fixup table

  5. Linker


Correct Option: B
Explanation:

This loader reads a fixed location on a disk and passes control over to it.

In which bootstrapping, the simplest environment will be, perhaps, a very basic text editor and an assembler program?

  1. Software bootstrapping

  2. Compliler bootstrapping

  3. Absolute loader

  4. Linker

  5. Program loading


Correct Option: A
Explanation:

Here, the simplest environment will be, perhaps, a very basic text editor and an assembler program.

If the linked origin is 600, but the 600 memory location is occupied by some other programs then the loader generates its own address, it is called

  1. Translate origin

  2. Linked origin

  3. Library

  4. Load origin

  5. Fixup table


Correct Option: D
Explanation:

If the linked origin is 600, but the 600 the memory location is occupied by the some other programs then the loader generates its own address, it is called the load origin.

Which is the process of assigning load addresses to the various parts of the program, adjusting the code and data in the program to reflect the assigned addresses?

  1. Program loading

  2. Relocation

  3. Symbol resolution

  4. Stack memory allocation

  5. Static memory allocation


Correct Option: B
Explanation:

It is the process of assigning load addresses to the various parts o the program, adjusting the code and data in the program to reflect the assigned addresses.

Which intelx86 register is the universal loop counter, like variable i in high level lngauages?

  1. Intelx86 AX

  2. Intelx86 DX

  3. Intex86 SI

  4. Macro

  5. Intelx86 CX


Correct Option: E
Explanation:

It is the universal loop counter, like the variable i in high level languages.

Which permits only some byte code sequences in valid programs?

  1. Compiler

  2. Interpreter

  3. YACC

  4. Byte code verifier

  5. Compiler bootstrapping


Correct Option: D
Explanation:

It permits only some byte code sequences in valid programs.

Which supported a wide variety of macro facilities and structured programming idioms, including high level constructions for looping, procedures calls and alternation?

  1. MASM32 assembler

  2. SPARC assembler

  3. MASM assembler

  4. YACC

  5. The object code


Correct Option: C
Explanation:

It supported a wide variety of macro facilities and structured programming idioms, including high level constructions for looping, procedure calls and alternation.

Which table is used to store each label and its corresponding value?

  1. Location counter

  2. Machine operation table

  3. Literal table

  4. Symbol table

  5. Fixup table


Correct Option: D
Explanation:

It is used to store each label and its corresponding value.

Which is a binding performed before the execution of a program begins?

  1. Dynamic binding

  2. Memory binding

  3. Memory leak

  4. Stack memory allocation

  5. Static binding


Correct Option: E
Explanation:

It is a binding performed before the execution of a program begins.

Which is to make explicit the hierarchical structure of the of the incoming token stream by identifying which parts of the token stream should be grouped together?

  1. Lexical analysis

  2. Syntax analysis

  3. Compiler

  4. Code generation

  5. Byte code verifier


Correct Option: B
Explanation:

It is to make explicit the hierarchical structure of the incoming token stream by identifying which parts of the token stream should be grouped together.

Which source program is consisting of a set of regular expressions together with an action for each regular expression?

  1. YACC

  2. LEX

  3. LALR

  4. MASM32 assembler

  5. SPARC assembler


Correct Option: B
Explanation:

A LEX source program is consisting of a set of regular expressions together with an action for each regular expression.

Which is the gap between application domains and programming language domains?

  1. Language processor

  2. Execution gap

  3. Semantic gap

  4. Semantics

  5. Specification gap


Correct Option: E
Explanation:

It is the gap between the application domains and programming language domains.

In which grammars, productions permit arbitrary substitution of string during derivation or reduction, hence they are not relevant to specification of programming languages?

  1. Type-1 grammars

  2. Type-0 grammars

  3. Type-2 grammars

  4. Left regular grammars

  5. Right regular grammars


Correct Option: B
Explanation:

Their productions permit arbitrary substitution of string during derivation or reduction, hence they are not relevant to specification of programming languages.

Which rules associate meaning with valid statements of the language?

  1. Lexical rules

  2. Syntax rules

  3. Semantic rules

  4. Language translator

  5. Mnemonic operation codes


Correct Option: C
Explanation:

These rules associate meaning with valid statements of the language.

In which, none of whose productions contain two or more consecutive NTs in any RHS alternatives?

  1. Operator grammars

  2. Left regular grammars

  3. Type-1 grammars

  4. Right regular grammars

  5. Type-2 grammars


Correct Option: A
Explanation:

Here, none of whose productions contain two or more consecutive NTs in any RHS alternatives.

Which phase is concerned with the construction of target language statements which have the same meaning as a source statement?

  1. Lexical phase

  2. Parsing phase

  3. Synthesis phase

  4. Semantics

  5. Semantic gap


Correct Option: C
Explanation:

It is concerned with construction of target language statements which have the same meaning as a source statement.

Which work space is used prior to actual outputting for converting the assembled instructions into the format needed by the loader?

  1. PRINT LINE

  2. Location counter

  3. Machine operation table

  4. INST

  5. PUNCH CARD


Correct Option: E
Explanation:

This work space is used prior to actual outputting for converting the assembled instructions into the format needed by the loader.

Which table indicates the symbolic mnemonic and action to be taken for each pseudo-op in pass 1?

  1. MOT

  2. LC

  3. LT

  4. POT

  5. Symbolic operands


Correct Option: D
Explanation:

Pseudo operation table indicates the symbolic mnemonic and action to be taken for each pseudo-op in pass 1.

In which memory allocation, a program can allocate or deallocate memory at arbitrary points during its execution?

  1. Automatic dynamic memory allocation

  2. Static memory allocation

  3. Stack memory allocation

  4. Programmed controlled dynamic memory allocation

  5. Memeoy leak


Correct Option: D
Explanation:

Here, a program can allocate or deallocate memory at arbitrary points during its execution.

Which intex86 register is used for providing its value for PUSH, POP, CALL and RET instructions?

  1. Intex86 SP

  2. Intelx86 BP

  3. Intelx86 BX

  4. Intex86 SI

  5. Intex86 DX


Correct Option: A
Explanation:

This register is used for providing its value for PUSH, POP, CALL and RET instructions.

Which register makes data operations much more size efficient, with a single byte STOS instruction to write data out of the accumulator?

  1. Intelx86 SI

  2. Intex86 DI

  3. Intelx86 AX

  4. Intex86 DX

  5. Macro


Correct Option: B
Explanation:

This register makes data operations much more size efficient, with a single byte STOS instruction to write data out of the accumulator.

- Hide questions