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


Do You Like This? Please take 5 seconds to share with your firends.

0 comments:

Post a Comment