0% found this document useful (0 votes)
203 views11 pages

Department of Computer Engineering.: Subject: System Programming and Operating System Class: TE

A two-pass assembler performs the following tasks in separate passes: 1) it allocates space for literals and builds the symbol table in the first pass, 2) it performs address resolution of local symbols and adds literals to the literal table in the second pass. An interpreter analyzes each source statement every time it is executed, whereas a compiler generates an object program from the source program.

Uploaded by

surendrarakshit
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
203 views11 pages

Department of Computer Engineering.: Subject: System Programming and Operating System Class: TE

A two-pass assembler performs the following tasks in separate passes: 1) it allocates space for literals and builds the symbol table in the first pass, 2) it performs address resolution of local symbols and adds literals to the literal table in the second pass. An interpreter analyzes each source statement every time it is executed, whereas a compiler generates an object program from the source program.

Uploaded by

surendrarakshit
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 11

Department of Computer Engineering.

Subject: System Programming and Operating System


Class: TE

1.In a two pass assembler the object code generation is done during the ?
a. Second pass
b. First pass
c. Zeroeth pass
d. Not done by assemble

2.Which of the following is not a type of assembler ?


a. one pass
b. two pass
c. three pass
d. load and g

3. In a two pass assembler, adding literals to literal table and address resolution of local
symbols are done using ?
a. First pass and second respectively
b. Both second pass
c. Second pass and first respectively
d. Both first pas

4.In a two pass assembler the pseudo code EQU is to be evaluated during ?
a. Pass 1
b. Pass 2
c. not evaluated by the assembler
d. None of above
5. Which of the following system program foregoes the production of object code to generate
absolute machine code and load it into the physical main storage location from which it will
be executed immediately upon completion of the assembly ?
a. Macro processor
b. Load and go assembler
c. Two pass assembler
d. Compile

6. Translator for low level programming language were termed as


a. Assembler
b. Compiler
c. Linker
d. Loader

7. An assembler is
a. programming language dependent
b. syntax dependant
c. machine dependant
d. data dependant

8. An imperative statement
a. Reserves areas of memory and associates names with them
b. Indicates an action to be performed during execution of assembled program
c. Indicates an action to be performed during optimization
d. None of the above

9. In a two-pass assembler, the task of the Pass II is to


a. separate the symbol, mnemonic opcode and operand fields.
b. build the symbol table.
c. construct intermediate code.
d. synthesize the target program
10. TII stands for
a. Table of incomplete instructions
b. Table of information instructions
c. Translation of instructions information
d. Translation of information instruction

11. Assembler is a machine dependent, because of?


a. Macro definition table(MDT)
b. Pseudo operation table(POT)
c. Argument list array(ALA)
d. Mnemonics operation table(MOT)

12. Assembler is ?
a. A program that places programs into memory an prepares them for execution
b. A program that automate the translation of assembly language into machine language
c. A program that accepts a program written in high level language and produces an object
program
d. Is a program that appears to execute a source program as if it were machine languag

13. Forward reference table(FRT) is arranged like ?


a. Stack
b. Queue
c. Linked list
d. Double linked list

14. Assembler is a program that


a. places programs into memory and prepares then for execution
b. automates the translation of assemble language into machine language
c. accepts a program written in a high level language and produces an object program
d. appears to execute a resource as if it were machine language
15. A single two pass assembler does which of the following in the first pass
a. It allocates space for the literals
b. It computes the total length of the program
c. It builds the symbol table for the symbols and their values
d. all of the above

16. Which of the following is not a function of pass1 of an assembler


a. generate data
b. keep track of LC
c. remember literals
d. remember values of symbols until pass 2

17. An Assembler converts


a. machine code to mnemonics
b. high level language to assembly level
c. assembly language to machine language
d. all of the above

18. ____ converts the programs written in assembly language into machine instructions .
a. Machine compiler
b. Interpreter
c. Assembler
d. Converter

19. The instructions like MOV or ADD are called as ______ .


a. OP-Code
b. Operators
c. Commands
d. None of the above
20. Instructions which wont appear in the object program are called as _____ .
a. Redundant instructions
b. Exceptions
c. Comments
d. Assembler Directive

21. A software is to be developed for a system which has a small memory. The software
should ?
a. use recursion wherever possible
b. avoid using recursion
c. Not use macros instead of functions
d. Both b and

22. The disadvantage of machine level programming is


a. time consuming
b. chances of error are more
c. debugging is difficult
d. all of the mention

23. The coded object modules of the program to be assembled are present in
a. .ASM file
b. .OBJ file
c. .EXE file
d. .OBJECT fil

24.The advantages of assembly level programming is


a. flexibility of programming is more
b. chances of error are less
c. debugging is easy
d. all of the mention
25. The extension that is essential for every assembly level program is
a. .ASP
b. .ALP
c. .ASM
d. .PG

26. The register that may be used as an operand register is


a. Accumulator
b. B register
c. Data register
d. Accumulator and B registe

27. The register that can be used as a scratch pad is


a. Accumulator
b. B register
c. Data register
d. Accumulator and B register

28. The registers that contains the status information is


a. control registers
b. instruction registers
c. program status word
d. all of the mention

29. Which of the processor’s stack does not contain the top-down data structure?
a. 8086
b. 80286
c. 8051
d. 8038
30. The architecture of 8051 consists of
a. 4 latches
b. 2 timer registers
c. 4 on-chip I/O ports
d. all of the mention

31. Non-modifiable procedures are called ?


a. concurrent procedures
b. serially usable procedures
c. re entrant procedures
d. top down procedure

32. The translator which perform macro expansion is called a


a. Macro processor
b. Macro pre-processor
c. Micro pre-processor
d. assemble
33. A macro definition consists of
a. A macro prototype statement
b. One or more model statements
c. Macro pre-processor statements
d. All of the above

34. A macro is
a. a small program inside a program
b. set of special instructions
c. a unit of specification for program generation through expansion
d. None of the above
35. A ________________ statement declare the name of macro.
a. macro prototype
b. macro definition
c. macro identification
d. None of the above

36. The linker ?


a. is same as the loader
b. is required to create a load module
c. is always used before programs are executed
d. None of above

37. A system program that combines the separately compiled modules of a program into a
form suitable for execution  ?
a. Assembler
b. Linking loader
c. Cross compiler
d. Load and G

38. Loading process can be divided into two separate programs, to solve some problems. The
first is binder the other is ?
a. Linkage editor
b. Module Loader
c. Relocator
d. None of these

39. Load address for the first word of the program is called
a. Linker address origin
b. Load address origin
c. phase library
d. Absolute library
40. A linker program
a. places the program in the memory for the purpose of execution.
b. relocates the program to execute from the specific memory area allocated to it.
c. links the program with other programs needed for its execution.
d. interfaces the program with the entities generating its input data

41. Consider a program with a linked origin of 5000. Let the memory area allocated to it have
the start address of 70000. Which among the following will be the value to be loaded in
relocation register?
a. 20000
b. 50000
c. 70000
d. None of the above

42. Resolution of externally defined symbols is performed by


a. Linker
b. Loader
c. Compiler
d. Editor

43. Relocatable programs


a. cannot be used with fixed partitions
b. can be loaded almost anywhere in memory
c. do not need a linker
d. can be loaded only at one specific location

44. Memory allocation involves which of the following task(s)


a. determine amount of memory required
b. use an appropriate memory allocation model
c. determine appropriate memory mapping
d. All of the above
45. Static memory allocation is typically performed during _____________.
a. compilation
b. execution
c. loading
d. linking

46. Indicate which of the following is not true about interpreter ?


a. Interpreter generate an object program from the source program
b. Interpreter analyses each source statement every time it is to be executed
c. Interpreter is a kind of translator
d. All of above

47. An interpreter is
a. A program that places programs into memory an prepares them for execution
b. A program that automate the translation of assembly language into machine language
c. A program that accepts a program written in high level language and produces an object
program
d. Is a program that appears to execute a source program as if it were machine language

48. An interpreter is a program that


a. places programs into memory and prepares then for execution
b. automates the translation of assemble language into machine language
c. accepts a program written in a high level language and produces an object program
d. appears to execute a resource as if it were machine language

49. A programmer, by mistakes writes a program to multiply two numbers instead of dividing
them, how can this error be detected
a. Compiler
b. Interpreter
c. Compiler or interpreter
d. None of the above
50. Indicate which of the following is not true about an interpreter?
a. Interpreter is a kind of translator
b. Interpreter generates an object program from the source program
c. Interpreter analyses each source statement every time it is to be executed
d. All of the above

You might also like