Menu Close

TYBCS SysPro MCQs Chapter 3: Assembler

tybcs_syspro_mcqs

TYBCS SysPro MCQs Chapter 3

These questions are practice questions. This is not meant to be a Question Bank. I can not guarantee whether or not any of these question will appear on the test. What I can do say is this will surely help in remembering key points and will give a general idea on how you should go on about solving MCQs in the upcoming test.

So without further ado, lets get started with TYBCS SYSPRO Chapter 3 MCQs i.e. Assemblers.

TYBCS SYSPRO Chapter 3 MCQs

  1. In a two pass assembler object code generation is done during the

    A. First pass.
    B. Second pass.
    C. In both passes.
    D. Object code is not generated.

  2. In a two pass assembler, adding literals to literal table and address resolution of local symbols are done

    A. in first pass and second pass respectively.
    B. both in second pass.
    C. in second pass and first pass respectively.
    D. both in first pass.

  3. In a two pass assembler, the assembler directive EQU is to be evaluated during

    A. pass 1.
    B. pass 2.
    C. not required to be evaluated.
    D. assembler directive EQU doesn’t exist.

  4. In a two pass assembler the task of pass 2 is to

    A. separate the symbol, mnemonic opcode and operand fields.
    B. build the symbol table.
    C. construct the intermediate code.
    D. synthesize the target program.

  5. An imperative statement

    A. reserves area of memory and associates names with them.
    B. indicates action to be performed during execution of assembled program.
    C. indicates action to be performed during optimization.
    D. none of the above.

  6. “TII” stands for

    A. table of incomplete instructions.
    B. table of information instructions.
    C. translation of information instructions.
    D. translation of instruction information.

  7. Instructions which wont appear in the target program are called as

    A. redundant instructions.
    B. exceptions.
    C. imperative instructions.
    D. assembler directives.

  8. The assembler stores all the names and their corresponding addresses in

    A. special purpose register.
    B. symbol table.
    C. value map set.
    D. general purpose registers.

  9. Forward referencing problem can be solved in single pass assembler using

    A. table of incomplete instructions.
    B. table of intermediate instructions.
    C. table of instructions incomplete.
    D. table of instructions intermediate.

  10. Table of incomplete instructions is used in ____________ assembler to avoid the problem of forward references.

    A. Single pass.
    B. Multi pass.
    C. Two pass.
    D. Any of the above.

  11. Which of the following assembler directive assigns addresses to all literals in current pool ?

    A. LTORG
    B. ORG
    C. START
    D. LITADDR

  12. Intermediate code using which variant leads to unbalanced pass structure of the assembler ?

    A. variant 2
    B. variant 1
    C. variant 1 and variant 2
    D. none of the above.

  13. __________ converts programs written in assembly language into machine level language

    A. Compiler
    B. Linker
    C. Assembler
    D. Loader

  14. The assembler directive EQU, when used in the instruction: Sum EQU 200 does ________

    A. finds first occurrence of Sum and assigns 200 value to it.
    B. replaces every occurrences of Sum with 200.
    C. assigns 200 bytes of memory to Sum.
    D. none of the above.

  15. The purpose of ORIGIN directive is

    A. To indicate the purpose of the code
    B. To list the locations of all the registers used.
    C. To indicate the starting of the computation code.
    D. To indicate the starting position in memory, where the program block is to be stored.

  16. Which of the following is not a function of pass 1 of an assembler ?

    A. generate data.
    B. keep track of LC.
    C. remember literals.
    D. remember values of symbols.

  17. Assembly language is often termed as?

    A. low-level language
    B. middle-level language.
    C. high-level language.
    D. None of the above.

  18. An assembly language program is a series of statements, which are either assembly language instructions such as ADD and MOV, or statements called?

    A. Functions.
    B. Files.
    C. Directives.
    D. Program.

  19. Which directive is used to indicate the beginning of the address?

    A. ORG
    B. EQU
    C. END
    D. START

  20. Labels in Assembly Language, The first character should be in alphabetical character; it cannot be a number.

    A. True
    B. False
    C. Can not say.
    D. Can be true or false.

TYBCS SysPro MCQs Chapter 3 is now done i.e. the chapter Assemblers. I am planning on doing all chapters of this subject at least and will post further chapters that are in the syllabus very soon.

Also , check out MCQs based on Chapter 1 here : TYBCS System Programming Practice MCQs

Check out MCQs on chapter 2 here : TYBCS SysPro MCQs Chapter 2: Practice Questions

Site used for some reference : System Programming MCQs | T4Tutorials.com

2 Comments

  1. Pingback:TYBCS SysPro MCQs Chapter 2: Practice Questions - wintrysphere

  2. Pingback:TYBCS System Programming Practice MCQs - wintrysphere

Leave a Reply

Your email address will not be published. Required fields are marked *