Information Technology GK
5. Which of the following describes the correct format of an input instruction?
a) IN 82
b) INPUT 82
c) INP 82
d) 82 INP
ans
a
a
13. Elements in an array are accessed _____________
a) randomly
b) sequentially
c) exponentially
d) logarithmically
1. A monitor is a type of :
a) semaphore
b) low level synchronization construct
c) high level synchronization construct
d) none of the mentioned
Answer: c
2. A monitor is characterized by :
a) a set of programmer defined operators
b) an identifier
c) the number of variables in it
d) all of the mentioned
Answer: a
3. A procedure defined within a ________ can access only those variables declared locally within the _______ and its formal parameters.
a) process, semaphore
b) process, monitor
c) semaphore, semaphore
d) monitor, monitor
Answer: d
4. The monitor construct ensures that :
a) only one process can be active at a time within the monitor
b) n number of processes can be active at a time within the monitor (n being greater than 1)
c) the queue has only one process in it at a time
d) all of the mentioned
Answer: a
5. The operations that can be invoked on a condition variable are :
a) wait & signal
b) hold & wait
c) signal & hold
d) continue & signal
Answer: a
6. The process invoking the wait operation is :
a) suspended until another process invokes the signal operation
b) waiting for another process to complete before it can itself call the signal operation
c) stopped until the next process in the queue finishes ex*****on
d) none of the mentioned
Answer: a
7. If no process is suspended, the signal operation :
a) puts the system into a deadlock state
b) suspends some default process’ ex*****on
c) nothing happens
d) the output is unpredictable
Answer: c
1. Concurrent access to shared data may result in
a) data consistency
b) data insecurity
c) data inconsistency
d) none
Answer c
2. A situation where several processes access and manipulate the same data concurrently and the outcome of the ex*****on depends on the particular order in which access takes place is called
a) data consistency
b) race condition
c) aging
d) starvation
Answer b
3. The segment of code in which the process may change common variables, update tables, write into files is known as
a) program
b) critical section
c) non – critical section
d) synchronizing
Answer b
4. The following three conditions must be satisfied to solve the critical section problem
a) Mutual Exclusion
b) Progress
c) Bounded Waiting
d) All of the mentioned
Answer d
5. Mutual exclusion implies that
a) if a process is executing in its critical section, then no other process must be executing in their critical sections
b) if a process is executing in its critical section, then other processes must be executing in their critical sections
c) if a process is executing in its critical section, then all the resources of the system must be blocked until it finishes ex*****on
d) none of the mentioned
Answer a
6. Bounded waiting implies that there exists a bound on the number of times a process is allowed to enter its critical section
a) after a process has made a request to enter its critical section and before the request is granted
b) when another process is in its critical section
c) before a process has made a request to enter its critical section
d) none of the mentioned
Answer a
7. A minimum of _____ variable(s) isare required to be shared between processes to solve the critical section problem.
a) one
b) two
c) three
d) four
Answer b
Click here to claim your Sponsored Listing.
Category
Contact the business
Telephone
Website
Address
Kathmandu
44600