set-5
201. The advantage(s) of incorporating the macro processor into Pass 1 is (are):
- Many functions do not have to be implemented twice
- Functions are combined and it is not necessary to create intermediate files as output from the macro processor and input to the assembler
- More flexibility is available to the programmer in that he may use all the features of the assembler in conjunction with macros
- 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:
- Recognize macro definitions and macro calls
- Save the macro definitions
- Expand macro calls and substitute arguments
- 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:
- Independent two-pass processor
- Independent one-pass processor
- Processor incorporated into Pass 1 of a standard two-pass assembler
- 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?
- Allocate space in memory for the programs and resolve symbolic references between object decks
- Adjust all 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 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:
- “Compile and Go” loader
- Bootstrap loader
- Boot loader
- 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?
- MS
- DOS
- MS DOS
- 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?
- Upgradability
- Universality
- Upward mobility
- 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?
- Cold booting
- Warm booting
- Booting
- 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:
- CPU
- ALU
- CU
- 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):
- Implementation of the access environment for all programs in the system
- Management of the physical address space
- Sharing and protection
- 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:
- To connect the file to a program
- To guard against the destruction of the file inadvertently or deliberately by another program
- To facilitate easy creation, storage, and access of files
- 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):
- To parse the source program into the language
- To build a literal table and an identifier table
- To build a uniform symbol table
- 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?
- Literal Table
- Terminal Table
- Identifier Table
- 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?
- Terminal Table
- Identifier Table
- Literal Table
- 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?
- COPY
- CHKDSK
- DISKCOPY
- 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?
- TXT
- COM
- BAS
- 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?
- DISKCOPY
- RENAME
- COPY
- 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?
- FORMAT command
- VER command
- FAT command
- 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):
- To assign storage to all variables referenced in the source program
- To assign storage to all temporary locations that are necessary for intermediate results
- To assign storage to literals, and to ensure that the storage is allocated and appropriate locations are initialized
- 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:
- 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
- Consists of a program and relevant information for its relocation
- Can itself perform the relocation of its address-sensitive portions
- 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:
- 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
- Consists of a program and relevant information for its relocation
- Can itself perform the relocation of its address-sensitive portions
- 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:
- 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
- Consists of a program and relevant information for its relocation
- Can itself perform the relocation of its address-sensitive portions
- 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:
- A set of programs which controls computer working
- The way a computer operator works
- Conversion of high-level language into machine code
- 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?
- Spreadsheet
- Timesharing
- Operating environment
- 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?
- Word processing
- UNIX
- Spreadsheet
- 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?
- Word processing
- UNIX
- Spreadsheet
- 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?
- Is the applications software you want to use compatible with it?
- Is it expensive?
- Is it compatible with your hardware?
- 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:
- Contains all constants in the program
- A permanent table of decision rules in the form of patterns for matching with the uniform symbol table to discover syntactic structure
- 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
- 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:
- Assembly language version of the program which is created by the code generation phase and is input to the assembly phase
- A permanent table of decision rules in the form of patterns for matching with the uniform symbol table to discover syntactic structure
- 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
- 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:
- Terminal Table
- Identifier Table
- Literal Table
- 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:
- 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
- To build a literal table and an identifier table
- To build a uniform symbol table
- 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?
- Reallocation
- Linking
- Allocation
- 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?
- Reallocation
- Linking
- Allocation
- 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:
- Fewer people, less management, and shorter transition in learning time
- Improved debugging capability, and superior documentation
- A greater degree of machine independence
- 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:
- Syntax analysis
- Interpretation
- Lexical analysis
- 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:
- Recognition of basic syntactic constructs through reductions
- Recognition of basic elements and creation of uniform symbols
- Creation of more optional matrix
- 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:
- Recognition of basic syntactic constructs through reductions
- Recognition of basic elements and creation of uniform symbols
- Creation of more optional matrix
- 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:
- Assembly and output
- Storage assignment
- Code generation
- 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:
- Assembly and output
- Syntax analysis
- Code generation
- 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?
- Supervisor
- Job-control program
- Performance monitor
- 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?
- Increased throughput
- Shorter response time
- Decreased operating system overhead
- 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?
- Index addressing
- Auto increment
- Indirect addressing
- 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?
- Absolute mode
- Immediate mode
- Indirect mode
- 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?
- Non-reusable module
- Reentrant module
- Serially reusable module
- 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?
- Application software
- Firmware
- System software
- 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:
- Assembler
- Compiler
- Translator
- 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?
- Recommendations by other users
- Objective software reviews
- Computer magazines
- 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:
- Word processing
- Compiling
- Virtual memory
- 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?
- Word processing
- Spreadsheet
- System
- 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?
- System software
- An operating environment
- Application software
- 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.