Professional Documents
Culture Documents
2 Locations For 'A' and 1 Location For 'B'
2 Locations For 'A' and 1 Location For 'B'
Refer the
below sample assembly code? *
437
>>>440
>>>442
444
Macro calls are identified and expanded in Pass 1 of two pass Macro
preprocessor[True/False] *
>>>False
True
Which of the different design options are suitable to design macro preprocessor? *
>>All of these
Macro assembler
When memory is allocated to Literals in hypothetical assembler design? *
>>>At LTORG
None of these
After END
>>>Nested Macro
Inherited Macro
Inbuilt Macro
When expression sum=3+2 is tokenized then what is the token category of 3 *
Identifier
Addition Operator
>>>Integer Literal
DC
END
LTORG
>>>DS
If you compare Macro and function w.r.t the size of the program which one of the following
is correct? *
Macros increase the size of the program and function increases the size of the program
>>Macros increase the size of the program and function does not increases the size of the
program
Macros doesn't increase the size of the program and function increases the size of the
program
LTORG L
LTORG 200
>>LTORG
200 LTORG
Which errors will be reported by pass-I of assembler? Solve the below problem for error
reporting. *
Invalid mnemonic
Invalid literal
What are the tasks to be carried out by Pass-I of two pass hypothetical assembler? *
· >>Pseudo equ code eval,,,,,”” Separate the symbol, mnemonic opcode and operand
fields.
· Determine the storage-required foe every assembly language statement and update the
location counter.
· Build the symbol table and the literal table.
· Construct the intermediate code for every assembly language statement.
””
code execution
literal processing
symbol management
Pass1, Macro-preprocessor
>>Pass1, Assembler
Pass2, Macro-preprocessor
Pass2, Assembler
Consider sample assembly program: Which memory address will be allocated to SUB
instruction in below example? *
311
>>>310
202
201
What is a pass? *
Identify all the correct macro call statement for the following macro? *
INCR A, B, K1=C
>>INCR A, K1=C, B
INCR K2=20, B, A
>>>>>>Semantic analysis
Lexical Phase
Code optimization
Syntax analysis
In following list which statements are used for reserving memory for variables *
>>>>>Declaration statements
Imperative statement
Assembler Directives
>>>Forward referencing
Backward referencing
Back patching
A model statements
All of these
None of these
MOVER AREG, C
MOVER AREG, A
@@Semantic expansion
>>Macro expansion
Macro call
@@Lexical substitution
parser
>>>lexical analyzer
developer
analyst
None of these
In the second pass, assembler creates _______in binary format for each instruction in
program then refers to the symbol table to giving every symbol an______ relating the
segment. *
>>READ
END
BC
STOP
None of these
>>Load module
Linkage editor
Module loader
Multiple data segments and multiple procedure segments are handled by what kind of
loader? *
Assemble-and-go loader
Absolute loader
Relocating loader
Data
>>>Bootstrap program
Code
Stack
For Direct Linking Loader, information about external symbols such as Relative location
and length is maintained by an assembler in ----- type of card *
END
>>>>RLD
>>>Linker
Compiler
Assembler
Relocating loader
>>>Absolute loader
Compile-and-go loader
Relocating loader
For the following set of processes, with CPU burst given in milliseconds: Use RR
scheduling algorithm and calculate waiting time. What is the waiting time for process B? *
>>3 ms
5 ms
0 ms
4 ms
For the following set of processes, with CPU burst given in milliseconds:: What is average
turnaround time of SJF (Non preemptive) algorithm? *
4 ms
3 ms
>>0 ms
>>>5 ms
Assume a group of 'm' tasks to be run on single processor system with known runtimes
R1, R2,... Rn. Which of the following CPU scheduling strategies produces the most
throughput? *
Round-Robin
>>Shortest-Job-First
First-Come-First-Served
Highest-Response-Ratio-Next
Open files
>>>All of these
Relocation and linking related information is maintained in what type of card in the design
of direct linking loader? *
TXT card
END card
>>>RLD card
ESD card
Which of statements below is correct? (I) Shortest remaining time first scheduling may
result in starvation (II) Preemptive scheduling may result in starvation (III) response time
with round robin is better than FCFS *
I only
Non-preemptive scheduling
>>>Preemptive scheduling
Which of the following is TRUE about Shortest Job First CPU Scheduling algorithm? R1: It
results in the shortest average waiting time. R2: It has potential to cause starvation *
Only R2
>>>Both R1 and R2
Neither R1 nor R2
Only R1
What type of details are held in ESD cards of direct linking loader *
All symbols which are defined in code that may be referenced outside the program & all
symbols referenced in this code but defined outside.
Which system calls are used to spawn a process (Creation + loading/execution with
desired executable) *
wait()
Only exec()
Only fork()
exit()
Which of the following function is accomplished by an Absolute loader? *
Allocation
Loading
Linking
ISOLinux
Grub
Object code
Assembly Program
Microkernel
Nanokernel
Exokernel
>>>Monolithic
>>>Long term
Medium term
None of these
Short term
Relocation
Linking
Memory allocation
Loading
What is the use of EXTRN Psudo op ? *
None of these
To declare the symbols which are defined locally and can be used in other subroutines
>>>To declare the symbols which are externally defined in other subroutines
The part of the process dispatcher in the operating system that allocates processes
involves *
Relocation mask
>>>>Relocation bits
Length of program
Transfer vector
What is the use of ENTRY statement in the design of direct linking loaders? *
To define the internal variables which can be used by another programs outside the program