set-4
151. A computer program written in a high-level language is called a:
Source program
Machine language program
Object program
None of the above
152. A compiler can diagnose:
Grammatical errors only
Logical errors only
Grammatical as well as logical errors
Neither grammatical nor logical errors
153. Compilers are generally written by:
Computer manufacturers
Professional programmers
Computer users
System analysts
154. A programmer, by mistake, writes an instruction to divide instead of multiply. Such an error can be detected by a/an:
Compiler
Compiler or interpreter both
Interpreter
Neither compiler nor interpreter
155. Which is not true about ‘syntax’ and ‘semantics’ parts of a computer language?
Syntax is generally checked by the programmer
Semantics is the responsibility of the programmer
Semantics is checked mechanically by a computer
Both (B) and (C)
156. A series of statements explaining how the data is to be processed is called:
Instruction
Program
Compiler
Interpreter
157. The computer language generally translated to pseudo code is:
Assembly
Pascal
Machine
PL/I
158. Application programs used with microcomputers are generally written by:
The users themselves
Hardware suppliers
A team of experts known as ‘third parties’
IBM
159. What is true about machine language?
It is understood by the computer
It varies from one model of computer to another
It may always be represented by binary numbers
All of the above are true
160. Object program is:
A program written in machine language
A program to be translated into machine language
The translation of a high-level language into machine language
None of the above
161. What is true about assembly language?
It uses symbolic codes
It does not vary from one type of computer to another
It uses binary numbers
None of the above
162. The process of transferring data intended for a peripheral device into a disk (or intermediate store) so that it can be transferred to the peripheral at a more convenient time or in bulk is known as:
Multiprogramming
Caching
Spooling
Virtual programming
163. A form of code that uses more than one process and processor, possibly of different types, and that may on occasion have more than one process or processor active at the same time is known as:
Multiprogramming
Broadcasting
Multithreading
Time sharing
164. Situations where two or more processes are reading or writing some shared data and the final result depends on who runs precisely when are called:
Race conditions
Mutual exclusion
Critical sections
Message passing
165. Part of a program where the shared memory is accessed and which should be executed indivisibly is called:
Semaphores
Critical section
Directory
Mutual exclusion
166. A relationship between processes such that each has some part (critical section) which must not be executed while the critical section of another is being executed is known as:
Semaphore
Multiprogramming
Mutual exclusion
Multitasking
167. Which of the following operating systems use write-through caches?
UNIX
ULTRIX
DOS
XENIX
168. A disk scheduling algorithm in an operating system causes the disk arm to move back and forth across the disk surface in order to service all requests in its path. This is a:
First come first served
SCAN
Shortest Seek Time First (SSTF)
Eschenbach scheme
169. A system program that sets up an executable program in main memory ready for execution is:
Assembler
Loader
Linker
Text editor
170. A compiler for a high-level language that runs on one machine and produces code for a different machine is called:
Optimizing compiler
Cross compiler
One-pass compiler
Multi-pass compiler
171. An instruction in a programming language that is replaced by a sequence of instructions prior to assembly or compiling is known as:
Procedure name
Label
Macro
Literal
172. Which of the following translator programs converts assembly language program to object program?
Assembler
Macro processor
Compiler
Linker
173. Which of the following system programs forgoes 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?
Two-pass assembler
Microprocessor
Load-and-go assembler
Compiler
174. System programs such as compilers are designed so that they are:
Reentrant
Serially usable
Non-reusable
Recursive
175. Memory:
Is a device that performs a sequence of operations specified by instructions in memory
Is the device where information is stored
Is a sequence of instructions
Is typically characterized by interactive processing and time-slicing of the CPU’s time to allow quick response to each user
176. A program:
Is a device that performs a sequence of operations specified by instructions in memory
Is the device where information is stored
Is a sequence of instructions
Is typically characterized by interactive processing and time-slicing of the CPU’s time to allow quick response to each user
177. A processor:
Is a device that performs a sequence of operations specified by instructions in memory
Is the device where information is stored
Is a sequence of instructions
Is typically characterized by interactive processing and time-slicing of the CPU’s time to allow quick response to each user
178. An assembler is:
A program that places programs into memory and prepares them for execution
A program that automates the translation of assembly language into machine language
A program that accepts a program written in a high-level language and produces an object program
A program that appears to execute a source program as if it were machine language
179. An interpreter is:
A program that places programs into memory and prepares them for execution
A program that automates the translation of assembly language into machine language
A program that accepts a program written in a high-level language and produces an object program
A program that appears to execute a source program as if it were machine language
180. A compiler is:
A program that places programs into memory and prepares them for execution
A program that automates the translation of assembly language into machine language
A program that accepts a program written in a high-level language and produces an object program
A program that appears to execute a source program as if it were machine language
181. A loader is:
A program that places programs into memory and prepares them for execution
A program that automates the translation of assembly language into machine language
A program that accepts a program written in a high-level language and produces an object program
A program that appears to execute a source program as if it were machine language
182. Virtual Memory
Is a method of memory allocation by which the program is subdivided into equal portions, or pages, and core is subdivided into equal portions or blocks
Consists of those addresses that may be generated by a processor during execution of a computation
Is a method of allocating processor time
Allows multiple programs to reside in separate areas of core at the time
183. Paging
Is a method of memory allocation by which the program is subdivided into equal portions or pages and core is subdivided into equal portions or blocks
Consists of those addresses that may be generated by a processor during execution of a computation
Is a method of allocating processor time
Allows multiple programs to reside in separate areas of core at the time
184. Multiprogramming
Is a method of memory allocation by which the program is subdivided into equal portions or pages and core is subdivided into equal portions or blocks
Consists of those addresses that may be generated by a processor during execution of a computation
Is a method of allocating processor time
Allows multiple programs to reside in separate areas of core at the time
185. The Memory Buffer Register (MBR)
Is a hardware memory device which denotes the location of the current instruction being executed
Is a group of electrical circuits (hardware) that performs the intent of instructions fetched from memory
Contains the address of the memory location that is to be read from or stored into
Contains a copy of the designated memory location specified by the MAR after a “read” or the new contents of the memory prior to a “write”
186. The Memory Address Register (MAR)
Is a hardware memory device which denotes the location of the current instruction being executed
Is a group of electrical circuits (hardware) that performs the intent of instructions fetched from memory
Contains the address of the memory location that is to be read from or stored into
Contains a copy of the designated memory location specified by the MAR after a “read” or the new contents of the memory prior to a “write”
187. The Instruction Register (IR)
Is a hardware memory device which denotes the location of the current instruction being executed
Is a group of electrical circuits (hardware) that performs the intent of instructions fetched from memory
Contains the address of the memory location that is to be read from or stored into
Contains a copy of the designated memory location specified by the MAR after a “read” or the new contents of the memory prior to a “write”
188. Advantage(s) of using assembly language rather than machine language is (are):
It is mnemonic and easy to read
Addresses are symbolic, not absolute
Introduction of data to the program is easier
All of the above
189. Pass 1 of an assembler:
Assigns addresses to all statements in the program
Saves the values assigned to all labels for use in Pass 2
Performs some processing of assembler directives
All of the above
190. Pass 2 of an assembler:
Assembles instructions and generates data
Performs processing of assembler directives not done during Pass 1
Writes the object program and the assembly listing
All of the above
191. The System/370 assembler language:
Allows the programmer to write base registers and displacements explicitly in the source program
Is used to remember which of the general-purpose registers are currently available as base registers, and what base addresses they contain
Allows multiple programs to reside in separate areas of core at the same time
Is a term that refers to the control programs of an operating system
192. A base register table:
Allows the programmer to write base registers and displacements explicitly in the source program
Is used to remember which of the general-purpose registers are currently available as base registers, and what base addresses they contain
Allows multiple programs to reside in separate areas of core at the same time
Is a term that refers to the control programs of an operating system
193. Addressing structure:
Defines the fundamental method of determining effective operand addresses
Are variations in the use of fundamental addressing structures, or some associated actions which are related to addressing
Performs indicated operations on two fast registers of the machine and leaves the result in one of the registers
All of the above
194. Addressing modes:
Defines the fundamental method of determining effective operand addresses
Are variations in the use of fundamental addressing structures, or some associated actions which are related to addressing
Performs indicated operations on two fast registers of the machine and leaves the result in one of the registers
All of the above
195. The Register-to-Register (RR) instructions:
Have both their operands in the main store
Perform an operation on a register operand and an operand located in the main store, generally leaving the result in the register
Perform indicated operations on two fast registers of the machine and leave the result in one of the registers
All of the above
196. The Register-to-Storage (RS) instructions:
Have both their operands in the main store
Perform an operation on a register operand and an operand located in the main store, generally leaving the result in the register
Perform indicated operations on two fast registers of the machine and leave the result in one of the registers
All of the above
197. The Storage-to-Storage (SS) instructions:
Have both their operands in the main store
Perform an operation on a register operand and an operand located in the main store, generally leaving the result in the register
Perform indicated operations on two fast registers of the machine and leave the result in one of the registers
All of the above
198. Which of the following are Language Processors?
Assemblers
Interpreters
Compilers
All of the above
199. The specific tasks Storage Manager performs are:
Allocation/deallocation of storage to programs
Protection of the storage area allocated to a program from illegal access by other programs in the system
The status of each program
Both (A) and (B)
200. The process manager (or processor manager) has to keep track of:
The status of each program
The priority of each program
The information management support to a programmer using the system
Both (A) and (B)
Last updated