Showing posts with label System Software And Compiler. Show all posts
Showing posts with label System Software And Compiler. Show all posts

System Software And Compiler Design Mcq Questions And Answers

Multiple choice and objective type questions on System software and compiler design
1) Which of the following system software resides in the main memory always ?
  1. Text editor
  2. Assembler
  3. Linker
  4. Loader
Show/Hide Answer
Answer = D 
Explanation: Loader is a part of operating system that is used for loading programs.
2) A software is to be developed for a system which has a small memory. The software should ?
  1. use recursion wherever possible
  2. avoid using recursion
  3. use macros instead of functions
  4. Not use macros instead of functions
  5. B and D
Show/Hide Answer
Answer =E

3) In a two pass assembler the pseudo code EQU is to be evaluated during ?
  1. Pass 1
  2. Pass 2
  3. not evaluated by the assembler
  4. None of above
Show/Hide Answer
Answer = A 
4) Producer consumer problem can be solved using ?
  1. semaphores
  2. event counters
  3. monitors
  4. all of above
  5. none of above
Show/Hide Answer
Answer = D 

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 ?
  1. Macro processor
  2. Load and go assembler
  3. Two pass assembler
  4. Compiler
  5. None of above
Show/Hide Answer
Answer = B 

6)  What is bootstraping?
  1. A language interpreting other language program
  2. A language compiling other language program
  3. A language compile itself
  4. All of above
Show/Hide Answer
Answer = C 

7) Indicate which of the following is not true about interpreter ?
  1. Interpreter generate an object program from the source program
  2. Interpreter analyses each source statement every time it is to be executed
  3. Interpreter is a kind of translator
  4. All of above
  5. None of above
Show/Hide Answer
Answer = A 
8) Functions of Lexical analyzer are  ?
  1. Removing white space
  2. Removing constants, identifiers and keywords
  3. Removing comments
  4. All of above
Show/Hide Answer
Answer = D 

9) Bottom up parsing involves ?
  1. Shift reduce
  2. Handle pruning
  3. Operator check
  4. A and B
Show/Hide Answer
Answer =  D

10) Yacc resolves conflicts by of type ?
  1. Reduce - Reduce
  2. Shift reduce
  3. Shift - Shift
  4. A and B
Show/Hide Answer
Answer =  D
read more...

Objective Type Question On System Software And Compiler - Set 3

Following are the multiple choice questions on System Software and Compiler with answers based on the UGC-NET, TET Exams, and all other competitive exams.
  


1) In a two pass assembler, adding literals to literal table and address resolution of local symbols are done using ?
  1. First pass and second respectively
  2. Both second pass
  3. Second pass and first respectively
  4. Both first pass
Show/Hide Answer
Answer = D  
Explanation: A two pass assembler does two passes over the source file ( the second pass can be over a file generated in the first pass ). In the first pass all it does is looks for label definitions and introduces them in the symbol table. In the second pass, after the symbol table is complete, it does the actual assembly by translating the operations and so on.

2) In Two pass assembler the object code generation is done during the  ?
  1. Second pass
  2. First pass
  3. Zeroeth pass
  4. Not done by assembler
Show/Hide Answer
Answer = A 
Explanation:  On the second pass, the assembler:
• Examines the operands for symbolic references to storage locations and resolves these symbolic references using information in the symbol table.
• Ensures that no instructions contain an invalid instruction form.
• Translates source statements into machine code and constants, thus filling the allocated space with object code.
• Produces a file containing error messages, if any have occurred.

3) Pick the machine independent phase of the compiler ?
  1. Syntax analysis
  2. Code generation
  3. Lexical analysis
  4. Intermediate code generation
  5. A,C and D
Show/Hide Answer
Answer = E 
Explanation:Machine independent phases are Lexical analysis, Syntax analysis, Semantic analysis, Intermediate code generation and sometime code optimization. Machine dependent phases are code generation and code optimization.

4) A system program that combines the separately compiled modules of a program into a form suitable for execution  ?
  1. Assembler
  2. Linking loader
  3. Cross compiler
  4. Load and Go
  5. None of above
Show/Hide Answer
Answer = B 
Explanation: No Explanation

5) Which of the following type of software should be used if you need to create,edit and print document  ?
  1. Word processing
  2. Spreadsheet
  3. Desktop publishing
  4. UNIX
  5. None of above
Show/Hide Answer
Answer = A 
Explanation: Application software such as word processors (e.g. MS Word, LibreOffice) and layout applications (e.g. Adobe InDesign, Quark Express) are used for ths purpose.

6) Output file of the Lex is ....... is the input file is Myfile ?
  1. Myfile.e
  2. Myfile.yy.c
  3. Myfile.lex
  4. Myfile.obj
Show/Hide Answer
Answer = B 
Explanation: This Produce the file "myfile.yy.c", which we can then compile with g++
7) Type checking is normally done during ?
  1. Lexical analysis
  2. Syntax analysis
  3. Syntax directed translation
  4. Code generation
Show/Hide Answer
Answer = C 
Explanation: No Explanation

8)  yacc is available as a command on the  ?
  1. MINIX
  2. UNIX
  3. DOS
  4. None of above
Show/Hide Answer
Answer = B 
Explanation: No Explanation 
9)  Loading process can be divided into two separate programs, to solve some problems. The first is binder the other is ?
  1. Linkage editor
  2. Module Loader
  3. Relocator
  4. None of these
Show/Hide Answer
Answer = B
Explanation:No Explanation

10) In Lex, a class is complemented by first placing  ?
  1. ^
  2. OR
  3. -
  4. NOT
Show/Hide Answer
Answer = A 
Explanation:  No Explanation 
Tags : Operating system multiple choice questions with answers, System Software MCQs, Objective type questions on System Software with answers, Objective type questions on System Software, Quiz questions on System Software and compiler, System Software MCQ, Multiple choice questions On System Software and compiler design, UGC-NET test preperation, TET Exam preparation, Questions for computer teacher eligibility test
read more...

Multiple Choice Questions On System Software And Compiler - Set 2

Following are the multiple choice questions on System Software and Compiler with answers based on the UGC-NET, TET Exams, and all other competitive exams.
 
1) Which of the following is not a feature of compiler ?
  1. Scans the entire program first and then translate it into machine code
  2. When all the syntax errors are removed execution takes place
  3. slow for debugging
  4. Execution time is more
Show/Hide Answer
Answer = D 
Explanation:  No Explanation 
2) Parsing is also known as ?
  1. Lexical analysis
  2. Syntax analysis
  3. Semantic analysis
  4. Code generation
Show/Hide Answer
Answer = B 
Explanation:No  Explanation 
3) The linker ?
  1. is same as the loader
  2. is required to create a load module
  3. is always used before programs are executed
  4. None of above
Show/Hide Answer
Answer = B 
Explanation: No Explanation 
4) Predictive parsers can be ?
  1. Recursive
  2. Constructive
  3. Non recursive
  4. Both A and B
Show/Hide Answer
Answer =  A
Explanation: No Explanation 
5) Producer consumer problem can be solved using ?
  1. semaphores
  2. event counters
  3. monitors
  4. All of above
  5. None of above
Show/Hide Answer
Answer = D 
Explanation: No Explanation 

6) Bottom up parsing involves ?
  1. shift reduce
  2. Handle pruning
  3. Operator check
  4. A & B
Show/Hide Answer
Answer = D 
Explanation:No Explanation 
7) An example of intermediate language is ?
  1. SNOBOL
  2. PASCAL
  3. COBOL
  4. UNCOL
Show/Hide Answer
Answer = D 
Explanation: No Explanation 
8) In a two pass assembler the object code generation is done during the ?
  1. Second pass
  2. First pass
  3. Zeroeth pass
  4. Not done by assembler
Show/Hide Answer
Answer = A 
Explanation: No Explanation 
9) A programming language is to be designed to run on a machine that does not have a big memory. The language should ?
  1. prefer a 2 pass compiler to a 1 pass compiler
  2. prefer a 1 pass compiler to a 2 pass compiler
  3. prefer an interpreter to a compiler
  4. Not support recursion
  5. A, C, D
Show/Hide Answer
Answer = E  
Explanation: No Explanation 
10) Which of the following system software resides in main memory always ?
  1. Text editor
  2. Assembler
  3. Linker
  4. Loader
Show/Hide Answer
Answer = D 
Explanation:No Explanation 

Tags : Operating system multiple choice questions with answers, System Software MCQs, Objective type questions on System Software with answers, Objective type questions on System Software, Quiz questions on System Software and compiler, System Software MCQ, Multiple choice questions On System Software and compiler design, UGC-NET test preperation, TET Exam preparation, Questions for computer teacher eligibility test
read more...

Multiple Choice Questions On System Software And Compiler - Set 1

Following are the multiple choice questions on System Software and Compiler with answers based on the UGC-NET syllabus

1) In which addressing mode the operand is given explicitly in the instruction ?
  1. Absolute mode
  2. Immediate mode
  3. Indirect mode
  4. Index mode
  5. None of these
Show/Hide Answer
Answer = B
Explanation: In Immediate addressing mode operand is directly found from the instruction. No memory address is required to read the operand.
2) Which of the following is not true ?
  1. UGL doesn't support high level seven interaction
  2. Many database management system package support 4GLs
  3. All of above
  4. None of above
Show/Hide Answer
Answer = A 
Explanation: No Explanation


3)  Nonmodifiable procedures are called ?
  1. concurrent procedures
  2. serially usable procedures
  3. reentrant procedures
  4. topdown procedures
  5. None of above
Show/Hide Answer
Answer = B 
Explanation: No Explanation

4) Which of the following is not a type of assembler ?
  1. one pass
  2. two pass
  3. three pass
  4. load and go
Show/Hide Answer
Answer = C 
Explanation: No Explanation 
5) Daisy chain is a device for ?
  1. Interconnecting a number of devices to number of controllers
  2. Connecting a number of devices to a controller
  3. Connecting a number of controller to devices
  4. All of above
  5. None of above
Show/Hide Answer
Answer = B
 Explanation: No Explanation 
6) Input of Lex is ?
  1. set to regular expression
  2. statement
  3. Numeric data
  4. ASCII data
Show/Hide Answer
Answer =  A
Explanation: No Explanation
7) Yacc semantic action is a sequence of ?
  1. Tokens
  2. Expression
  3. C statement
  4. Rules
Show/Hide Answer
Answer = C
Explanation: No Explanation 
8) Which of the following software tool is parser generator ?
  1. Lex
  2. Yacc
  3. Both A and B
  4. None of these
Show/Hide Answer
Answer = B 
Explanation: No Explanation 
9) A Lex compiler generates ?
  1. Lex object code
  2. Transition tables
  3. C Tokens
  4. None of above
Show/Hide Answer
Answer = B 
Explanation: No Explanation 
10) A Compiler has ....... phases ?
  1. 7
  2. 6
  3. 8
  4. None of above
Show/Hide Answer
Answer = C 
Explanation: No Explanation 
Tags : Operating system multiple choice questions with answers, System Software MCQs, Objective type questions on  System  Software with answers, Objective type questions on System Software, Quiz questions on System Software and compiler, System Software MCQ, Multiple choice questions On System Software and compiler design, UGC-NET test preperation, Computer subjects quiz
read more...