Syntax-Directed Definitions and Translations

Question 1
Marks : +2 | -2
Pass Ratio : 100%
Assembly code data base is associated with ___________
Code is converted into assembly
Table of rules in the form of patterns for matching with the uniform symbol table to discover syntactic structure
All of the mentioned
None of the mentioned
Explanation:
An assembly language is a low-level programming language for a computer, or other programmable device, in which there is a very strong (generally one-to-one) correspondence between the language and the architecture’s machine code instructions.
Question 2
Marks : +2 | -2
Pass Ratio : 100%
The segment base is specified using the register named is?
ORG instructions
TITLE instruction
ASSUME instruction
SEGMENT instruction
Explanation:
ORG segment base register is used to specify the register.
Question 3
Marks : +2 | -2
Pass Ratio : 100%
Software that measures, monitors, and controls events are ___________
System S/w
Real Time software
Scientific software
Business Software
Explanation:
In computer science, real-time computing (RTC), or reactive computing describes hardware and software systems subject to a “real-time constraint”, for example operational deadlines from event to system response.
Question 4
Marks : +2 | -2
Pass Ratio : 100%
If E be a shifting operation applied to a function f, such that E(f) = f (x +β ), then?
E (αf+β g) = α E(f) +β E (g)
E (αf +β g ) =. ( α+ β ) + E (f + g)
E (αf +β g ) = α E (f+gβ)
E (αf +β g ) = αβ E (f + g)
Explanation:
Shifting operation when performed gives this result.
Question 5
Marks : +2 | -2
Pass Ratio : 100%
Which of the following functions is performed by loader?
Allocate memory for the programs and resolve symbolic references between objects decks
Address dependent locations, such as address constants, to correspond to the allocated space
Physically place the machine instructions and data into memory
All of the mentioned
Explanation:
A loader is the part of an operating system that is responsible for loading programs and libraries.
Question 6
Marks : +2 | -2
Pass Ratio : 100%
Pass I ______________
Assign address to all statements
Save the values assigned to all labels for use in pass 2
Perform some processing
All of the mentioned
Explanation:
The pass 1 of a compiler the above mentioned functions are performed
Question 7
Marks : +2 | -2
Pass Ratio : 100%
In a single pass assembler, most of the forward references can be avoided by putting the restriction ___________
On the number of strings/life reacts
Code segment to be defined after data segment
On unconditional rump
None of the mentioned
Explanation:
A single pass assembler scans the program only once and creates the equivalent binary program.
Question 8
Marks : +2 | -2
Pass Ratio : 100%
In what module multiple instances of execution will yield the same result even if one instance has not terminated before the next one has begun?
Non usable module
Serially usable
Re-enter-able
None of the mentioned
Explanation:
Re enter-able module is the reason why the compiler is used in the first place.
Question 9
Marks : +2 | -2
Pass Ratio : 100%
Which one of the following is the tightest upper bound that represents the time complexity of inserting an object into a binary search tree of n nodes?
O(1)
O(long)
O(n)
O(long)
Explanation:
For skewed binary search tree on n nodes, the upper bound to insert a node is O (n).
Question 10
Marks : +2 | -2
Pass Ratio : 100%
Dividing a project into segments and smaller units in order to simplify design and programming efforts is called?
Modular approach
Top down approach
Bottom up approach
Left right approach
Explanation:
Modular design, or “modularity in design”, is a design approach that subdivides a system into smaller parts called modules or skids that can be independently created and then used in different systems.