Showing posts with label MCQ for practice. Show all posts
Showing posts with label MCQ for practice. Show all posts

Saturday, 18 February 2012

Operating System Question Answer (short type)

  1. Explain the concept of Reentrancy.
    It is a useful, memory-saving technique for multiprogrammed timesharing systems. A Reentrant Procedure is one in which multiple users can share a single copy of a programduring the same period. Reentrancy has 2 key aspects: The program code cannot modify itself, and the local data for each user process must be stored separately. Thus, the permanent part is the code, and the temporary part is the pointer back to the calling programand local variables used by that program. Each execution instance is called activation. It executes the code in the permanent part, but has its own copy of local variables/parameters. The temporary part associated with each activation is the activation record. Generally, the activation record is kept on the stack.
    Note: A reentrant procedure can be interrupted and called by an interrupting program, and still execute correctly on returning to the procedure.

    2. Explain Belady's Anomaly.
    Also called FIFO anomaly. Usually, on increasing the number of frames allocated to aprocess' virtual memory, the process execution is faster, because fewer page faults occur. Sometimes, the reverse happens, i.e., the execution time increases even when more frames are allocated to the process. This is Belady's Anomaly. This is true for certain page reference patterns.

    3. What is a binary semaphore? What is its use?
    A binary semaphore is one, which takes only 0 and 1 as values. They are used to implement mutual exclusion and synchronize concurrent processes.

    4. What is thrashing?
    It is a phenomenon in virtual memory schemes when the processor spends most of its time swapping pages, rather than executing instructions. This is due to an inordinate number of page faults.

    5. List the Coffman's conditions that lead to a deadlock.
    Mutual Exclusion: Only one
    Ø process may use a critical resource at a time.
    Hold
    Ø & Wait: A process may be allocated some resources while waiting for others.
    No Pre-emption: No resource can be forcible removed from a
    Ø process holding it.
    Circular Wait: A closed chain of processes exist such that each
    Ø process holds at least one resource needed by another process in the chain.


    6. What are short-, long- and medium-term scheduling?
    Long term scheduler determines which programs are admitted to the system for processing. It controls the degree of multiprogramming. Once admitted, a job becomes a process.
    Medium term scheduling is part of the swapping function. This relates to processes that are in a blocked or suspended state. They are swapped out of real-memory until they are ready to execute. The swapping-in decision is based on memory-management criteria.
    Short term scheduler, also know as a dispatcher executes most frequently, and makes the finest-grained decision of which process should execute next. This scheduler is invoked whenever an event occurs. It may lead to interruption of one process by preemption.

    7. What are turnaround time and response time?
    Turnaround time is the interval between the submission of a job and its completion. Response time is the interval between submission of a request, and the first response to that request.

    8. What are the typical elements of a process image?
    User data: Modifiable part of user space. May include
    Ø program data, user stack area, and programs that may be modified.
    User
    Ø program: The instructions to be executed.
    System Stack: Each
    Ø process has one or more LIFO stacks associated with it. Used to store parameters and calling addresses for procedure and system calls.
    Ø Process control Block (PCB): Info needed by the OS to control processes.

    9. What is the Translation Lookaside Buffer (TLB)?
    In a cached system, the base addresses of the last few referenced pages is maintained in registers called the TLB that aids in faster lookup. TLB contains those page-table entries that have been most recently used. Normally, each virtual memory reference causes 2 physical memory accesses-- one to fetch appropriate page-table entry, and one to fetch the desired data. Using TLB in-between, this is reduced to just one physical memory access in cases of TLB-hit.

    10. What is the resident set and working set of a process?
    Resident set is that portion of the process image that is actually in real-memory at a particular instant. Working set is that subset of resident set that is actually needed for execution. (Relate this to the variable-window size method for swapping techniques.)
11. When is a system in safe state?
The set of dispatchable processes is in a safe state if there exists at least one temporal order in which all processes can be run to completion without resulting in a deadlock.
12. What is cycle stealing?
We encounter cycle stealing in the context of Direct Memory Access (DMA). Either the DMA controller can use the data bus when the CPU does not need it, or it may force the CPU to temporarily suspend operation. The latter technique is called cycle stealing. Note that cyclestealing can be done only at specific break points in an instruction cycle.
13. What is meant by arm-stickiness?
If one or a few processes have a high access rate to data on one track of a storage disk, then they may monopolize the device by repeated requests to that track. This generally happens with most common device scheduling algorithms (LIFO, SSTF, C-SCAN, etc). High-density multisurface disks are more likely to be affected by this than low density ones.
14. What are the stipulations of C2 level security?
C2 level security provides for:
Discretionary
Ø Access Control
Identification and Authentication
Ø
Auditing
Ø
Resource reuse
Ø
15. What is busy waiting?
The repeated execution of a loop of code while waiting for an event to occur is called busy-waiting. The CPU is not engaged in any real productive activity during this period, and the process does not progress toward completion.
16. Explain the popular multiprocessor thread-scheduling strategies.
Load Sharing:
Ø Processes are not assigned to a particular processor. A global queue of threads is maintained. Each processor, when idle, selects a thread from this queue. Note that load balancing refers to a scheme where work is allocated to processors on a more permanent basis.
Gang
Ø Scheduling: A set of related threads is scheduled to run on a set of processors at the same time, on a 1-to-1 basis. Closely related threads / processes may be scheduled this way to reduce synchronization blocking, and minimize process switching. Group schedulingpredated this strategy.
Dedicated processor assignment: Provides implicit
Ø scheduling defined by assignment of threads to processors. For the duration of program execution, each program is allocated a set of processors equal in number to the number of threads in the program. Processors are chosen from the available pool.
Dynamic
Ø scheduling: The number of thread in a program can be altered during the course of execution.
17. When does the condition 'rendezvous' arise?
In message passing, it is the condition in which, both, the sender and receiver are blocked until the message is delivered.
18. What is a trap and trapdoor?
Trapdoor is a secret undocumented entry point into a program used to grant access without normal methods of access authentication. A trap is a software interrupt, usually the result of an error condition.
19. What are local and global page replacements?
Local replacement means that an incoming page is brought in only to the relevant process' address space. Global replacement policy allows any page frame from any process to be replaced. The latter is applicable to variable partitions model only.
20. Define latency, transfer and seek time with respect to disk I/O.
Seek time is the time required to move the disk arm to the required track. Rotational delay or latency is the time it takes for the beginning of the required sector to reach the head. Sum of seek time (if any) and latency is the access time. Time taken to actually transfer a span of data is transfer time.
22. What is time-stamping?
It is a technique proposed by Lamport, used to order events in a distributed system without the use of clocks. This scheme is intended to order events consisting of the transmission of messages. Each system 'i' in the network maintains a counter Ci. Every time a system transmits a message, it increments its counter by 1 and attaches the time-stamp Ti to the message. When a message is received, the receiving system 'j' sets its counter Cj to 1 more than the maximum of its current value and the incoming time-stamp Ti. At each site, the ordering of messages is determined by the following rules: For messages x from site i and y from site j, x precedes y if one of the following conditions holds....(a) if Ti<Tj or (b) if Ti=Tj and i<j.

23. How are the wait/signal operations for monitor different from those for semaphores?

If a process in a monitor signal and no task is waiting on the condition variable, the signal is lost. So this allows easier program design. Whereas in semaphores, every operation affects the value of the semaphore, so the wait and signal operations should be perfectly balanced in the program.

24. In the context of memory management, what are placement and replacement algorithms?

Placement algorithms determine where in available real-memory to load a program. Common methods are first-fit, next-fit, best-fit. Replacement algorithms are used when memory is full, and one process (or part of a process) needs to be swapped out to accommodate a new program. The replacement algorithm determines which are the partitions to be swapped out.
25. In loading programs into memory, what is the difference between load-time dynamic linking and run-time dynamic linking?
For load-time dynamic linking: Load module to be loaded is read into memory. Any reference to a target external module causes that module to be loaded and the references are updated to a relative address from the start base address of the application module.
With run-time dynamic loading: Some of the linking is postponed until actual reference during execution. Then the correct module is loaded and linked.
26. What are demand- and pre-paging?
With demand paging, a page is brought into memory only when a location on that page is actually referenced during execution. With pre-paging, pages other than the one demanded by a page fault are brought in. The selection of such pages is done based on common access patterns, especially for secondary memory devices.
27. Paging a memory management function, while multiprogramming a processor management function, are the two interdependent?
Yes.
28. What is page cannibalizing?
Page swapping or page replacements are called page cannibalizing.
29. What has triggered the need for multitasking in PCs?
Increased speed and memory capacity of microprocessors together with the support fir virtual memory and
Growth of client server computing
30. What are the four layers that Windows NT have in order to achieve independence?
Hardware abstraction layer
Kernel
Subsystems
System Services.

31. What is SMP?

To achieve maximum efficiency and reliability a mode of operation known as symmetric multiprocessing is used. In essence, with SMP any process or threads can be assigned to any processor.
32. What are the key object oriented concepts used by Windows NT?
Encapsulation
Object class and instance

33. Is Windows NT a full blown object oriented operating system? Give reasons.

No Windows NT is not so, because its not implemented in object oriented language and the data structures reside within one executive component and are not represented as objects and it does not support object oriented capabilities .
34. What is a drawback of MVT?
It does not have the features like
ability to support multiple processors
virtual storage
source level debugging
35. What is process spawning?
When the OS at the explicit request of another process creates a process, this action is called process spawning.
36. How many jobs can be run concurrently on MVT?
15 jobs
37. List out some reasons for process termination.
Normal completion
Time limit exceeded
Memory unavailable
Bounds violation
Protection error
Arithmetic error
Time overrun
I/O failure
Invalid instruction
Privileged instruction
Data misuse
Operator or OS intervention
Parent termination.
38. What are the reasons for process suspension?

1. swapping
2. interactive user request
3. timing
4. parent process request

39. What is process migration?
It is the transfer of sufficient amount of the state of process from one machine to the target machine
40. What is mutant?
In Windows NT a mutant provides kernel mode or user mode mutual exclusion with the notion of ownership.
41. What is an idle thread?
The special thread a dispatcher will execute when no ready thread is found.
42. What is FtDisk?
It is a fault tolerance disk driver for Windows NT.
43. What are the possible threads a thread can have?
Ready
Ø
Standby
Ø
Running
Ø
Waiting
Ø
Transition
Ø
Terminated.
Ø
44. What are rings in Windows NT?
Windows NT uses protection mechanism called rings provides by the process to implement separation between the user mode and kernel mode.
45. What is Executive in Windows NT?
In Windows NT, executive refers to the operating system code that runs in kernel mode.
46. What are the sub-components of I/O manager in Windows NT?
Network redirector/ Server
Ø
Cache manager.
Ø
File systems
Ø
Network driver
Ø
Device driver
Ø
47. What are DDks? Name an operating system that includes this feature.
DDks are device driver kits, which are equivalent to SDKs for writing device drivers.Windows NT includes DDks.
48. What level of security does Windows NT meets?
C2 level security.
1. What are the basic functions of an operating system? - Operating system controls and coordinates the use of the hardware among the various applications programs for various uses. Operating system acts as resource allocator and manager. Since there are many possibly conflicting requests for resources the operating system must decide which requests are allocated resources to operating the computer system efficiently and fairly. Also operating system is control program which controls the user programs to prevent errors and improper use of the computer. It is especially concerned with the operation and control of I/O devices.
2. Why paging is used? - Paging is solution to external fragmentation problem which is to permit the logical address space of a process to be noncontiguous, thus allowing a process to be allocating physical memory wherever the latter is available.
3. While running DOS on a PC, which command would be used to duplicate the entire diskette? diskcopy
4. What resources are used when a thread created? How do they differ from those when a process is created? - When a thread is created the threads does not require any new resources to execute the thread shares the resources like memory of the process to which they belong to. The benefit of code sharing is that it allows an application to have several different threads of activity all within the same address space. Whereas if a new process creation is very heavyweight because it always requires new address space to be created and even if they share the memory then the inter process communication is expensive when compared to the communication between the threads.
5. What is virtual memory? - Virtual memory is hardware technique where the system appears to have more memory that it actually does. This is done by time-sharing, the physical memory and storage parts of the memory one disk when they are not actively being used.
6. What is Throughput, Turnaround time, waiting time and Response time? - Throughput – number of processes that complete their execution per time unit. Turnaround time – amount of time to execute a particular process. Waiting time – amount of time a process has been waiting in the ready queue. Response time – amount of time it takes from when a request was submitted until the first response is produced, not output (for time-sharing environment).
7. What is the state of the processor, when a process is waiting for some event to occur? - Waiting state
8. What is the important aspect of a real-time system or Mission Critical Systems? - A real time operating system has well defined fixed time constraints. Process must be done within the defined constraints or the system will fail. An example is the operating system for a flight control computer or an advanced jet airplane. Often used as a control device in a dedicated application such as controlling scientific experiments, medical imaging systems, industrial control systems, and some display systems. Real-Time systems may be either hard or soft real-time. Hard real-time: Secondary storage limited or absent, data stored in short term memory, or read-only memory (ROM), Conflicts with time-sharing systems, not supported by general-purpose operating systems. Soft real-time: Limited utility in industrial control of robotics, Useful in applications (multimedia, virtual reality) requiring advanced operating-system features.
9. What is the difference between Hard and Soft real-time systems? - A hard real-time system guarantees that critical tasks complete on time. This goal requires that all delays in the system be bounded from the retrieval of the stored data to the time that it takes the operating system to finish any request made of it. A soft real time system where a critical real-time task gets priority over other tasks and retains that priority until it completes. As in hard real time systems kernel delays need to be bounded
10. What is the cause of thrashing? How does the system detect thrashing? Once it detects thrashing, what can the system do to eliminate this problem? - Thrashing is caused by under allocation of the minimum number of pages required by a process, forcing it to continuously page fault. The system can detect thrashing by evaluating the level of CPU utilization as compared to the level of multiprogramming. It can be eliminated by reducing the level of multiprogramming.
11. What is multi tasking, multi programming, multi threading? - Multi programming: Multiprogramming is the technique of running several programs at a time using timesharing. It allows a computer to do several things at the same time. Multiprogramming creates logical parallelism. The concept of multiprogramming is that the operating system keeps several jobs in memory simultaneously. The operating system selects a job from the job pool and starts executing a job, when that job needs to wait for any i/o operations the CPU is switched to another job. So the main idea here is that the CPU is never idle. Multi tasking: Multitasking is the logical extension of multiprogramming .The concept of multitasking is quite similar to multiprogramming but difference is that the switching between jobs occurs so frequently that the users can interact with each program while it is running. This concept is also known as time-sharing systems. A time-shared operating system uses CPU scheduling and multiprogramming to provide each user with a small portion of time-shared system. Multi threading: An application typically is implemented as a separate process with several threads of control. In some situations a single application may be required to perform several similar tasks for example a web server accepts client requests for web pages, images, sound, and so forth. A busy web server may have several of clients concurrently accessing it. If the web server ran as a traditional single-threaded process, it would be able to service only one client at a time. The amount of time that a client might have to wait for its request to be serviced could be enormous. So it is efficient to have one process that contains multiple threads to serve the same purpose. This approach would multithread the web-server process, the server would create a separate thread that would listen for client requests when a request was made rather than creating another process it would create another thread to service the request. To get the advantages like responsiveness, Resource sharing economy and utilization of multiprocessor architectures multithreading concept can be used.
12. What is hard disk and what is its purpose? - Hard disk is the secondary storage device, which holds the data in bulk, and it holds the data on the magnetic medium of the disk.Hard disks have a hard platter that holds the magnetic medium, the magnetic medium can be easily erased and rewritten, and a typical desktop machine will have a hard disk with a capacity of between 10 and 40 gigabytes. Data is stored onto the disk in the form of files.
13. What is fragmentation? Different types of fragmentation? - Fragmentation occurs in a dynamic memory allocation system when many of the free blocks are too small to satisfy any request. External Fragmentation: External Fragmentation happens when a dynamic memory allocation algorithm allocates some memory and a small piece is left over that cannot be effectively used. If too much external fragmentation occurs, the amount of usable memory is drastically reduced. Total memory space exists to satisfy a request, but it is not contiguous. Internal Fragmentation: Internal fragmentation is the space wasted inside of allocated memory blocks because of restriction on the allowed sizes of allocated blocks. Allocated memory may be slightly larger than requested memory; this size difference is memory internal to a partition, but not being used
14. What is DRAM? In which form does it store data? - DRAM is not the best, but it’s cheap, does the job, and is available almost everywhere you look. DRAM data resides in a cell made of a capacitor and a transistor. The capacitor tends to lose data unless it’s recharged every couple of milliseconds, and this recharging tends to slow down the performance of DRAM compared to speedier RAM types.
15. What is Dispatcher? - Dispatcher module gives control of the CPU to the process selected by the short-term scheduler; this involves: Switching context, Switching to user mode, Jumping to the proper location in the user program to restart that program, dispatch latency – time it takes for the dispatcher to stop one process and start another running.
16. What is CPU Scheduler? - Selects from among the processes in memory that are ready to execute, and allocates the CPU to one of them. CPU scheduling decisions may take place when a process: 1.Switches from running to waiting state. 2.Switches from running to ready state. 3.Switches from waiting to ready. 4.Terminates. Scheduling under 1 and 4 is non-preemptive. All other scheduling is preemptive.
17. What is Context Switch? - Switching the CPU to another process requires saving the state of the old process and loading the saved state for the new process. This task is known as a context switch. Context-switch time is pure overhead, because the system does no useful work while switching. Its speed varies from machine to machine, depending on the memory speed, the number of registers which must be copied, the existed of special instructions(such as a single instruction to load or store all registers).
18. What is cache memory? - Cache memory is random access memory (RAM) that a computer microprocessor can access more quickly than it can access regular RAM. As the microprocessor processes data, it looks first in the cache memory and if it finds the data there (from a previous reading of data), it does not have to do the more time-consuming reading of data from larger memory.
19. What is a Safe State and what is its use in deadlock avoidance? - When a process requests an available resource, system must decide if immediate allocation leaves the system in a safe state. System is in safe state if there exists a safe sequence of all processes. Deadlock Avoidance: ensure that a system will never enter an unsafe state.
20. What is a Real-Time System? - A real time process is a process that must respond to the events within a certain time period. A real time operating system is an operating system that can run real time processes successfully

Operating System Question and answer

Q: What are the basic functions of an operating system?

A: Operating system controls and coordinates the use of the hardware among the various applications programs for various uses. Operating system acts as resource allocator and manager. Since there are many possibly conflicting requests for resources the operating system must decide which requests are allocated resources to operating the computer system efficiently and fairly. Also operating system is control program which controls the user programs to prevent errors and improper use of the computer. It is especially concerned with the operation and control of I/O devices.

Q: Why paging is used?

A: Paging is solution to external fragmentation problem which is to permit the logical address space of a process to be noncontiguous, thus allowing a process to be allocating physical memory wherever the latter is available.
While running DOS on a PC, which command would be used to duplicate the entire diskette? diskcopy

Q: What resources are used when a thread created? How do they differ from those when a process is created?

A: When a thread is created the threads does not require any new resources to execute the thread shares the resources like memory of the process to which they belong to. The benefit of code sharing is that it allows an application to have several different threads of activity all within the same address space. Whereas if a new process creation is very heavyweight because it always requires new address space to be created and even if they share the memory then the inter process communication is expensive when compared to the communication between the threads.

Q: What is virtual memory?

A: Virtual memory is hardware technique where the system appears to have more memory that it actually does. This is done by time-sharing, the physical memory and storage parts of the memory one disk when they are not actively being used.

Q: What is Throughput, Turnaround time, waiting time and Response time?

A: Throughput – number of processes that complete their execution per time unit. Turnaround time – amount of time to execute a particular process. Waiting time – amount of time a process has been waiting in the ready queue. Response time – amount of time it takes from when a request was submitted until the first response is produced, not output (for time-sharing environment).

Q: What is the state of the processor, when a process is waiting for some event to occur?

A: Waiting state

Q: What is the important aspect of a real-time system or Mission Critical Systems?

A: A real time operating system has well defined fixed time constraints. Process must be done within the defined constraints or the system will fail. An example is the operating system for a flight control computer or an advanced jet airplane. Often used as a control device in a dedicated application such as controlling scientific experiments, medical imaging systems, industrial control systems, and some display systems. Real-Time systems may be either hard or soft real-time. Hard real-time: Secondary storage limited or absent, data stored in short term memory, or read-only memory (ROM), Conflicts with time-sharing systems, not supported by general-purpose operating systems. Soft real-time: Limited utility in industrial control of robotics, Useful in applications (multimedia, virtual reality) requiring advanced operating-system features.

Q: What is the difference between Hard and Soft real-time systems?

A: A hard real-time system guarantees that critical tasks complete on time. This goal requires that all delays in the system be bounded from the retrieval of the stored data to the time that it takes the operating system to finish any request made of it. A soft real time system where a critical real-time task gets priority over other tasks and retains that priority until it completes. As in hard real time systems kernel delays need to be bounded

Q: What is the cause of thrashing? How does the system detect thrashing? Once it detects thrashing, what can the system do to eliminate this problem?

A: Thrashing is caused by under allocation of the minimum number of pages required by a process, forcing it to continuously page fault. The system can detect thrashing by evaluating the level of CPU utilization as compared to the level of multiprogramming. It can be eliminated by reducing the level of multiprogramming.

Q: What is multi tasking, multi programming, multi threading?

A: Multi programming: Multiprogramming is the technique of running several programs at a time using timesharing. It allows a computer to do several things at the same time. Multiprogramming creates logical parallelism. The concept of multiprogramming is that the operating system keeps several jobs in memory simultaneously. The operating system selects a job from the job pool and starts executing a job, when that job needs to wait for any i/o operations the CPU is switched to another job. So the main idea here is that the CPU is never idle.

Multi tasking: Multitasking is the logical extension of multiprogramming .The concept of multitasking is quite similar to multiprogramming but difference is that the switching between jobs occurs so frequently that the users can interact with each program while it is running. This concept is also known as time-sharing systems. A time-shared operating system uses CPU scheduling and multiprogramming to provide each user with a small portion of time-shared system.

Multi threading: An application typically is implemented as a separate process with several threads of control. In some situations a single application may be required to perform several similar tasks for example a web server accepts client requests for web pages, images, sound, and so forth. A busy web server may have several of clients concurrently accessing it. If the web server ran as a traditional single-threaded process, it would be able to service only one client at a time. The amount of time that a client might have to wait for its request to be serviced could be enormous. So it is efficient to have one process that contains multiple threads to serve the same purpose. This approach would multithread the web-server process, the server would create a separate thread that would listen for client requests when a request was made rather than creating another process it would create another thread to service the request. To get the advantages like responsiveness, Resource sharing economy and utilization of multiprocessor architectures multithreading concept can be used.

Q: What is hard disk and what is its purpose?

A: Hard disk is the secondary storage device, which holds the data in bulk, and it holds the data on the magnetic medium of the disk.Hard disks have a hard platter that holds the magnetic medium, the magnetic medium can be easily erased and rewritten, and a typical desktop machine will have a hard disk with a capacity of between 10 and 40 gigabytes. Data is stored onto the disk in the form of files.

Q: What is fragmentation? Different types of fragmentation? 

A: Fragmentation occurs in a dynamic memory allocation system when many of the free blocks are too small to satisfy any request.
External Fragmentation: External Fragmentation happens when a dynamic memory allocation algorithm allocates some memory and a small piece is left over that cannot be effectively used. If too much external fragmentation occurs, the amount of usable memory is drastically reduced. Total memory space exists to satisfy a request, but it is not contiguous.
Internal Fragmentation: Internal fragmentation is the space wasted inside of allocated memory blocks because of restriction on the allowed sizes of allocated blocks. Allocated memory may be slightly larger than requested memory; this size difference is memory internal to a partition, but not being used

Q: What is DRAM? In which form does it store data?

A: DRAM is not the best, but it’s cheap, does the job, and is available almost everywhere you look. DRAM data resides in a cell made of a capacitor and a transistor. The capacitor tends to lose data unless it’s recharged every couple of milliseconds, and this recharging tends to slow down the performance of DRAM compared to speedier RAM types.

Q: What is Dispatcher?

A: Dispatcher module gives control of the CPU to the process selected by the short-term scheduler; this involves: Switching context, Switching to user mode, Jumping to the proper location in the user program to restart that program, dispatch latency – time it takes for the dispatcher to stop one process and start another running.

Q: What is CPU Scheduler?

A: Selects from among the processes in memory that are ready to execute, and allocates the CPU to one of them. CPU scheduling decisions may take place when a process: 1.Switches from running to waiting state. 2.Switches from running to ready state. 3.Switches from waiting to ready. 4.Terminates. Scheduling under 1 and 4 is non-preemptive. All other scheduling is preemptive.

Q: What is Context Switch?

A: Switching the CPU to another process requires saving the state of the old process and loading the saved state for the new process. This task is known as a context switch. Context-switch time is pure overhead, because the system does no useful work while switching. Its speed varies from machine to machine, depending on the memory speed, the number of registers which must be copied, the existed of special instructions(such as a single instruction to load or store all registers).

Q: What is cache memory?

A: Cache memory is random access memory (RAM) that a computer microprocessor can access more quickly than it can access regular RAM. As the microprocessor processes data, it looks first in the cache memory and if it finds the data there (from a previous reading of data), it does not have to do the more time-consuming reading of data from larger memory.

Q: What is a Safe State and what is its use in deadlock avoidance?

A: When a process requests an available resource, system must decide if immediate allocation leaves the system in a safe state. System is in safe state if there exists a safe sequence of all processes. Deadlock Avoidance: ensure that a system will never enter an unsafe state.

Q: What is a Real-Time System?

A: A real time process is a process that must respond to the events within a certain time period. A real time operating system is an operating system that can run real time processes successfully

MCQ of Computer Application

MCQ Computer science


  •   Machine language is the only language that the computer can directly execute and is different for each type of
A.    hardware computer only

B.    supercomputer only

C.    computer

D.    none of the above


  •  The three categories of programming languages are : machine language, assembly language and
A.    structured programming language

B.    high-level languages

C.    subprograms

D.    none of the above


  •  A job is a unit of work to be processed by the………..

  •  A computer can only execute instructions that are in
A.    assembly language

B.    machine language

C.    job control program

D.    none of the above


  •  The job control program translates the job control commands written by a programmer into
A.    high-level language

B.    assembly language

C.    machine language

D.    none of the above




  • Application programs are the programs that meet
A.    machine language needs

B.    job control program needs

C.    user's needs

D.    none of the above


  • When computers were first developed, machine language was the only way they could
A.  be programmed      B.  not be programmed C.  both (A) and (B)     D.  none of the above



  •  Often assembly language instructions will execute faster than those written in
A. machine language   B.  high-level language
C.  Pascal
                               D.  none of the above


  •  Pascal can be used to write a wide variety of programs, from those that are highly scientific to those that are strongly
A. business oriented     B.  general oriented C.  source oriented       D.  none of the above



  • In Pascal, there is no limit to the length of an identifier, but some compilers only recognize the ,
A.    four characters in the identifier

B.    three characters in the identifier

C.    eight characters in the identifier

D.    none of the above


  • The formulation of user-defined identifiers should allow the rules for
A. identifiers                          B.  operations

C. computer                         D. none of the above


  •  A storage location whose value can change during program execution is referred to as
A. integer                               B.  variable

C  zero integer                        D. none of the above


  • An integer is a signed or. unsigned
A. a few numbers       B.  only one number C.  whole number        D. : none of the above



  • Variable of data type Boolean can represent only one of the two values
A. zero and one                      B.  true or false

C. three or four                      D. none of the above


  •  The data type char contains all of the characters that can be represented by a given                                       
    A. identifier          B.  program
C. computer system.    D. none of the above



  •  The variable of type char can contain only a single character
A. of all time                          B.  at a time

C.  at the beginning     D.  none of the above



  • A vertical arrangement of information on worksheet is termed as
A. row                                   B.   vertical row
C. column                              D.  none of the above

  • The information stored in a cell is termed as
A.    COMMAND
B.    CONTENTS
C.    BOOT
D.    none of the above

 A collection of on-line reference information used to perform program operations, this is termed
  • as
A.      FORMULA



B.         FIELD



        C.    Help



        D.    none of the above







  • Macro substitution is a powerful programming technique used in
A.    files



B.    command files



C.    data bases



D.    none of the above




  •  A command file is a disk file that has a series of
A.    command in it



B.    databases



C.    computer programs



D.    none of the above




  •  A command file is actually a
A.    data base



B.    computer memory



C.    computer program



D.    micro substitution




  • To print formatted reports with dBASE n, we use its built-in
A.    any particular format



B.    report generator



C.    computer memory



D.    none of the above




  •  A computer's main memory is called
A.    database


B.    computer memory



C.    random access memory or RAM



D.    none of the above




  •  Data in RAM also have names which are stored in memory variables instead of
A.    memory



B.    databases



C.    computer memory



D.    none of the above




  • Memory variables are temporary storage places for pieces of
A.    information



B.    databases



C.    RAM



D.    none of the above




  •  The command is Append. Which is the correct definition in the following?
A.    Formats screen and printer displays



B.    Allows us to add new data to our data base



C.    A condition is not true



D.    none of the above




  • The command name is B. Which is the correct definition in the following? '
A.    Refers to all records in the database



B.    Creates or edits a command file



C.    signals drive B for storing data files 



D. none of the above

  •  The CHR function tells us the character that goes along
A. with computer memory B   with a number



C.    with a data base



D.    none of the above




  •   When we set alternate to TRANSFER, dBASE created a disk file called:
A.    ALTERNATE ON



B.    TRANSFER.TXT



C.    QUIT dBASE



D.    none of the above




  •   Computer can only perform
A.    several basic operations



B.    two basic operations



C.    three basic operations



D.    none of the above




  • Assembly languages also referred to as low level languages
B.    machine language



C.    high language program



D.    none of the above




  • Lotus is an exciting and impressive piece of
A.    data base



B.    hardware computer system



C.    software computer system



D.    none of the above




  • In supercomputer, a machine must be capable of performing at least
A.    10 million arithmetic operations per second



B.    20 million arithmetic operations per second



C.    40 million arithmetic operations per second



D.  80 million arithmetic operations per second




  •  Before you can start WordStar, you need to be n the directory that contains all of the WordStar programs. The name of this directory is:

  •  If the directory docs not list the drive letter where you need to keep the data disk blank, you must change it with the
A.  M option



B.N option



C.    L option



D.    none of the above




  • LOTUS is an exciting and impressive piece-of
A.    computer hardware



B.    computer software



C.    computer



D.    none of the above




  •  An address that does not change if you copy the formula from one cell to another. The term of this definition is
A.    ASCII



B.    ADDRESSS                                                       



C.    ABSOLUTE ADDRESS



D.    none of the above




  •  A particular type of data locate in a column is termed as
A.    ATTRIBUTE



B.    BYTE



C.    BOOT



D.    none of the above




  • Unique location on a spread sheet identified by the intersection" between one row and one column. The term of this definition is
A.    CELL POINTER



B.    CELL



C.    BYTE



D.    none of the above




  •  Listing of files on a particular disk is termed as
A.    DISK PREFIX



B.    CELL



C.    DIRECTORY



D.    none of the above

1.  The model which provides a concrete expression of these concepts by means of two fundamental ideas — logical records and links, is called a



A.    relationship model


B.    network model


C.        hicrachical modelD. none of the above


2.  The network model has been established by


A.    CODASYL committee


B.    IBM


C.        ECA


D.    none of the above


3.  A link may be defined as the representation of an
A. objects
                               B, programs


C.  association                        D. none of the above


4.  DML is intended provide operations which ope- rate upon data stored in the


A, file                                     B. record


C. database                              D. none of the above


5.  In the hierarchical model a hierarchical schema is defined by a tree whose nodes are


A. database                            B. logical record types


C. links                                  D. none of the above


6.  The set of all values in the relations represents the contents of the


A. database                            B. record file


C. table                                   D. none of the above


7.  In hierarchical data model, the database is represented by


A. a directed graph     B.  tree structures
C. relation
                               D, none of the above


8.  A Database Management System (DBMS) is a software system capable of supporting and managing any number of independent


A. results                               B. relations


D   none of the above



9.  Support for data independence is arguably the most important feature of a


A   system                              B, database system


C. relation                               D. none of the above


10.  Distinct levels of data independence arc
A. two
                                    B. three


C. four                                    D, none of the above


11.  Database software may be divided into


A.    four distinct categories


B.     three distinct categories


C.     two distinct categories


D.    none of the above


12.  Any large software project may be divided into several


A. project phases        B.  sub projects



C   hardware                           D. none of the above


13.  Data modeling occupies an important position in the


A. database file                      B. database life cycle


C. relation                               D. none of the above


14.  The term "software engineering" implies the application of scientific knowledge and discipline to the construction of


A.    database record


B.    computer hardware system


C.    computer software system


D.    none of the above


15.  Program correctness has been a strong motivation for much of the work in software engineering and


A.    high-level language programming


B.    programming language design


C.    Pascal


D.    none of the above


Answers:
 

1
2
3
4
5
B
A
B
B
B
11
B
12
A
13
B
14
C
15
B

6
7
8

9
10
A
B
C

s


  •  For the novice, there is a recommended
A.    learning sequence

B.    sub-sequence

C.    interesting way

D.    none of the above


  •  In fact, the more you use LOTUS 1-2-3, the more you think of new and
A.    interesting ways to use it

B.    different ways to use it

C.    more complicated ways to use it

D.    none of the above


  •  LOTUS 1-2-3 operates with IBM and compatible
A.    hardware requirements only

B.    software requirements only

C.    both A and B or personal computers

D.    none of the above


  • Work sheets have been used to organize
A.    financial information only

B.    business information only

C.    financial and business information for years

D.    none of the above


  •    With the advent of the microcomputer, worksheets became
A.    electronic

B.    more complex

C.    easy

D.    none of the above


  •  Before you ran the installation program, you created a directory for the
A. WordStar files       B. programs


C. hard disk                         D. none of the above


  •  In earlier versions of WordStar, the Edit Menu was referred to as the
A,  Old Menu                       B.  Main Menu

C   Menu                               D. none of the above


  • WordStar also allows us to save a marked block of text in
A. a new file                          B. an old file

C. a program                        D. none of the above


  •  WordStar provides us reading a block of text into
A. a document                      B.  a program

C. a new file                          D.   none of the above


  • To perform any WordStar block operations, you must first mark the block of text
A.    not to be used

B.    to be used

C.    of program to be used

D.    none of the above


  •  WordStar supports
A.    documents

B.    background printing

C.    without printing

D.    none of the above


  •  All the file names that you give any WordStar document must confirm to the DOS
A.    file naming conventions

B.    and programs

C.    and document

D.    none of the above


  •  We can send dBASE reports to word processing system for editing or
A.    inclusion in other documents

B.    printing

C.    programming

D. none of the above



  •  dBASE is a data base management system for
A.    supercomputer

B.    microcomputer

C.    minicomputer

D   none of the above



  •   In computer world, a database is like our shoebox file, with a
A.    very rigid structure

B.    simple structure

C.    program

D.    none of the above


  •  There is a very important difference between human database managers and
A. computer database management systems B   any management system


C.    structure database systems

D.    none of the above


  • The computer does not understand anything
    about
A.    any information

B.    programming languages

C.    information base on its context

D.    none of die above


  • We structure our database rigidly so the
A.    computer does not mistake

B.    program can be formed

C.    database is properly occurred

D.    none of the above


  •  We can send dBASE reports to word processing systems for further editing or inclusion
A.    in other documents

B.    of programming

C.    any other information

D.    none of the above


  •  Lotus is an exciting and impressive piece of
    A. hardware computer system
B.    software computer system

C.    database

D.    none of the above


  •  Beginning in Module-2, you encounter many LOTUS
A.    commands

B.    piece of computer software

C.    1-2-3 commands

D.    none of the above


  •   The current worksheet is entirely in the
    A. computer
B.    main memory of the computer

C.    programming

D none of the above

  • The name of WordStar's directory is
    A. WS5
                                       B. WS7
C. WS4                                   D. none of the above


  • If you use WordStar on a dual-floppy system and start WordStar with drive A as the default you will need to change the logged drive to B when
A.    you put the computer on

B.    you start the program

C.    you change the drive

D.    none of the above


  • WordStar displays an alphabetical listing of as many files on the logged disk or
A.    it has room for

B.    it has directory specification

C.    it has Opening Menu

D.    none of the above

  •  An entity type may contain the declaration of another entity type, and so on, in order to define
A.    Pascal's record file

B.    hierarchical structure

C.    database

D.    none of the above


  •   Important point concerning the hierarchical model is the physical implementation of the
A. system                              B. software system

C. evaluated trees       D. none of the above



  •   The data model proposed by E.F. Codd in 1970 is called the
A.    Codd Model

B.     relational data model

C.    network model

D.    none of the above


  •  The basic idea is to consider a database as a collection of time varying tables called
A. relations                           B.  network model

C. Pascal's structure    D. none of the above



  •  The relational algebra is a set of operators which can be used to define new relations from
A. the old ones                     B. existing ones

C. system                              D. none of the above


  •  Relational algebra can be used to express
A.    relations

B.    system

C.    queries and updates

D.    none of the above


  •   SQL is a relational language which has also been implemented in several
A. DBMSs                            B. ECA

C. QUEL                              D. none of the above


  • Relational algebra is one of the basic concepts for defining
A.    high-level language

B.    relational language

C.    machine language

D.    none of the above


  • SQL is neither a pure algebraic language nor a
A.    machine language

B.    assembly language

C.    predicative language

D.    none of the above


  •   Codd shows that relational algebra is equivalent to first order
A.    differential equation

B.    predicate calculus

C.    differential calculus

D.    none of the above


  •   In SQL the statement Expand Table can be used at any time
A. old relation                      B. given relation

C. combination                    D. none of the above




  • The tutorial is designed to quickly acquaint you with the basic knowledge of
A.    Computer

B.    WordStar

C.    Software programming

D.    none of the above


  • To start WordStar on a computer with two floppy disk drives, you need to place a copy of your DOS disk in drive A before
A.    you start programming

B.    you format the disk

C.    you turn the computer on

D.    none of the above


  • Before you can start WordStar, you need to be in the directory that contains all of the
A.    WordStar programs

B.    computer technology

C.    basic working of WordStar

D.    none of the above





  •  The original WordStar was the very first software program,
A.    mention program

B.    mention word processor

C.    mention computing

D.    none of the above


  • Before a program written in high language can be executed, it must be translated into
A.    block structural language

B.    machine language

C.    structural programming language 

D.    none of the above


  •  A loop is usually the easiest way to perform a repetition task such as printing a list of
A.    a few names

B.    several hundred names

C.    One name only

D.    none of the above


  •  The syntax of a language can be described using syntax diagrams, such as those for
A.    Pascal

B.    loop

C.    sequence

D.    none of the above


  •  A program that adds three numbers together and determines the average is a
A. loop                                   B.  term

C.  sequence                           D. none of the above


  •  Those languages which are strongly oriented toward the programmer rather than toward the computer, they are termed as
A.    machine language

B.    high-level language

C.    assembly language

D.    none of the above


  •  Pascal contains statements that allow the programmer to efficiently alter the flow of program
    execution by using decision
A.    structure only

B.    loops only

C.    structures and loops

D.    none of the above


  • In block-structured language, programs are com- posed of subprograms or blocks, each designed to perform a
A.    decision structures

B.    loop

C.    specific task

D.    none of the above


  • The important feature of Pascal is that it is a general-purpose
A.    programming language

B.    high level language

C.    source program

D   none of the above



  •   Pascal programs are usually translated into machine language by a
A.    batch processing

B.    computer

C.    block

D.    none of the above


  •  There is no limit to the length of
A.    Pascal program                                                           

B.    structured programming language

C.    an identifier

D.    none of the above


  •   Assembly languages also referred to as
A.    high language program

B.    low-level languages

C.    machine language


  •  Peripheral devices consist of input devices, out- put devices and
A.    logical operation                                                

B.    secondary storage device

C.    arithmetic operation

D.    none of the above


  •  The primary storage unit temporarily stores data, programs, and
A.    physical components

B.    peripheral devices

C.    processing results

D.    none of the above


  • The central processing unit consists of the arithmetic/logic unit, which performs arithmetic and logical operations, and the control unit, which controls the operations of,
A.    CPU

B.    ALU

C.    peripheral devices

D.    none of the above

  • The relational model whose guiding ideas were published in 1970 has dominated the area of
A.    software system

B.    hardware system

C.    database research and development

D.    none of the above


  •   A link is represented by a diagram, called a  A.         Bachman diagram   B. Pascal diagram C.          Theory diagram     D. none of die above

  •    A great advantage of Modula-2 over Ada is that it is a
A. greater language     B. small language C. Pascal language     D. none of die above



  •  Integrity constraints are predicates which must be true for data stored in the
A. system                              B. hardware system

C. database                          D. none of the above


  •   In a distributed DBMS one may add a third factor which is the transmission time in the
A. relation                             B. system

C. network                           D. none of die above


  • A transaction is the unit of concurrency and A. system            B. recovery control C. software system     D. none of the above

  • A DBMS allows data manipulation through primitive operations which can be grouped to form A. data transactions     B. software system
C. hardware system     D. none of the above



  •  The INSERTION clause specifies the storage method as either AUTOMATIC or
A. DBMS                              B. MANUAL

C. CODASYL                      D. None of the above


  •  The RETENTION clause specifies the degree of freedom available to the members of a
A. database                          B. system

C. link                                   D. none of the above

  • When items stored in primary storage need to be kept permanently, they can be transferred to secondary storage. Example of secondary storage media are
A.  magnetic disks and tape


B.    air

C.    water

D.    none of the above


  •  Programs are list of instructions that a computer can use to solve a problem. A program or series of programs is called
A.    hardware

B.    software

C.    language program

D.    none of the above


  •   Pascal provides standard fifes, named
A.    input and output     B.  input only

C. output only                        D. none of the above


  • An operating system contains  A. one type of .program
B.    several types of programs

C.    only two types of programs

D.    none of the above


  •  Computers can only perform
A.    two basic operations                                              

B.    three basic operations

C.    several basic operations

D.    none of the above





  • A data model may be defined as a pattern according to which data are
A. organized                         B.  weakly organized


  •  The term 'software engineering' implies the application of scientific knowledge and discipline to the construction of
A; systems                            B. hardware systems

C. software systems    D. none of the above


  •  In software system, the data must be shared among
A. a very few users     B.  many different usersC. two users                          D. none of the above


  • One of the most important techniques for dealing with complexity in software systems is the
A.    principle of abstraction

B.    principle of stepwise refinement

C.    maintainability of the system
D  none of the above



  • Concurrency control in database management systems, including
A.    database procedure

B.    transaction

C.    alternatives to locking

D.    none of the above


  •  The developments in software engineering have led to the emergence of a
A.    programming language

B.    new class of programming language

C.    new class of system

D.    none of the above


  •  Program correctness has been a strong motivation for much of the work in software engineering and
A.    hardware system

B.    assembly language

C.    programming language design

D.    none of the above


  •  Modula-2 is a language which is suitable both for the implementation of
A.    database system only

B.    application programs

C.    database management systems and application
programs


D.    none of the above


  • The logical database design is a
A. three stage process B. two-stage process . C. four stage process   D. none of the above

  • Arithmetic and logic operations are the only types of instructions that the
(A)    CPU is able to execute


(B)    ALU is able to execute


(C)    Hardware is able to execute


(D)    none of the above



  • The primary storage unit also referred to as
(A)     main memory, primary memory


(B)     internal storage


(C)     both (A) and (B) ,(D) none of the above



  •  In a national election, the records of all the votes cast for the office of President are data when these votes are tabulated and the final total is determined, the result is called
(A) Input                                (B) information


(C) ALU                                (D) none of the above



  • A given computer system can have
(A)    only one input devices


(B)    not more than two input devices


(C)    many different input devices


(D)    none of the above



  •  Output devices; allow the user to examine the computer's output. Displaying output on the screen gives the user the results in a convenient, readable form; this output is referred to as
(A) hard copy                        (B) soft copy


(C) input devices                    (D) none of the above



  •   As with input devices, a particular computer system can have
(A)    only one output device


(B)    only two output devices


(C)    many different output devices


(D)    none of the above



  •  Disk and tape drives are commonly used
(A)    hard copy


(B)    soft copy


(C)    secondary storage devices


(D)    none of the above



  •  A computer is a device for automatically carrying out a/an :
(A)    information


(B)    instructions


(C)    program of instructions


(D)    none of the above



  •  One of the more modern programming languages is called:
(A)    higher language


(B)    Pascal


(C)    Assembly language


(D)    None of the above



  • Hardware consists of the actual
(A)    components of the computer


(B)    components of the computer system


(C)    components of the software


(D)    none of the above



  •  The component of the computer system which perform processing functions is called the
(A)    control unit


(B)    main memory


(C)    central processing unit (CPU)


(D)    none of the above



  • The arithmetic unit (ALU) performs
(A)    mathematics computations


(B)    primary memory


(C)    CPU


(D)    none of the above



  •  Peripheral devices can be divided into
(A)    four general categories


(B)    three general categories


(C)    two general categories


(D)    none of the above



  •  Programs and data that are entered into a compu­ter to be processed are called
(A)    output


(B)    input


(C)    both (A) and (B)


(D)    none of the above



  •  When data is processed, or converted to some meaningful form, this is called
(A) ALU                                (B) CPU


(C) information                      (D) none of the above



  •  In supercomputer, a machine must be capable of performing atleast
(A)  5 million arithmetic operations per second


(B)   10 million arithmetic operations per second
(C) 20 million arithmetic operations per second


(D) none of the above



  • For most business applications, the extremely high-speed processing capabilities of a super-computer
(A) are. necessary                  (B) are not necessary


(C)   both (A) and (B)     (D) none of the above



  •  Minicomputers manufactured today are more powerful than
(A) supercomputer       (B) mainframes


(C) microcomputer      (D) none of the above



  • Which of the following computer is currently the smallest and least costly computer
(A) microcomputer       (B) supercomputer
(C) mainframes
                      (D) none of the above



  •  Some programs direct the computer in its own internal operations. These are called
(A)    software


(B)    system programs


(C)    application programs


(D)    none of the above



  • The communication between the CPU and external modules takes place via the
(A) address only


(B)    data buses only


(C)    address and data buses


(D)    none of the above



  •  The SET SELECTION clause indicates how to access to set

A. occurrence                       B. a system


C, a software                        D. none of the above



  •   Once complied by the DBMS, the database scheme will be used to create and to control
A. system                              B. data storage


C.  a link                               D. none of the above



  • The way, the occurrence of an owner is linked to the occurrence of its
A. relation                             B. system


C. members                          D. none of the above



  •  The SOCRATE/CLIODDL can be used to define
A. records and file      B. relation


C. schemes                            D. none of the above



  •  In SOCRATE/CLIODDL one must specify the maximum numbers of occurrences for each
A. link                                   B. entity type


C. scheme                             D. none of the above



  •   An entity defines a block structure similar to
A.    hierarchical structure


B.    Pascal's record constructor


C.    scheme


D.    none of the above

  • If the value of maxim for the computer system used is 2147403647. Then the range of allowable integers for this particular system is
A. 2147483647 through - 2147483647


B. - 2147483647 through 2147483647


C. 2147483647 through zero


D none of the above




  • The Computer can access data stored on a hard disk more quickly than that stored
A.    on a floppy disk

B.    program


C.    memory


D.    rtbne of the above



  • The arithmetic logic shift unit (ALSU) is a combination circuit that performs a number of arith­metic and logic arid
A.  memory unit


B.     shift micro operations


C.     control memory
D. none of the above



  •  The block diagram of the processor unit con­sists Of a file of 14 registers, on ALSU, and three buses that provide the data path
A.    within the system


B.    within the unit


C.    within the tile


D.    none of the above



  • The 14 registers in the processor .unit are as­signed special (asks by the
A.    ALSU


B.    CPU


C   DOR


D  none of the above



  •  A computer usually have .several input, and output (I/O) devices, these collectively known as
A.    function unit


B.    bit-pattern


C.    peripherals


D.    none of the above



  •  In Pascal, it is impossible-for variable values oV. Constants to be used as
A   instructions


B.    bit pattern


C.    peripherals                                                                  


D.    none of the above     

  •  Irv-Pascal, in exponential notation, the number is
    written as a value which is multiplied by _10 to
A.  any power


B. the appropriate power


C.    10th power


D.    none of the above



  •  In characteristic, a plus sign (+) is to be shifted
A.    to the left a certain number of places


B.    to the zero a certain numbers of places


C.    to the right a certain number of places


D.    none of the above



  • In characteristic, a negative sign (-) indicates that the decimal point should be shifted a certain number of places
A.    to the right


B.    to the zero


C.    to the left


D. none of the above



  •  The standard identifiers are the words
A.    real only


B.    real, integer only


C.    real, integer, Boolean, and char


D.    none of the above



  •   User-defined identifiers are those identifiers that are supplied by the programmer to name objects or processes that are used
A.    within the database


B.     within the program


C.    within (lie Pascal compiler


D.    none of the above



  •  The primary storage unit in a Computer is divided into
A.    two separate storage locations only


B.    three separate storage locations only


C.    many separate storage locations only


D.    none of the above



  •   A variable has distinct characteristic
A.    a name, a type only


B.    a value,-a name only


C.    a name, a value, a type


D.    none of the .above



  •   A variable name may be any valid user-defined identifier and serve as a symbolic name for a
A.    database only


B.    language program


C.    specific location in memory


D.    none of the above



  •  In Pascal, a data type determines both the group of possible values of the variables and the allowable
A.    identifiers


B.    operations for the variable


C.    storage location


D.    none of the above



  •   DIR is used only after a read operation, to receive the data from
A- database


B.    data bus


C.    data-bus buffers


D.    none of the above



  • Eight processor Registers are used as for manipulating data through
A.    data bus ,


B.    database   


C.    program instructor


D.    none of the above



  • The program counter, can be changed by the programmer by means of
A. branch type instructions


B. ordinary instructions


C: programming language


D. none of the above     



  • The basic model -for a digital computer is still
    known  as the
A. Pascal machine


B.    Neumann machine


C.    Charles Babbage machine


D. none of the above



  • The structure, for A sample Digital Computer
    referred to    
A. SDC                           


B. SDCc .


C. SDQcc


D. none Of trie above



  • The two main categories of software are application software and
A.    machine language


B.    system software


C.    high-level languages


D. none of the above



  •  Some digital computers are called decimal/ computers because
A.    decimal number can not be read in such computer


B.     decimal number can be read in such computer


C.     it does not contain decimal number


D.    none of the above



  •  Which computer is often found In small busi­nesses and in homes and classrooms?
A.    mainframe


B.    supercomputer


C.    microcomputer
D. none of the above



  •  Which computer's primary storage unit is usually smaller than that of the other types of computer?
 A.  minicomputer


B.    microcomputer


C.    supercomputer


D.    none of the above                                                  



  •   A computer which uses a series of digits to represent all types of information is called
A.   a digital computer


B.     an analogue computer


C.    super computer


D.    none of the above

  • We can combine dBASE power with other software systems by transferring
A.    files to an fro dBASE


B.    program to another program


C.    files to an fro Database


D.    none of the above




  •  It is not possible to declare all the functions on an entity, or all of the subtypes, at the
A.    existing data

B.    entire database
C.  module creation


D. none of the above



  •   Integrity constraints are predicates which must be free for data stored in
A.    an entity


B.    the database


C.    the system


D.    none of the above



  • One of the aspects of data integrity is related to data access and
A.    on the database


B.    the language programming


C.    privacy problems


D.    none of the above



  • A DBMS allows data manipulation through primitive operations which can be grouped to form
A.    database transactions


B.    database modification


C.    software modules                                      
D.    none of the above



  • The INGRES system is composed with
A.    one module


B.    two modules


C.    four modules


D.    none of the above



  •  QUEL is interpreted by the
A.    DBMS system


B.    INGRES system


C.    SQL system


D.    none of the above



  • It is also possible to access the relational DBMS through application program written in
A.    high-level programming language


B.    Pascal language programming


C.    procedural language


D.    none of the above



  • We can send dBASE reports to word processing systems for further editing or inclusion
A. in other programs


B. in other documents


C.    in other systems


D.    none of the above



  •  The top three lines in a LOTUS 1-2-3 is termed as
A.    PANEL


B.    CONTROL PANEL


C.    EXTENSION


D.    none of the above



  • The module scheme does not provide one of the common features of modules in programming, namely
A.    the accessing a number of shared modules


B.    the hiding of names


C.    and the partitioning of the same space


D.    both B and C



  •  Modules of the kind used in ADA and Module-2 allow one to declare a collection of procedures and functions that
A.   hiding the names


B.    reference each other


C.   partitioning of the same space


D.   none of the above



  •  The advantage of using storage system like binary relations or triples which does not keep all the function values on
A.    an entity together


B.    entire database
C existing data


D. none of the above



  •  SQL is a relational language which has also been implemented in several
A. DBMSs                             B. QUEL


C. INGRES                          D. none of the above



  •  Several relational languages have been defined for different
A.    relational DBMS ,


B.    relational DBMSs


C.    QUEL languages


D.    none of the above



  • Relational algebra is one of the basic concepts for defining
A.    programming languages


B.    relational languages


C.  high-level programming language D. none of the above



  • Using the operators of relational algebra one may manipulate and query the database in a
A.    non-homogeneous manner


B.    homogeneous manner


C.    both A and B


D.    none of the above



  •   Modula-2 is an ideal language for interacting with an existing DBMS, where a suitable module
A.    has not been provided


B.    has been provided


C.    both A and B


D.    none of the above



  •  Locking mechanism guarantees exclusive access to an item of data while a lock
A.    has not been used


B.    is in force ,


C.    both A and B


D.    none of the above



  • The ability to define such abstract objects, together with appropriate operations, is invaluable for
A.    programming language


B.    high-level programming language


C.    database applications


D.    none of the above



  •  One of the most important technique for dealing with complexity in software system is the principle of
A.    programming language


B.    abstraction


C.    database technology


D.    hone of the above



  • The term 'software engineering' implies the application of scientific knowledge to the construction of
A.    computer software systems


B.    computer hardware systems


C.    high-level programming language


D.    none of the above



  •  By error we mean any deviation from the behavior stipulated by the
A.    database system


B.    requirements analysis


C.    incorrect data modeling


D.    none of the above



  •   By implementation we mean the transformation of our design into a database system which operates on a particular machine, usually under the control of
A.    software system


B.    hardware system


D. none of the above



  •  Boolean variables are sometimes referred to as
A.    variables


B.    real variables


C.    logical variables


D.    none of the above



  • In Pascal, decimal notation, requires that a real number contains at least one digit before and after the
A.    exponential notation


B.    decimal point


C.    zero


D.    none of the above