Operating System MCQ (Multiple Choice Questions) - SchoolingAxis

Operating System MCQ (Multiple Choice Questions)

 Que- Fork is 

a. the dispatching of a task 

b. the creation of a new job 

c. the creation of a new process 

d. increasing the priority of a task 


Answer- the creation of a new process        


Que- Thrashing 

a. is   a   natural   consequence   of virtual memory systems 

b. can always be avoided by swapping 

c. always occurs on large computers 

d. can be caused by poor paging algorithms 


Answer- can be caused by poor paging algorithms        


Que- Supervisor state is 

a. never used 

b. entered by programs when they enter the processor 

c. required to perform any I/O 

d. only allowed to the operating system 


Answer- only allowed to the operating system        


Que- Which of the following instruction steps, would be written within the diamond-shaped box, of a flowchart? 

a. S = B - C 

b. IS A<10 

c. PRINT A 

d. DATA X,4Z 


Answer- IS A<10        


Que- If you want to execute more than one program at a time, the systems software you are using must be capable of: 

a. word processing 

b. virtual memory 

c. compiling 

d. multitasking 


Answer- multitasking        


Que- In analyzing the compilation of PL/I program, the description ""resolving symbolic address (labels) and generating machine language"" is associated with 

a. Assembly and output 

b. Code generation 

c. Storage assignment 

d. Syntax analysis 


Answer- Assembly and output        


Que- Round-robin scheduling 

a. allows interactive tasks quicker access to the processor 

b. is quite complex to implement 

c. gives each task the same chance at the processor 

d. allows processor-bound tasks more time in the processor 


Answer- gives each task the same chance at the processor        


Que- What is the name of the system which deals with the running of the actual computer and not with the programming problems? 

a. Operating system 

b. Systems program 

c. Object program 

d. Source program 


Answer- Systems program        


Que- What is the initial value of the semaphore to allow only one of the many processes to enter their critical section? 

a. 8 

b. 1 

c. 16 

d. 0 


Answer- 1        


Que- Page stealing 

a. is a sign of an efficient system 

b. is taking page frames from other working sets 

c. should be the tuning goal 

d. is taking larger disk spaces for pages paged out 


Answer- is taking page frames from other working sets        


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

a. MS 

b. DOS 

c. MS DOS 

d. 5 


Answer- 5        


Que- Bug means 

a. A logical error in a program 

b. A difficult syntax error in a program 

c. Documenting programs using an efficient documentation tool 

d. All of the above 


Answer- A logical error in a program        


Que- Memory management is : 

a. not used in modern operating system 

b. replaced with virtual memory on current systems 

c. not used on multiprogramming systems 

d. critical  for even the simplest operating systems 


Answer- critical  for even the simplest operating systems        


Que- The working set theory of programming behaviour of processes running within an operating system involves 

a. the collection of pages that a process accesses 

b. disk scheduling mechanisms 

c. coalescing holes in memory 

d. assigning the CPU to processes 


Answer- the collection of pages that a process accesses        


Que- Operating system is 

a. A collection of hardware components 

b. A collection of input-output devices 

c. A collection of software routines 

d. All of the above 


Answer- A collection of software routines        


Que- A file organization component of a VSAM file is: 

a. relative record data set 

b. keyed sequential data set 

c. entry sequential data set 

d. all of the above 


Answer- all of the above        


Que- What is the name given to the software which can be legally compiled and often used for free? 

a. Shareware program 

b. Public domain program 

c. Firmware program 

d. Mindware 


Answer- Public domain program        


Que- The SJF algorithm executes first the job 

a. that last entered the queue 

b. that first entered the queue 

c. that has been in the queue the longest 

d. with the least processor needs 


Answer- with the least processor needs        


$ads={1}


Que- In memory systems, boundary registers 

a. are used for temporary program variable storage 

b. are only necessary with fixed partitions 

c. track page boundaries 

d. track the beginning and ending of programs 


Answer- track the beginning and ending of programs        


Que- Which of the following is true for machine language. 

a. Repeated execution of program segments 

b. Depicting flow of data in a system 

c. A sequence of instructions which, when followed properly, solves a problem 

d. the language which communicates with the computer using only the binary digits 1 and 0. 


Answer- the language which communicates with the computer using only the binary digits 1 and 0.        


Que- Which of the following is not applications software? 

a. Word processing 

b. Spreadsheet 

c. UNIX 

d. Desktop publishing 


Answer- UNIX        


Que- Scissoring enables 

a. a part of data to be displayed 

b. entire data to be displayed 

c. full data display on full area of screen 

d. no data to be displayed 


Answer- a part of data to be displayed        


Que- A relocate program form is one which 

a. 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. 

b. consists of a program and relevant information for its relocation. 

c. can itself performs the relocation of its address-sensitive portions. 

d. all of the above 


Answer- consists of a program and relevant information for its relocation.        


Que- The file structure that redefines its first record at a base of zero uses the term: 

a. relative organization 

b. key fielding 

c. dynamic reallocation 

d. hashing 


Answer- relative organization        


Que- What is the name given to all the programs inside the computer with makes it usable? 

a. Application software 

b. System software 

c. Firm ware 

d. Shareware 


Answer- System software        


Que- Semaphores 

a. synchronize critical resources to prevent deadlock 

b. synchronize critical resources to prevent contention 

c. are used to do I/O 

d. are used for memory management 


Answer- synchronize critical resources to prevent deadlock        


Que- The advantage(s) of incorporating the macro processor into pass 1 is(are): 

a. many functions do not have to be implemented twice. 

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

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

d. all of the above 


Answer- all of the above        


Que- In analyzing the compilation of PL/I program, the description ""creation of more optimal matrix"" is associated with 

a. Assembly and output 

b. Code generation 

c. Syntax analysis 

d. Machine independent optimization 


Answer- Machine independent optimization        


Que- 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 

a. semaphore 

b. mutual exclusion 

c. multiprogramming 

d. multitasking 


Answer- mutual exclusion        


Que- What is the name of the operating system which was originally designed by scientists and engineers for use by scientists and engineers? 

a. XENIX 

b. UNIX 

c. OS/2 

d. MS DOS 


Answer- UNIX        


Que- The most common security failure is 

a. carelessness by users 

b. depending on passwords 

c. too much emphasis on preventing physical access 

d. insufficient technology used to prevent breaches 


Answer- carelessness by users        


Que- Terminal Table 

a. contains all constants in the program 

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

c. 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 

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


Answer- a permanent table which lists all key words and special symbols of the language in symbolic form.        


Que- Block or buffer caches are used 

a. to improve disk performance 

b. to handle interrupts 

c. to increase the capacity of main memory 

d. to speed up main memory read operation 


Answer- to improve disk performance        


Que- Thrashing can be avoided if 

a. the pages, belonging to the working set of the programs, are in main memory 

b. the speed of CPU is increased 

c. the speed of I/O processor is increased 

d. all of the above 


Answer- the pages, belonging to the working set of the programs, are in main memory        


Que- In analyzing the compilation of PL/I program, the term ""Lexical analysis"" is associated with 

a. recognition of basic syntactic constructs through reductions. 

b. recognition of basic elements and creation of uniform symbols 

c. creation of more optional matrix. 

d. use of macro processor to produce more optimal assembly code 


Answer- recognition of basic elements and creation of uniform symbols        


Que- Resolution of externally defined symbols is performed by 

a. Linker 

b. Loader 

c. Compiler 

d. Assembler 


Answer- Linker        


Que- System generation: 

a. is always quite simple 

b. is always very difficult 

c. varies in difficulty between systems 

d. requires extensive tools to be understandable 


Answer- varies in difficulty between systems   


$ads={2}

     

Que- The Memory Address Register 

a. is a hardware memory device which denotes the location of the current instruction being executed. 

b. is a group of electrical circuits (hardware), that performs the intent of instructions fetched from memory. 

c. contains the address of the memory location that is to be read from or stored into. 

d. 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"". 


Answer- contains the address of the memory location that is to be read from or stored into.        


Que- What is the name given to the process of initializing a microcomputer with its operating system? 

a. Cold booting 

b. Booting 

c. Warm booting 

d. Boot recording 


Answer- Booting        


Que- The function(s) of the Storage Assignment is (are) 

a. to assign storage to all variables referenced in the source program. 

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

c. to assign storage to literals, and to ensure that the storage is allocate and appropriate locations are initialized. 

d. all of the above 


Answer- all of the above        


Que- A Processor 

a. is a device that performs a sequence of operations specified by instructions in memory. 

b. is the device where information is stored 

c. is a sequence of instructions 

d. is typically characterized by interactive processing and time of the CPU's time to allow quick response to each user. 


Answer- is a device that performs a sequence of operations specified by instructions in memory.        


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

a. FORMAT command 

b. FAT command 

c. VER command 

d. CHKDSK command 


Answer- FORMAT command        


Que- Multiprogramming 

a. 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. 

b. consists of those addresses that may be generated by a processor during execution of a computation. 

c. is a method of allocating processor time. 

d. allows multiple programs to reside in separate areas of core at the time. 


Answer- allows multiple programs to reside in separate areas of core at the time.        


Que- Four necessary conditions for deadlock to exist are: mutual exclusion, no-preemption, circular wait and 

a. hold and wait 

b. deadlock avoidance 

c. race around condition 

d. buffer overflow 


Answer- hold and wait        


Que- If you do not know which version of MS-DOS you are working with, which command will you use after having booted your operating system? 

a. FORMAT command 

b. DIR command 

c. VER command 

d. DISK command 


Answer- VER command        


Que- A partitioned data set is most used for 

a. a program or source library 

b. storing program data 

c. storing backup information 

d. storing ISAM files 


Answer- a program or source library        


Que- Page-map table is 

a. A data file 

b. A directory 

c. Used for address translation 

d. All of the above 


Answer- Used for address translation        


Que- The main function of the dispatcher (the portion of the process scheduler) is 

a. swapping   a process to the disk 

b. assigning ready process to the CPU 

c. suspending some of the processes when the CPU load is high 

d. bring processes from the disk to the main memory 


Answer- assigning ready process to the CPU        


Que- Addressing structure 

a. defines the fundamental method of determining effective operand addresses 

b. are variations in the use of fundamental addressing structures, or some associated actions which are related to addressing. 

c. performs indicated operations on two fast registers of the machine and leave the result in one of the registers. 

d. all of the above 


Answer- defines the fundamental method of determining effective operand addresses        


Que- The Memory Buffer Register (MBR) 

a. is a hardware memory device which denotes the location of the current instruction being executed. 

b. is a group of electrical circuits (hardware), that performs the intent of instructions fetched from memory. 

c. contains the address of the memory location that is to be read from or stored into. 

d. 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"". 


Answer- 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"".        


Que- The strategy of allowing processes that are logically runnable to be temporarily suspended is called 

a. preemptive scheduling 

b. non preemptive scheduling 

c. shortest job first 

d. first come first served 


Answer- preemptive scheduling        


Que- The Storage-to-Storage instructions 

a. have both their operands in the main store. 

b. which perform an operation on a register operand and an operand which is located in the main store, generally leaving the result in the register, expect in the case of store operation when it is also written into the specified storage location. 

c. which perform indicated operations on two fast registers of the machine and have the result in one of the registers 

d. all of the above 


Answer- have both their operands in the main store.        


Que- The LRU algorithm 

a. pages out pages that have been used recently 

b. pages out pages that have not been used recently 

c. pages out pages that have been least used recently 

d. pages out the first page in a given area 


Answer- pages out pages that have been least used recently        


Que- The FIFO algorithm 

a. executes first the job that last entered the queue 

b. executes first the job that first entered the queue 

c. execute first the job that has been in the queue the longest 

d. executes first the job with the least processor needs 


Answer- executes first the job that first entered the queue        


Que- What is the name given to the organized collection of software that controls the overall operation of a computer? 

a. Working system 

b. Peripheral system 

c. Operating system 

d. Controlling system 


Answer- Operating system        


Que- The principle of locality of reference justifies the use of 

a. reenterable 

b. non reusable 

c. virtual memory 

d. cache memory 


Answer- cache memory        


Que- The register or main memory location which contains the effective address of the operand is known as 

a. pointer 

b. indexed register 

c. special location 

d. scratch pad 


Answer- pointer        


Que- Assembly code data base is associated with 

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

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

c. consists of a full or partial list or the token's as they appear in the program. Created by Lexical analysis and used for syntax analysis and interpretation. 

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


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


Que- The details of all external symbols and relocation formation (relocation list or map) is provided to linker by 

a. Macro processor 

b. Translator 

c. Loader 

d. Editor 


Answer- Translator        


Que- The macro processor must perform 

a. recognize macro definitions and macro calls 

b. save the macro definitions 

c. expand macros calls and substitute arguments 

d. all of the above 


Answer- all of the above        


Que- A development strategy whereby the executive control modules of a system are coded and tested first, is known as 

a. Bottom-up development 

b. Top-down development 

c. Left-Right development 

d. All of the above 


Answer- Top-down development        


Que- Which of the following is helpful in evaluating applications software what will best suit your needs? 

a. recommendations by other users 

b. computer magazines 

c. objective software reviews 

d. all of the above 


Answer- all of the above        


Que- What problem is solved by Dijkstra's banker's algorithm? 

a. mutual exclusion 

b. deadlock recovery 

c. deadlock avoidance 

d. cache coherence 


Answer- deadlock avoidance        


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

a. COPY 

b. DISKCOPY 

c. CHKDSK 

d. TYPE 


Answer- DISKCOPY        


Que- Memory 

a. is a device that performs a sequence of operations specified by instructions in memory. 

b. is the device where information is stored 

c. is a sequence of instructions 

d. is   typically   characterized   by interactive processing and time-slicing of the CPU's time to allow quick response to each user. 


Answer- is the device where information is stored        


Que- Which of the following rules out the use of GO TO? 

a. Flowchart 

b. HIPO-DIAGRAMS 

c. Nassi-Shneiderman diagram 

d. All of the above 


Answer- Nassi-Shneiderman diagram        


Que- A system program that sets up an executable program in main memory ready for execution is 

a. assembler 

b. linker 

c. loader 

d. compiler 


Answer- loader        


Que- Which of the following are loaded into main memory when the computer is booted? 

a. internal command instructions 

b. external command instructions 

c. utility programs 

d. word processing instructions 


Answer- internal command instructions        


Que- Which of the following is not true about the memory management? 

a. virtual memory is used only in multi-user systems 

b. segmentation suffers from external fragmentation 

c. paging   suffers   from   internal fragmentation 

d. segmented memory can be paged 


Answer- virtual memory is used only in multi-user systems        


Que- Job Control Language (JCL) statements are used to 

a. Read the input from the slow-speed card reader to the high-speed magnetic disk 

b. Specify, to the operating system, the beginning and end of a job in a batch 

c. Allocate the CPU to a job 

d. All of the above 


Answer- Specify, to the operating system, the beginning and end of a job in a batch        


Que- Paging 

a. 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. 

b. consists of those addresses that may be generated by a processor during execution of a computation. 

c. is a method of allocating processor time. 

d. allows multiple programs to reside in separate areas of core at the time. 


Answer- 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.        


Previous Post Next Post

Responsive Ad