Computer Science :: All Aptitude Test ::

1.If a process is executing in its critical section, then no other processes can be executing in their critical section. This condition is called
A. mutual exclusion
B. critical exclusion
C. synchronous exclusion
D. mutual exclusion

2.Which one of the following is a synchronization tool?
A. thread
B. pipe
C. semaphore
D. thread

3.A semaphore is a shared integer variable
A. that can not drop below zero
B. that can not be more than zero
C. that can not drop below one
D. that can not drop below zero

4.Mutual exclusion can be provided by the
A. mutex locks
B. binary semaphores
C. both (a) and (b)
D. mutex locks

5.When high priority task is indirectly preempted by medium priority task effectively inverting the relative priority of the two tasks, the scenario is called
A. priority inversion
B. priority removal
C. priority exchange
D. priority inversion

6.Process synchronization can be done on
A. hardware level
B. software level
C. Both (a) and (b)
D. hardware level

7.A monitor is a module that encapsulates
A. shared data structures
B. procedures that operate on shared data structure
C. synchronization between concurrent procedure invocation
D. shared data structures

8.To enable a process to wait within the monitor,
A. a condition variable must be declared as condition
B. condition variables must be used as boolean objects
C. semaphore must be used
D. a condition variable must be declared as condition

9.Restricting the child process to a subset of the parent’s resources prevents any process from :
A. overloading the system by using a lot of secondary storage
B. under-loading the system by very less CPU utilization
C. overloading the system by creating a lot of sub-processes
D. overloading the system by using a lot of secondary storage

10.A parent process calling _____ system call will be suspended until children processes terminate.
A. wait
B. fork
C. exit
D. wait

11.Cascading termination refers to termination of all child processes before the parent terminates ______.
A. Normally
B. Abnormally
C. Both (a) and (b)
D. Normally

12.With ……………. only one process can execute at a time; meanwhile all other process are waiting for the processor. With ………….. more than one process can be running simultaneously each on
A. Multiprocessing, Multiprogramming
B. Multiprogramming, Uniprocessing
C. Multiprogramming, Multiprocessing
D. Multiprocessing, Multiprogramming

13. In UNIX, each process is identified by its :
A. Process Control Block
B. Device Queue
C. Process Identifier
D. Process Control Block

14. In UNIX, the return value for the fork system call is _____ for the child process and _____ for the parent process.
A. A Negative integer, Zero
B. Zero, A Negative integer
C. Zero, A nonzero integer
D. A Negative integer, Zero

15.The child process can :
A. be a duplicate of the parent process
B. never be a duplicate of the parent process
C. have another program loaded into it
D. be a duplicate of the parent process

16.The child process completes execution,but the parent keeps executing, then the child process is known as :
A. Orphan
B. Zombie
C. Body
D. Orphan

17.Inter process communication :
A. allows processes to communicate and synchronize their actions when using the same address space.
B. allows processes to communicate and synchronize their actions without using the same address space.
C. allows the processes to only synchronize their actions without communication.
D. allows processes to communicate and synchronize their actions when using the same address space.

18.Messages sent by a process :
A. have to be of a fixed size
B. have to be a variable size
C. can be fixed or variable sized
D. have to be of a fixed size

19.The link between two processes P and Q to send and receive messages is called :
A. communication link
B. message-passing link
C. synchronization link
D. communication link

20.Which of the following are TRUE for direct communication :
A. A communication link can be associated with N number of process(N = max. number of processes supported by system)
B. A communication link can be associated with exactly two processes
C. Exactly one link exists between each pair of processes
D. A communication link can be associated with N number of process(N = max. number of processes supported by system)

21. Free of cost repair of software bug available at Internet is called ….
A. Version
B. Ad-on
C. Tutorial
D. Version

22.The Internet was originally a project of which agency?
A. ARPA
B. NSF
C. NSA
D. ARPA

23.Which of the following is a correct format of Email address?
A. name@website@info
B. [email protected]
C. www.nameofebsite.com
D. name@website@info

24.HTML is used to create
A. machine language program
B. high level program
C. web page
D. machine language program

25. The computer jargon - WWWW, stands for :
A. World Wide Web Worm
B. World Wide Wildlife Web
C. World Wide Women's Web
D. World Wide Web Worm

26. The process of transferring files from a computer on the Internet to your computer is called
A. Uploading
B. Forwarding
C. FTP
D. Uploading

27.In internet terminology IP means
A. Internet Provider
B. Internet Protocol
C. Internet Procedure
D. Internet Provider

28.A Web site's front page /main page is called
A. Browser Page
B. Search Page
C. Home Page
D. Browser Page

29.Which one of the following is not a search engine?
A. Bing
B. Google
C. Yahoo
D. Bing

30.Verification of a login name and password is known as:
A. configuration
B. accessibility
C. authentication
D. configuration


Date to Date Current Affairs 2022

PakMCQs.net

Quick Links

GAT Subject



   Computer Science    English Mcqs    Agriculture    

Engineering



   Computer Science    Civil Engineering    

Technical



   Networking    Electronics    Database    

Past Papers



   Model Papers    FPSC Papers