

MCQOPTIONS
Saved Bookmarks
This section includes 1698 Mcqs, each offering curated multiple-choice questions to sharpen your General Awareness knowledge and support exam preparation. Choose a topic below to get started.
101. |
Which of the following type of software should be used if you need to create,edit and print document ? |
A. | Word processing |
B. | Spreadsheet |
C. | Desktop publishing |
D. | UNIX |
Answer» B. Spreadsheet | |
102. |
Which of the following can be used as a criterion for classification of data structures used in language processing. |
A. | Nature of a data structure |
B. | Purpose of a data structure |
C. | Lifetime of a data structure |
D. | All of the above |
Answer» E. | |
103. |
Parsing is also known as ? |
A. | Lexical analysis |
B. | Syntax analysis |
C. | Semantic analysis |
D. | Code generation |
Answer» C. Semantic analysis | |
104. |
Predictive parser can be ? |
A. | Recursive |
B. | Constructive |
C. | Non recursive |
D. | Both a and b |
Answer» B. Constructive | |
105. |
Pick the machine independent phase of the compiler ? |
A. | Syntax analysis |
B. | Lexical analysis |
C. | Intermediate code generation |
D. | All of the above |
Answer» E. | |
106. |
A Compiler has . phases ? |
A. | 7 |
B. | 5 |
C. | 6 |
D. | 8 |
Answer» E. | |
107. |
Type checking is normally done during ? |
A. | Lexical analysis |
B. | Syntax analysis |
C. | Syntax directed translation |
D. | Code generation |
Answer» D. Code generation | |
108. |
Functions of Lexical analyzer are ? |
A. | Removing white space |
B. | Removing constants, identifiers and keywords |
C. | Removing comments |
D. | All of above |
Answer» E. | |
109. |
Yacc resolves conflicts by of type ? |
A. | Reduce - Reduce |
B. | Shift - Reduce |
C. | Shift - Shift |
D. | Both a and b |
Answer» E. | |
110. |
The following features are needed to implement top down parsing |
A. | Source string marker |
B. | Prediction making mechanism |
C. | Matching and Backtracking mechanism |
D. | All of the above |
Answer» E. | |
111. |
An analysis, which determines the syntactic structure of the source statement, is called |
A. | Sementic analysis |
B. | Process analysis |
C. | Syntax analysis |
D. | Function analysis |
Answer» D. Function analysis | |
112. |
Recognition of basic syntactic constructs through reductions, this task is performed by |
A. | Lexical analysis |
B. | Syntax analysis |
C. | Semantic analysis |
D. | Structure analysis |
Answer» C. Semantic analysis | |
113. |
Which of the following derivation a top-down parser use while parsing an input string? The input is assumed to be scanned in left to right order ? |
A. | Leftmost derivation |
B. | Leftmost derivation traced out in reverse |
C. | Rightmost derivation |
D. | Rightmost derivation traced out in reverse |
Answer» B. Leftmost derivation traced out in reverse | |
114. |
The error that can be pointed out by the compiler are |
A. | Syntax errors |
B. | Semantic errors |
C. | Logical errors |
D. | Internal errors |
Answer» B. Semantic errors | |
115. |
The time required for execution of a macro is that of procedure. |
A. | Greater than |
B. | Less than |
C. | Equal to |
D. | None of the mentioned |
Answer» C. Equal to | |
116. |
Macro processor is an inbuilt function of |
A. | Assembler |
B. | Loader |
C. | Linker |
D. | Editor |
Answer» B. Loader | |
117. |
What are x and y in the following macro definition? macro Add x, y Load y Mul x Store y end macro |
A. | Variables |
B. | Identifiers |
C. | Formal parameters |
D. | Actual parameters |
Answer» D. Actual parameters | |
118. |
What is the value of X printed by the following program ? program COMPUTE ( input, output ); var X : integer ; procedure FIND ( X: real ) ; begin X : = sqrt ( X ) ; end ; begin X : = 2 FIND(X);
|
A. | N |
B. | 2 |
C. | Run-time error |
Answer» C. Run-time error | |
119. |
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» D. None of the mentioned | |
120. |
In a syntax directed translation scheme,if values of an attribute of a node is a function of the
|
A. | Canonical attribute |
B. | Synthesized attribute |
C. | Inherited attribute |
D. | None of these |
Answer» C. Inherited attribute | |
121. |
In statement After last mark enter -1 in COMAL programming language, rogue value is |
A. | -1 |
B. | Last |
C. | Mark |
D. | After |
Answer» B. Last | |
122. |
Statement 130 num(subs) = 2*subs-1 is an example of |
A. | Array in BASIC |
B. | Array in PASCAL |
C. | Array in COMAL |
D. | Array in COBOL |
Answer» B. Array in PASCAL | |
123. |
In line 100 INPUT NUM of a BASIC program, NUM is if chosen by programmer is classified as |
A. | Identifier |
B. | Exponents |
C. | Real constants |
D. | Reserved variable |
Answer» B. Exponents | |
124. |
Programs that coordinate all of the computer s resources including memory, processing, storage, and
|
A. | Language translators |
B. | Resources |
C. | Applications |
D. | Interfaces |
Answer» C. Applications | |
125. |
The object code is then passed through a program called a ___________ which turns it into
|
A. | Integer |
B. | Source code |
C. | Linker |
D. | None of the above |
Answer» D. None of the above | |
126. |
Action implementing instruction s meaning are a actually carried out by |
A. | Instruction fetch |
B. | Instruction decode |
C. | Instruction execution |
D. | Instruction program |
Answer» D. Instruction program | |
127. |
Specialized programs that allow particular input or output devices to communicate with the rest of
|
A. | Operating systems |
B. | Utilities |
C. | Device drivers |
D. | Language translators |
Answer» D. Language translators | |
128. |
Programs that coordinate computer resources, provide an interface between users and the computer,
|
A. | Utilities |
B. | Operating systems |
C. | Device drivers |
D. | Language translators |
Answer» C. Device drivers | |
129. |
In order for a computer to understand a program, it must be converted into machine language by
|
A. | Operating system |
B. | Utility |
C. | Device driver |
D. | Language translator |
Answer» E. | |
130. |
Also known as a service program, this type of program performs specific tasks related to managing
|
A. | Utility |
B. | Operating system |
C. | Language translator |
D. | Device driver |
Answer» B. Operating system | |
131. |
A Language L is defined by L={xn yn |n>1} . Which of the following definitions generates the same
|
A. | E->xEy | xy |
B. | (xy)|(xxyy) |
C. | X-y |
D. | All of these |
Answer» B. (xy)|(xxyy) | |
132. |
In operator precedence parsing, precedence relations are defined |
A. | To delimit the handle |
B. | For all pair of terminals |
C. | For all pair of non-terminals |
D. | None of these |
Answer» D. None of these | |
133. |
pass 1 |
A. | Assign address to all statements in the program |
B. | Save the values assigned to all labels for use in pass 2 |
C. | Perform some processing of assembler directives |
D. | All of these |
Answer» E. | |
134. |
Which of the following is a phase of a compilation process ? |
A. | Lexical analysis |
B. | Code generation |
C. | Both (a) and (b) |
D. | None of these |
Answer» D. None of these | |
135. |
Forward reference table(FRT) is arranged like |
A. | Stack |
B. | Queue |
C. | Linked list |
D. | Double linked list |
Answer» D. Double linked list | |
136. |
Pass 2 |
A. | Assemble instruction and generate data |
B. | Perform processing of assembler directions not done during pass 1 |
C. | Write the object program and the assembly listing |
D. | All of these |
Answer» E. | |
137. |
Let ( Z,* ) be an algebraic structure, where Z is set of integers and the operation * is defined by n * m =maximum ( n , m ) Which of the following statements is true for ( Z, * ) ? |
A. | ( Z,* ) is a group |
B. | ( Z,* ) is a monoid |
C. | ( Z,* ) is an algebraic group |
D. | None of these |
Answer» E. | |
138. |
Substitution of values for names whose values are constant, is done in |
A. | Constant folding |
B. | Loop optimization |
C. | Local optimization |
D. | None of these |
Answer» B. Loop optimization | |
139. |
An individual token is called ________. |
A. | Lexeme |
B. | Lex |
C. | Both of the mentioned |
D. | None of the mentioned |
Answer» B. Lex | |
140. |
Lexical Analysis Identifies Different Lexical Units in a _______. |
A. | Source Code |
B. | Object Code |
C. | Lexeme |
D. | None of the mentioned |
Answer» B. Object Code | |
141. |
Which one is a type of Lexeme ? |
A. | Identifiers |
B. | Constants |
C. | Keywords |
D. | All of the mentioned |
Answer» E. | |
142. |
A________ is a string of characters which form a syntactic unit. |
A. | Lexeme |
B. | Lex |
C. | None of the mentioned |
D. | Both of the mentioned |
Answer» B. Lex | |
143. |
When expression sum=3+2 is tokenized then what is the token category of 3 ? |
A. | Identifier |
B. | Assignment operator |
C. | Integer Literal |
D. | Addition Operator |
Answer» D. Addition Operator | |
144. |
The task of the logical analysis phase is |
A. | To parse the source program into the basic elements or token of the language |
B. | To build the literal table and an identifier table |
C. | To build a uniform symbol table |
D. | All of the above |
Answer» B. To build the literal table and an identifier table | |
145. |
Pick the machine independent pahse of the compiler |
A. | Syntax analysis |
B. | Lexical analysis |
C. | Intermediate code generation |
D. | All of the above |
Answer» E. | |
146. |
The bottom up parser generates |
A. | Right most derivation |
B. | Right most derivation in reverse |
C. | Left most derivation |
D. | Left most derivation in reverse |
Answer» C. Left most derivation | |
147. |
The top down parser generates |
A. | Right most derivation |
B. | Right most derivation in reverse |
C. | Left most derivation |
D. | Left most derivation in reverse |
Answer» D. Left most derivation in reverse | |
148. |
Input to code generator is |
A. | Source code |
B. | Intermediate code |
C. | Target code |
D. | All of the above |
Answer» C. Target code | |
149. |
Local and loop optimization in turn provide motivation for |
A. | Data flow analysis |
B. | Constant folding |
C. | Pee hole optimization |
D. | DFA and constant folding |
Answer» B. Constant folding | |
150. |
_________or scanning is the process where the stream of characters making up the source program is read from left to right and grouped into tokens. |
A. | Lexical analysis |
B. | Diversion |
C. | Modeling |
D. | None of the above |
Answer» B. Diversion | |