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 of the following temporarily removes processes from main memory and places them on secondary memory?

  1. Process scheduling

  2. Long term scheduler

  3. Medium term scheduler

  4. Scheduled state

  5. Process


Correct Option: C
Explanation:

It temporarily removes processes from main memory and places them on secondary memory.

Type of incompatibilities between operators and operands, and between formal and actual parameters are another common source of ___________.

  1. Semantic errors

  2. Reporting errors

  3. Algorithmic errors

  4. Coding errors

  5. Transcription errors


Correct Option: A
Explanation:

Type incompatibilities between operator and operands, and between formal and actual parameters are another common source of semantic errors.

A process is brought into existence by some other process executing the __________.

  1. init

  2. fork

  3. ready

  4. runnable

  5. accounting info


Correct Option: B
Explanation:

A process is brought into existence by some other process executing the fork() function.

Which of the following is suitable in situations where one has enormous amount of data to quickly search and retrieve information?

  1. Compiler symbol table

  2. Hash tables

  3. Buckets

  4. Arrays

  5. Fixed length representation


Correct Option: B
Explanation:

Yes, this is the correct answer.

Which memory allocation corresponds to non static local variables and call by value parameter variables?

  1. Statically allocated variables

  2. Dynamic memory allocations

  3. Stack memory allocations

  4. Block

  5. Program controlled dynamic memory allocation


Correct Option: C
Explanation:

These memory allocations correspond to non static local variables and call by value parameter variables.

Which of the following is an operating system utility that copies programs from a storage device to main memory, where they can be executed?

  1. linker

  2. relocation

  3. object file program

  4. loader

  5. new()


Correct Option: D
Explanation:

It is an operating system utility that copies programs from a storage device to main memory, where they can be executed.

Which of the following can also refer to the development of successively more complex, faster programming environments?

  1. Software bootstraping

  2. Compiler bootstraping

  3. Reloaction

  4. Plugins

  5. Processor status


Correct Option: A
Explanation:

It can also refer to the development of successively more complex, faster programming environments.

Which of the following is the address specified by the programmer using origin statement?

  1. Linked origin

  2. Library

  3. Loading

  4. Linking

  5. Translated origin


Correct Option: E
Explanation:

This is the address specified by the programmer using origin statement.

Which intelx86 register holds the location of the input data stream?

  1. Intex86 DI

  2. Intex86 SI

  3. Intelx86 BX

  4. Intex86 CX

  5. Macro name


Correct Option: B
Explanation:

The source index holds the location of the input data stream.

In which register do all the major calculations take place in EAX making it similar to a dedicated intelx86 accumulator register?

  1. Intex86 AX

  2. Intelx86 CX

  3. Intex86 BX

  4. Intex86 DI

  5. Macro


Correct Option: A
Explanation:

Here, all the major calculations take place in EAX making it similar to a dedicated intex86 accumulator register.

Which of the following reads the source program one character at a time, carving the source program into a sequence of atomic units called token?

  1. Syntax analyzer

  2. Intermediate code generation

  3. Code generation

  4. Byte code verifier

  5. Lexical analyzer


Correct Option: E
Explanation:

It reads the source program one character at a time, carving the source program into a sequence of atomic units called tokens.

Which of the following is an open set of technical specifications that any person or company can license and use to develop microprocessor and other semiconductor based device on published industry standard?

  1. SPARC assembler

  2. MASM assembler

  3. Interpreter

  4. Compiler

  5. Byte code verifier


Correct Option: A
Explanation:

It is an open set of technical specifications that any person or company can license and use to develop microprocessors and other semiconductor devices based on published industry standards.

Which of the following are used in machine instructions and eliminates the need to memorize numeric operation codes?

  1. Symbolic operand

  2. Data declaration

  3. Mnemonic operation codes

  4. Macro

  5. Local symbols


Correct Option: C
Explanation:

Mnemonic operation codes are used in machine instructions and eliminates the need to memorize numeric operation codes.

Which of the following indicates the symbolic mnemonic for each instruction and its length(two, four or six bytes)?

  1. Machine operation table

  2. Symbol table

  3. Location counter

  4. Pseudo operation table

  5. Symbolic operand


Correct Option: A
Explanation:

It indicates the symbolic mnemonic for each instruction and its length(two, four or six bytes).

Which of the following allows a user to specify a possibly ambiguous grammer along with precedence and associativity information about operators?

  1. Lex

  2. Yacc

  3. MASM assembler

  4. Syntax analyzer

  5. Byte code verifier


Correct Option: B
Explanation:

It allows a user to specify a possibly ambiguous grammer along with precedence and associativity information about operators.

Which of the following is a binding performed after the execution of a program has begun?

  1. Dynamic binding

  2. Static binding

  3. Code generation

  4. Relocation

  5. Memory binding


Correct Option: A
Explanation:

It is a binding performed after the execution of a program has begun.

Which of the following identifies the sequence of actions necessary to implement the meaning of a source statement?

  1. Lexical analysis

  2. Semantic analysis

  3. Syntax analysis

  4. Phase

  5. Pass


Correct Option: B
Explanation:

It identifies the sequence of actions necessary to implement the meaning of a source statement.

Which of the following governs the formation of valid statements in the source language?

  1. Syntax rules

  2. Lexical rules

  3. Semantic rules

  4. Language processing

  5. Pass


Correct Option: A
Explanation:

It governs the formation of valid statements in the source language.

Which of the following grammars impose no context requirement on derivations or reductions?

  1. Operator grammars

  2. Left linear grammar

  3. Type-2 grammar

  4. Right linear grammar

  5. Binding


Correct Option: C
Explanation:

This grammar impose no context requirement on derivations or reductions.

Which of the following is a data structure that contains all the information about a process within an operation system?

  1. Process control block

  2. Process management

  3. Process

  4. Accounting info

  5. Process number


Correct Option: A
Explanation:

It is a data structure that contains all the information about a process within an operation system.

Which of the following is a gap between the semantics of programs, written in different programming languages?

  1. Semantics

  2. Semantic gap

  3. Specification gap

  4. Execution gap

  5. Language processor


Correct Option: D
Explanation:

It is the gap between the semantics of programs, written in different programming languages.

Which of the following is used to store numbers, constants, differences encountered and their corresponding assignment locations?

  1. Symbol table

  2. Literal table

  3. Location counter

  4. Pseudo operation table

  5. Symbolic operands


Correct Option: B
Explanation:

It is used to store numbers, constants, differences encountered and their corresponding assignment locations.

Which of the following grammars production specifies that derivation or reduction of strings can take place only in specific contexts?

  1. Left linear grammar

  2. Operator grammar

  3. Type-1 grammar

  4. Right regular grammar

  5. Binding


Correct Option: C
Explanation:

This grammar production specifies that derivation or reduction of strings can take place only in specific contexts.

In which operating system would the assembly line continue to function but the production output might be lower as objects failed to appear at their designated time, causing the robot to be temporarily unproductive?

  1. Multiuser operating system

  2. Multitasking operating system

  3. Real time application

  4. Soft real time operating system

  5. Memory protection


Correct Option: D
Explanation:

Here, the assembly line would continue to function but the production output might be lower as objects failed to appear their designated time, causing the robot to be temporarily unproductive.

Which of the following has been designed to look familiar to a programmer, who has already written API based code in Windows?

  1. MASM32 assembler

  2. MASM assembler

  3. Yacc

  4. Interpreter

  5. Byte code verifier


Correct Option: A
Explanation:

It has been designed to look familiar to a programmer who has already written API based code in windows.

Which of the following registers holds the location of the current stack frame?

  1. Intelx86 BX

  2. Intelx86 SP

  3. Intelx86 BP

  4. Intelx86 CX

  5. Macro


Correct Option: C
Explanation:

It holds the location of current stack frame.

Which of the following is an extension to the accumulator and useful for storing data related to the accumulator's current calculation?

  1. Intelx86 CX

  2. Intelx86 DX

  3. Intex86 BX

  4. Intelx86 DI

  5. Macro


Correct Option: B
Explanation:

It is an extension to the accumulator and useful for storing data related to the accumulator's current calculation.

Which of the following is a collection of object files that contains library routines and data?

  1. Static library

  2. Shared library

  3. Plugins

  4. Relocation

  5. Program loading


Correct Option: A
Explanation:

It is a collection of object files, which contains library routines and data.

Which of the following is a particular kind of unintentional memory consumption by a computer program, where the program fails to release memory when no longer needed?

  1. Dynamic memory allocation

  2. Static memory allocation

  3. Relocation

  4. Memory binding

  5. Memory leak


Correct Option: E
Explanation:

It is a particular kind of unintentional memory consumption by a computer program where the program fails to release memory when no longer needed.

Missing right paranthesis, extraneous comma, colon in place of semicolon, misspelled keyword and an extra blank are the examples of __________.

  1. algorithmic errors

  2. dynamic errors

  3. transcription errors

  4. syntaxtical errors

  5. reporting errors


Correct Option: D
Explanation:

Missing right parenthesis, extraneous comma, colon in place of semicolon, misspelled keywords and extra blank are the example of Syntaxtical errors.

- Hide questions