Department of Computer Engineering.: Subject: System Programming and Operating System Class: TE
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
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
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
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
18. ____ converts the programs written in assembly language into machine instructions .
a. Machine compiler
b. Interpreter
c. Assembler
d. Converter
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
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
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
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
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
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
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