set-5

201. The advantage(s) of incorporating the macro processor into Pass 1 is (are):

  1. Many functions do not have to be implemented twice

  2. Functions are combined and it is not necessary to create intermediate files as output from the macro processor and input to the assembler

  3. More flexibility is available to the programmer in that he may use all the features of the assembler in conjunction with macros

  4. All of the above

Show me the answer

Answer: 4. All of the above

Explanation:

  • Macro Processor in Pass 1: Integrating the macro processor into Pass 1 simplifies the assembly process, avoids redundant functions, and provides greater flexibility.

  • Conclusion: Combining the macro processor with Pass 1 offers multiple advantages.

202. The macro processor must perform:

  1. Recognize macro definitions and macro calls

  2. Save the macro definitions

  3. Expand macro calls and substitute arguments

  4. All of the above

Show me the answer

Answer: 4. All of the above

Explanation:

  • Macro Processor Tasks: The macro processor identifies macros, saves their definitions, and expands macro calls with appropriate arguments.

  • Conclusion: The macro processor performs all these tasks.

203. In which way(s) a macro processor for assembly language can be implemented:

  1. Independent two-pass processor

  2. Independent one-pass processor

  3. Processor incorporated into Pass 1 of a standard two-pass assembler

  4. All of the above

Show me the answer

Answer: 4. All of the above

Explanation:

  • Macro Processor Implementation: A macro processor can be implemented as a standalone two-pass or one-pass processor or integrated into Pass 1 of an assembler.

  • Conclusion: All three implementation methods are valid.

204. Which of the following functions is(are) performed by the loader?

  1. Allocate space in memory for the programs and resolve symbolic references between object decks

  2. Adjust all address-dependent locations, such as address constants, to correspond to the allocated space

  3. Physically place the machine instructions and data into memory

  4. All of the above

Show me the answer

Answer: 4. All of the above

Explanation:

  • Loader Functions: The loader allocates memory, resolves references, adjusts addresses, and loads instructions and data into memory.

  • Conclusion: The loader performs all these tasks.

205. When a computer is first turned on or restarted, a special type of absolute loader is executed, called a:

  1. “Compile and Go” loader

  2. Bootstrap loader

  3. Boot loader

  4. Relating loader

Show me the answer

Answer: 2. Bootstrap loader

Explanation:

  • Bootstrap Loader: The bootstrap loader is a small program that loads the operating system into memory when the computer is started or restarted.

  • Conclusion: The bootstrap loader initializes the system.

206. In MS-DOS 5.0, which is the number that acts as a code to uniquely identify the software?

  1. MS

  2. DOS

  3. MS DOS

  4. 5.0

Show me the answer

Answer: 4. 5.0

Explanation:

  • Version Number: The version number (5.0) uniquely identifies the specific release of MS-DOS.

  • Conclusion: The version number acts as a unique identifier.

207. The higher versions of the operating systems are so written that programs designed for earlier versions can still be run. What is it called?

  1. Upgradability

  2. Universality

  3. Upward mobility

  4. Upward compatibility

Show me the answer

Answer: 4. Upward compatibility

Explanation:

  • Upward Compatibility: Upward compatibility ensures that programs written for earlier versions of an operating system can run on newer versions.

  • Conclusion: This feature is called upward compatibility.

208. What is the name of the process of initializing a microcomputer with its operating system?

  1. Cold booting

  2. Warm booting

  3. Booting

  4. Root recording

Show me the answer

Answer: 3. Booting

Explanation:

  • Booting: Booting is the process of starting a computer and loading the operating system into memory.

  • Conclusion: The process is called booting.

209. A hardware device that is capable of executing a sequence of instructions is known as:

  1. CPU

  2. ALU

  3. CU

  4. Processor

Show me the answer

Answer: 4. Processor

Explanation:

  • Processor: A processor is a hardware device that executes instructions in a sequence.

  • Conclusion: The processor is responsible for executing instructions.

210. The function(s) performed by the paging software is(are):

  1. Implementation of the access environment for all programs in the system

  2. Management of the physical address space

  3. Sharing and protection

  4. All of the above

Show me the answer

Answer: 4. All of the above

Explanation:

  • Paging Software: Paging software manages memory access, physical address space, and provides sharing and protection mechanisms.

  • Conclusion: Paging software performs all these functions.

211. The file level is a descriptor containing all the information which would be required:

  1. To connect the file to a program

  2. To guard against the destruction of the file inadvertently or deliberately by another program

  3. To facilitate easy creation, storage, and access of files

  4. Both (A) and (B)

Show me the answer

Answer: 4. Both (A) and (B)

Explanation:

  • File Level Descriptor: The file level descriptor contains information needed to connect files to programs and protect them from unauthorized access.

  • Conclusion: It serves both connection and protection purposes.

212. The task(s) of the lexical analysis phase is(are):

  1. To parse the source program into the language

  2. To build a literal table and an identifier table

  3. To build a uniform symbol table

  4. All of the above

Show me the answer

Answer: 4. All of the above

Explanation:

  • Lexical Analysis: The lexical analysis phase parses the source program, builds tables for literals and identifiers, and creates a uniform symbol table.

  • Conclusion: Lexical analysis performs all these tasks.

213. Which is a permanent database in the general model of a compiler?

  1. Literal Table

  2. Terminal Table

  3. Identifier Table

  4. Source code

Show me the answer

Answer: 2. Terminal Table

Explanation:

  • Terminal Table: The terminal table is a permanent database in a compiler that stores terminal symbols (e.g., keywords, operators).

  • Conclusion: The terminal table is a permanent part of the compiler.

214. Which table is a permanent database that has an entry for each terminal symbol?

  1. Terminal Table

  2. Identifier Table

  3. Literal Table

  4. Reductions

Show me the answer

Answer: 1. Terminal Table

Explanation:

  • Terminal Table: The terminal table contains entries for all terminal symbols in the language.

  • Conclusion: It is a permanent database for terminal symbols.

215. While running DOS on a PC, which command would be used to duplicate the entire diskette?

  1. COPY

  2. CHKDSK

  3. DISKCOPY

  4. TYPE

Show me the answer

Answer: 3. DISKCOPY

Explanation:

  • DISKCOPY: The DISKCOPY command is used to duplicate the contents of one diskette to another.

  • Conclusion: DISKCOPY is used for disk duplication.

216. Which of the following filename extensions suggests that the file is a backup copy of another file?

  1. TXT

  2. COM

  3. BAS

  4. BAK

Show me the answer

Answer: 4. BAK

Explanation:

  • BAK Extension: The .BAK extension is commonly used to indicate backup files.

  • Conclusion: Files with the .BAK extension are typically backups.

217. While working with MS-DOS, which command will you use to transfer a specific file from one disk to another?

  1. DISKCOPY

  2. RENAME

  3. COPY

  4. FORMAT

Show me the answer

Answer: 3. COPY

Explanation:

  • COPY Command: The COPY command is used to transfer files between disks.

  • Conclusion: COPY is used for file transfer.

218. With MS-DOS, which command will divide the surface of the blank floppy disk into sectors and assign a unique address to each one?

  1. FORMAT command

  2. VER command

  3. FAT command

  4. CHKDSK command

Show me the answer

Answer: 1. FORMAT command

Explanation:

  • FORMAT Command: The FORMAT command prepares a blank disk by dividing it into sectors and assigning addresses.

  • Conclusion: FORMAT is used to initialize disks.

219. The functions of the Storage Assignment is(are):

  1. To assign storage to all variables referenced in the source program

  2. To assign storage to all temporary locations that are necessary for intermediate results

  3. To assign storage to literals, and to ensure that the storage is allocated and appropriate locations are initialized

  4. All of the above

Show me the answer

Answer: 4. All of the above

Explanation:

  • Storage Assignment: Storage assignment allocates memory for variables, temporary locations, and literals, ensuring proper initialization.

  • Conclusion: It performs all these functions.

220. A non-relocatable program is one which:

  1. Cannot be made to execute in any area of storage other than the one designated for it at the time of its coding or translation

  2. Consists of a program and relevant information for its relocation

  3. Can itself perform the relocation of its address-sensitive portions

  4. All of the above

Show me the answer

Answer: 1. Cannot be made to execute in any area of storage other than the one designated for it at the time of its coding or translation

Explanation:

  • Non-Relocatable Program: A non-relocatable program is tied to a specific memory location and cannot be moved without modification.

  • Conclusion: It is fixed to a designated memory area.

221. A relocatable program form is one which:

  1. Cannot be made to execute in any area of storage other than the one designated for it at the time of its coding or translation

  2. Consists of a program and relevant information for its relocation

  3. Can itself perform the relocation of its address-sensitive portions

  4. All of the above

Show me the answer

Answer: 2. Consists of a program and relevant information for its relocation

Explanation:

  • Relocatable Program: A relocatable program includes information that allows it to be loaded into different memory locations.

  • Conclusion: It contains relocation information.

222. A self-relocating program is one which:

  1. Cannot be made to execute in any area of storage other than the one designated for it at the time of its coding or translation

  2. Consists of a program and relevant information for its relocation

  3. Can itself perform the relocation of its address-sensitive portions

  4. All of the above

Show me the answer

Answer: 3. Can itself perform the relocation of its address-sensitive portions

Explanation:

  • Self-Relocating Program: A self-relocating program can adjust its address-sensitive portions to execute in different memory locations.

  • Conclusion: It can relocate itself.

223. The term "operating system" means:

  1. A set of programs which controls computer working

  2. The way a computer operator works

  3. Conversion of high-level language into machine code

  4. The way a floppy disk drive operates

Show me the answer

Answer: 1. A set of programs which controls computer working

Explanation:

  • Operating System: The operating system is a set of programs that manage hardware and software resources and provide common services for computer programs.

  • Conclusion: It controls computer operations.

224. Which of the following software types is used to simplify using system software?

  1. Spreadsheet

  2. Timesharing

  3. Operating environment

  4. Multitasking

Show me the answer

Answer: 3. Operating environment

Explanation:

  • Operating Environment: An operating environment simplifies the use of system software by providing a user-friendly interface and tools.

  • Conclusion: It enhances usability.

225. Which of the following is not applications software?

  1. Word processing

  2. UNIX

  3. Spreadsheet

  4. Desktop publishing

Show me the answer

Answer: 2. UNIX

Explanation:

  • UNIX: UNIX is an operating system, not an application software.

  • Conclusion: UNIX is system software.

226. Which of the following types of software should you use if you often need to create, edit, and print documents?

  1. Word processing

  2. UNIX

  3. Spreadsheet

  4. Desktop publishing

Show me the answer

Answer: 1. Word processing

Explanation:

  • Word Processing: Word processing software is designed for creating, editing, and printing documents.

  • Conclusion: It is the best choice for document handling.

227. Which of the following will determine your choice of systems software for your computer?

  1. Is the applications software you want to use compatible with it?

  2. Is it expensive?

  3. Is it compatible with your hardware?

  4. Both (A) and (C)

Show me the answer

Answer: 4. Both (A) and (C)

Explanation:

  • Systems Software Selection: The choice of systems software depends on compatibility with both applications software and hardware.

  • Conclusion: Both factors are important.

228. Terminal Table:

  1. Contains all constants in the program

  2. A permanent table of decision rules in the form of patterns for matching with the uniform symbol table to discover syntactic structure

  3. Consists of a full or partial list of the token’s as they appear in the program. Created by lexical analysis and used for syntax analysis and interpretation

  4. A permanent table which lists all key words and special symbols of the language in symbolic form

Show me the answer

Answer: 4. A permanent table which lists all key words and special symbols of the language in symbolic form

Explanation:

  • Terminal Table: The terminal table stores keywords and special symbols in symbolic form.

  • Conclusion: It is a permanent part of the compiler.

229. Assembly code database is associated with:

  1. Assembly language version of the program which is created by the code generation phase and is input to the assembly phase

  2. A permanent table of decision rules in the form of patterns for matching with the uniform symbol table to discover syntactic structure

  3. Consists of a full or partial list of the token’s as they appear in the program. Created by lexical analysis and used for syntax analysis and interpretation

  4. A permanent table which lists all key words and special symbols of the language in symbolic form

Show me the answer

Answer: 1. Assembly language version of the program which is created by the code generation phase and is input to the assembly phase

Explanation:

  • Assembly Code Database: The assembly code database stores the assembly language version of the program generated during code generation.

  • Conclusion: It is used as input to the assembly phase.

230. The table created by lexical analysis to describe all literals used in the source program is:

  1. Terminal Table

  2. Identifier Table

  3. Literal Table

  4. Reductions

Show me the answer

Answer: 3. Literal Table

Explanation:

  • Literal Table: The literal table stores all literals (constants) used in the source program.

  • Conclusion: It is created during lexical analysis.

231. The functions of the syntax phase are:

  1. To recognize the major constructs of the language and to call the appropriate action routines that will generate the intermediate form or matrix for these constructs

  2. To build a literal table and an identifier table

  3. To build a uniform symbol table

  4. To parse the source program into the basic elements or tokens of the language

Show me the answer

Answer: 1. To recognize the major constructs of the language and to call the appropriate action routines that will generate the intermediate form or matrix for these constructs

Explanation:

  • Syntax Phase: The syntax phase identifies language constructs and generates intermediate representations.

  • Conclusion: It focuses on language structure.

232. In an absolute loading scheme, which loader function is accomplished by the assembler?

  1. Reallocation

  2. Linking

  3. Allocation

  4. Loading

Show me the answer

Answer: 1. Reallocation

Explanation:

  • Absolute Loading: In absolute loading, the assembler performs reallocation to adjust addresses.

  • Conclusion: Reallocation is handled by the assembler.

233. In an absolute loading scheme, which loader function is accomplished by the loader?

  1. Reallocation

  2. Linking

  3. Allocation

  4. Loading

Show me the answer

Answer: 4. Loading

Explanation:

  • Loader Function: The loader loads the program into memory.

  • Conclusion: Loading is the primary function of the loader.

234. The advantages inherent to using high-level language are:

  1. Fewer people, less management, and shorter transition in learning time

  2. Improved debugging capability, and superior documentation

  3. A greater degree of machine independence

  4. All of the above

Show me the answer

Answer: 4. All of the above

Explanation:

  • High-Level Language Advantages: High-level languages offer easier learning, better debugging, and machine independence.

  • Conclusion: They provide multiple benefits.

235. The action of parsing the source program into the proper syntactic classes is known as:

  1. Syntax analysis

  2. Interpretation

  3. Lexical analysis

  4. General syntax analysis

Show me the answer

Answer: 1. Syntax analysis

Explanation:

  • Syntax Analysis: Syntax analysis parses the source program into syntactic constructs.

  • Conclusion: It is part of the compilation process.

236. In analyzing the compilation of a PL/I program, the term “Lexical analysis” is associated with:

  1. Recognition of basic syntactic constructs through reductions

  2. Recognition of basic elements and creation of uniform symbols

  3. Creation of more optional matrix

  4. Use of macro processor to produce more optimal assembly code

Show me the answer

Answer: 2. Recognition of basic elements and creation of uniform symbols

Explanation:

  • Lexical Analysis: Lexical analysis identifies basic elements (tokens) and creates uniform symbols.

  • Conclusion: It is the first phase of compilation.

237. In analyzing the compilation of a PL/I program, the term “Machine independent optimization” is associated with:

  1. Recognition of basic syntactic constructs through reductions

  2. Recognition of basic elements and creation of uniform symbols

  3. Creation of more optional matrix

  4. Use of macro processor to produce more optimal assembly code

Show me the answer

Answer: 3. Creation of more optional matrix

Explanation:

  • Machine Independent Optimization: This phase optimizes the intermediate code without considering the target machine.

  • Conclusion: It focuses on code optimization.

238. In analyzing the compilation of a PL/I program, the description “resolving symbolic address (labels) and generating machine language” is associated with:

  1. Assembly and output

  2. Storage assignment

  3. Code generation

  4. Syntax analysis

Show me the answer

Answer: 1. Assembly and output

Explanation:

  • Assembly and Output: This phase resolves symbolic addresses and generates machine code.

  • Conclusion: It is part of the final compilation stages.

239. In analyzing the compilation of a PL/I program, the description “creation of more optimal matrix” is associated with:

  1. Assembly and output

  2. Syntax analysis

  3. Code generation

  4. Machine independent optimization

Show me the answer

Answer: 4. Machine independent optimization

Explanation:

  • Machine Independent Optimization: This phase creates optimized intermediate code.

  • Conclusion: It improves code efficiency.

240. Which of the following is not a part of the operating system?

  1. Supervisor

  2. Job-control program

  3. Performance monitor

  4. Input/output control program

Show me the answer

Answer: 3. Performance monitor

Explanation:

  • Performance Monitor: A performance monitor is a utility tool, not a core part of the operating system.

  • Conclusion: It is external to the OS.

241. Which of the following is not an advantage of multiprogramming?

  1. Increased throughput

  2. Shorter response time

  3. Decreased operating system overhead

  4. Ability to assign priorities to jobs

Show me the answer

Answer: 3. Decreased operating system overhead

Explanation:

  • Multiprogramming Overhead: Multiprogramming increases system overhead due to process management and context switching.

  • Conclusion: It does not decrease overhead.

242. In which addressing mode the contents of a register specified in the instruction are first decremented, and then these contents are used as the effective address of the operands?

  1. Index addressing

  2. Auto increment

  3. Indirect addressing

  4. Auto decrement

Show me the answer

Answer: 4. Auto decrement

Explanation:

  • Auto Decrement: In auto decrement addressing, the register value is decremented before being used as the effective address.

  • Conclusion: It is a type of addressing mode.

243. In which addressing mode, the effective address of the operand is generated by adding a constant value to the contents of a register?

  1. Absolute mode

  2. Immediate mode

  3. Indirect mode

  4. Index mode

Show me the answer

Answer: 4. Index mode

Explanation:

  • Index Addressing: Index addressing adds a constant to a register value to compute the effective address.

  • Conclusion: It is used for array access.

244. In what modules, multiple instances of execution will yield the same result even if one instance has not terminated before the next one has begun?

  1. Non-reusable module

  2. Reentrant module

  3. Serially reusable module

  4. Recursive module

Show me the answer

Answer: 2. Reentrant module

Explanation:

  • Reentrant Module: A reentrant module can be safely interrupted and re-entered, producing consistent results.

  • Conclusion: It supports concurrent execution.

245. What is the name given to all the programs inside the computer which makes it usable?

  1. Application software

  2. Firmware

  3. System software

  4. Shareware

Show me the answer

Answer: 3. System software

Explanation:

  • System Software: System software includes the operating system and utilities that make the computer usable.

  • Conclusion: It is essential for computer operation.

246. A translator which reads an entire program written in a high-level language and converts it into machine language code is:

  1. Assembler

  2. Compiler

  3. Translator

  4. System software

Show me the answer

Answer: 2. Compiler

Explanation:

  • Compiler: A compiler translates high-level language code into machine language.

  • Conclusion: It is a type of translator.

247. Which of the following is helpful in evaluating applications software that will best suit your needs?

  1. Recommendations by other users

  2. Objective software reviews

  3. Computer magazines

  4. All of the above

Show me the answer

Answer: 4. All of the above

Explanation:

  • Evaluating Software: Recommendations, reviews, and magazines provide valuable insights for selecting software.

  • Conclusion: All are useful for evaluation.

248. If you want to execute more than one program at a time, the system software you are using must be capable of:

  1. Word processing

  2. Compiling

  3. Virtual memory

  4. Multitasking

Show me the answer

Answer: 4. Multitasking

Explanation:

  • Multitasking: Multitasking allows multiple programs to run concurrently.

  • Conclusion: It is essential for concurrent execution.

249. Which of the following types of software must you have in main memory in order to use your keyboard?

  1. Word processing

  2. Spreadsheet

  3. System

  4. Applications

Show me the answer

Answer: 3. System

Explanation:

  • System Software: System software, including the operating system, is required to manage hardware like the keyboard.

  • Conclusion: It is essential for hardware interaction.

250. Which of the following might be used to convert high-level language instructions into machine language?

  1. System software

  2. An operating environment

  3. Application software

  4. An interpreter

Show me the answer

Answer: 4. An interpreter

Explanation:

  • Interpreter: An interpreter converts high-level language instructions into machine language on-the-fly.

  • Conclusion: It is used for language translation.

Last updated