logo

CuriousTab

CuriousTab

Discussion


Home Computer Science Language Processors Comments

  • Question
  • A compiler for a high-level language that runs on one machine and produces code for a different machine is called


  • Options
  • A. optimizing compiler
  • B. one pass compiler
  • C. cross compiler
  • D. multipass compiler

  • Correct Answer
  • cross compiler 


  • Language Processors problems


    Search Results


    • 1. Assembler is

    • Options
    • A. a program that automate the translation of assembly language into machine language
    • B. a program that accepts a program written in a high level language and produces an object program
    • C. a program that places programs into memory and prepares them for execution
    • D. is a program that appears to execute a source program as if it were machine language
    • Discuss
    • 2. In analyzing the compilation of PL/I program, the term "Syntax analysis" is associated with

    • Options
    • A. recognition of basic syntactic constructs through reductions
    • B. recognition of basic elements and creation of uniform symbols
    • C. creation of more optional matrix
    • D. use of macro processor to produce more optimal assembly code
    • Discuss
    • 3. Job Control Language (JCL) statements are Used to

    • Options
    • A. Read the input from the slow-speed card reader to the high-speed magnetic disk
    • B. Specify, to the operating system, the beginning and end of a job in a batch
    • C. Allocate the CPU to a job
    • D. All of the above
    • Discuss
    • 4. A development stategy whereby the executive control modules of a system are coded and tested first, is known as

    • Options
    • A. Bottom-up development
    • B. Top-down development
    • C. Left-Right development
    • D. All of the above
    • Discuss
    • 5. The advantage(s) of incorporating the macro processor into pass 1 is/ are:

    • Options
    • A. many functions do not have to be implemented twice
    • B. Functions are combined and it is not necessary to create intermediate files as output from the macro processor and input to the assembler
    • C. more flexibility is available to the programmer in which he/she may use all the features of the assembler in conjunction with macros
    • D. All of the above
    • Discuss
    • 6. Assembly code data base is associated with

    • Options
    • A. a permanent table which lists all key words and special symbols of the language in symbolic form
    • B. a permanent table of decision rules in the form of patterns for matching with the uniform symbol table to discover syntactic structure
    • C. 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
    • D. assembly language version of the program which is created by the code generation phase and is input to the assembly phase
    • Discuss
    • 7. A non-relocatable program is one which

    • Options
    • A. 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
    • B. consists of a program and relevant information for its relocation
    • C. can itself perform the relocation of its address-sensitive portions
    • D. All Of the above
    • Discuss
    • 8. Convert the 11014B machine language instructions into assembly language, assuming that they were not generated by pseudo-ops:

    • Options
    • A. ASRA
    • B. LOADA h#OD4E, i
    • C. STOREA h#014B, d
    • D. ADDA h#01FE, i
    • Discuss
    • 9. Terminal Table

    • Options
    • A. a permanent table which lists all key words and special symbols of the language in symbolic form
    • B. a permanent table of decision rules in the form of patterns for matching with the uniform symbol table to discover syntactic structure
    • C. consists of a full or partial list of the tokens as they appear in the program. Created by Lexical analysis and used for syntax analysis and interpretation
    • D. contains all constants in the program
    • Discuss
    • 10. Convert the ASLA assembly language instructions into hexadecimal machine language:

    • Options
    • A. 0111EF
    • B. 9001E6
    • C. DA000F
    • D. 40
    • Discuss


    Comments

    There are no comments.

Enter a new Comment