Professional Documents
Culture Documents
SP MCQ
SP MCQ
Answer: Option D
A. Allocate space in memory for the programs and resolve symbolic references between object decks
C. Adjust all address dependent locations, such as address constants, to correspond to the allocated space
Answer: Option D
3. The advantage(s) of incorporating the macro processor into pass 1 is/ are:
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
Answer: Option D
4. In which addressing mode, the effective address of the operand is generated by adding a constant value to
the contents of register?
A. absolute mode
B. indirect mode
C. immediate mode
D. index mode
Answer: Option D
A. allows the programmer to write base registers and displacements explicitly in the source program.
B. is used to remember which of the general-purpose registers are currently available as base registers, and
what base addresses they contain.
C. allows multiple programs to reside in separate areas of core at the same time.
Answer: Option A
B. You can choose which recycle bin to use to store your deleted files
D. None of above
Answer: Option A
B. You can restore any files in recycle bin if you ever need
C. You can increase free space of disk by sending files in recycle bin
D. You can right click and choose Empty Recycle Bin to clean it at once
Answer: Option C
8. If the displayed system time and date is wrong, you can reset it using
A. Write
B. Calendar
C. Write file
D. Control panel
Answer: Option D
A. Viruses
B. Time bombs
C. Worms
Answer: Option D
12. In Operating Systems, which of the following is/are CPU scheduling algorithms?
a) Priority
b) Round Robin
c) Shortest Job First
d) All of the mentioned
Answer: d
13. To access the services of the operating system, the interface is provided by the ___________
a) Library
b) System calls
c) Assembly instructions
d) API
Answer: b
Answer: a
16. Which one of the following errors will be handle by the operating system?
a) lack of paper in printer
b) connection failure in the network
c) power failure
d) all of the mentioned
Answer: d
17. Which one of the following is not a real time operating system?
a) RTLinux
b) Palm OS
c) QNX
d) VxWorks
Answer: b
Answer: d
19. In operating system, each process has its own __________
a) open files
b) pending alarms, signals, and signal handlers
c) address space and global variables
d) all of the mentioned
Answer: d
20. In a timeshare operating system, when the time slot assigned to a process is completed, the process
switches from the current state to?
a) Suspended state
b) Terminated state
c) Ready state
d) Blocked state
Answer: c
UNIT-2 Assembler
1. __________ converts the programs written in assembly language into machine instructions.
a) Machine compiler
b) Interpreter
c) Assembler
d) Converter
Answer: c
2. The instructions like MOV or ADD are called as ______
a) OP-Code
b) Operators
c) Commands
d) None of the mentioned
Answer: a
Answer: b
4. Instructions which won’t appear in the object program are called as _____
a) Redundant instructions
b) Exceptions
c) Comments
d) Assembler Directives
Answer: d
5. The assembler directive EQU, when used in the instruction: Sum EQU 200 does ________
a) Finds the first occurrence of Sum and assigns value 200 to it
b) Replaces every occurrence of Sum with 200
c) Re-assigns the address of Sum by adding 200 to its original address
d) Assigns 200 bytes of memory starting the location of Sum
Answer: b
7. The directive used to perform initialization before the execution of the code is ______
a) Reserve
b) Store
c) Dataword
d) EQU
Answer: c
8. _____ directive is used to specify and assign the memory required for the block of code.
a) Allocate
b) Assign
c) Set
d) Reserve
Answer: d
Answer: b
Answer: d
11. When dealing with the branching code the assembler ___________
a) Replaces the target with its address
b) Does not replace until the test condition is satisfied
c) Finds the Branch offset and replaces the Branch target with it
d) Replaces the target with the value specified by the DATAWORD directive
Answer: c
12. The assembler stores all the names and their corresponding values in ______
a) Special purpose Register
b) Symbol Table
c) Value map Set
d) None of the mentioned
Answer: b
Answer: d
1. If a number of instructions are repeating through the main program, then to reduce the length of the
program, __________ is used.
a) procedure
b) subroutine
c) macro
d) none of the mentioned
Answer: c
7. Inserting the statements and instructions represented by macro, directly at the place of the macroname, in
the program, is known as
a) calling a macro
b) inserting a macro
c) initializing a macro
d) none of the mentioned
Answer: a
8. The time required for execution of a macro is ________ that of the procedure.
a) greater than
b) less than
c) equal to
d) none of the mentioned
Answer: b
What is a compiler?
a) system program that converts instructions to machine language
b) system program that converts machine language to high-level language
c) system program that writes instructions to perform
d) None of the mentioned
Answer: a
2. Which of the following is a stage of compiler design?
a) Semantic analysis
b) Intermediate code generator
c) Code generator
d) All of the mentioned
Answer: d
3. What is the use of a symbol table in compiler design?
a) Finding name’s scope
b) Type checking
c) Keeping all of the names of all entities in one place
d) All of the mentioned
Answer: d
Answer: d
Answer: a
19. An object module for a group of programs that were compiled separately is handed to a
linker. Which of the following about an object module isn’t true?
a) Relocation bits
b) Names and locations of all external symbols denied in the object module
c) Absolute addresses of internal symbols
d) Object code
Answer: c
20. Characters are grouped into tokens in which of the following phase of the compiler design?
a) Code generator
b) Lexical analyzer
c) Parser
d) Code optimization
Answer: b
UNIT-5
1. The major number identifies the _____ associated with the device.
a) driver
b) protocol
c) port
d) none of the mentioned
Answer: a
5. In we use a driver for N number of files, then we have to create ____ device files.
a) N
b) 1
c) N-1
d) None of the mentioned
Answer: a
6. If we use a driver for various device files, then
a) minor number will be different for every device file
b) minor number will be same for every device file
c) minor number can not be allocated for any device file
d) none of the mentioned
Answer: a
7. The connection between the device file and device driver is based on the
a) name of device file
b) number of device file
c) name & number of device file
d) none of the mentioned
Answer: b