Unix/Lunux/Linux MCQ QUESTIONS AND ANSWER Sample Test,Sample questions

Question:
A fork system call will fail if :

1.the previously executed statement is also a fork call

2.the limit on the maximum number of processes in the system would be executed

3. the limit on the minimum number of processes that can be under execution by a single user would be executed

4. all of the mentioned

Posted Date:-2024-01-30 14:36:34


Question:
A page fault occurs when :

1.a page gives inconsistent data

2.a page cannot be accesses due to its absence from memory

3. a page is invisible

4. all of the mentioned

Posted Date:-2024-01-30 15:08:24


Question:
Cancellation point is the point where :

1.the thread can be cancelled – safely or otherwise doesnt matter

2.the thread can be cancelled safely

3.the whole process can be cancelled safely

4.none of the mentioned

Posted Date:-2024-01-30 14:40:34


Question:
Each connection arriving at multi threaded servers via network is generally :

1.is directly put into the blocking queue

2.is wrapped as a task and passed on to a thread pool

3.Is kept in a normal queue and then sent to the blocking queue from where it is dequeued

4.none of the mentioned

Posted Date:-2024-01-30 15:01:52


Question:
If a process does not call exec after forking,

1. the program specified in the parameter to exec will replace the entire process

2. all the threads should be duplicated

3.all the threads should not be duplicated

4.none of the mentioned

Posted Date:-2024-01-30 14:37:47


Question:
If a thread invokes the exec system call,

1. only the exec executes as a separate process.

2.the program specified in the parameter to exec will replace the entire process

3. the exec is ignored as it is invoked by a thread.

4. none of the mentioned

Posted Date:-2024-01-30 14:36:59


Question:
If exec is called immediately after forking,

1. the program specified in the parameter to exec will replace the entire process

2. all the threads will be duplicated

3.all the threads may be duplicated

4. none of the mentioned

Posted Date:-2024-01-30 14:37:22


Question:
If multiple threads are concurrently searching through a database and one thread returns the result then the remaining threads must be :

1.continued

2.cancelled

3. protected

4. none of the mentioned

Posted Date:-2024-01-30 14:40:58


Question:
If the memory access time is denoted by ‘ma’ and ‘p’ is the probability of a page fault (0 <= p <= 1). Then the effective access time for a demand paged memory is :

1. p x ma + (1-p) x page fault time

2.ma + page fault time

3. (1-p) x ma + p x page fault time

4.none of the mentioned

Posted Date:-2024-01-30 15:09:07


Question:
If the thread pool contains no available thread :

1.the server runs a new process

2. the server goes to another thread pool

3.the server demands for a new pool creation

4.the server waits until one becomes free

Posted Date:-2024-01-30 15:02:44


Question:
In most cases, if a process is sent a signal while it is executing a system call :

1.the system call will continue execution and the signal will be ignored completely

2.the system call is interrupted by the signal, and the signal handler comes in

3. the signal has no effect until the system call completes

4. none of the mentioned

Posted Date:-2024-01-30 15:00:03


Question:
In UNIX, the _____ system call is used to send a signal.

1.sig

2.send

3.kill

4.sigsend

Posted Date:-2024-01-30 15:00:34


Question:
In virtual memory. the programmer __________ of overlays.

1.has to take care

2.does not have to take care

3. all of the mentioned

4. none of the mentioned

Posted Date:-2024-01-30 15:06:08


Question:
Instead of starting a new thread for every task to execute concurrently, the task can be passed to a _________

1.process

2.thread pool

3. thread queue

4.none of the mentioned

Posted Date:-2024-01-30 15:01:19


Question:
Segment replacement algorithms are more complex than page replacement algorithms because :

1. Segments are better than pages

2. Pages are better than segments

3. Segments have variable sizes

4.Segments have fixed sizes

Posted Date:-2024-01-30 15:06:51


Question:
Signals are identified by :

1.signal identifiers

2. signal handlers

3. signal actions

4.none of the mentioned

Posted Date:-2024-01-30 14:42:56


Question:
Signals of a given type :

1. are queued

2.are all sent as one

3. cannot be queued

4. none of the mentioned

Posted Date:-2024-01-30 14:42:03


Question:
Signals that occur at the same time, are presented to the process :

1. one at a time, in a particular order

2.one at a time, in no particular order

3.all at a time

4.none of the mentioned

Posted Date:-2024-01-30 14:41:22


Question:
The ability to execute a program that is only partially in memory has benefits like :

1. The amount of physical memory cannot put a constraint on the program

2.Programs for an extremely large virtual space can be created

3. Throughput increases

4.All of the mentioned

Posted Date:-2024-01-30 15:05:44


Question:
The idea behind thread pools is :

1.a number of threads are created at process startup and placed in a pool where they sit and wait for work

2. when a process begins, a pool of threads is chosen from the many existing and each thread is allotted equal amount of work

3.all threads in a pool distribute the task equally among themselves

4. none of the mentioned

Posted Date:-2024-01-30 15:02:16


Question:
The number of the threads in the pool can be decided on factors such as :

1.number of CPUs in the system

2.amount of physical memory

3.expected number of concurrent client requests

4. all of the mentioned

Posted Date:-2024-01-30 15:03:54


Question:
The three ways in which a process responds to a signal are :

1. ignoring the signal

2. handling the signal

3. performing some default action

4.all of the mentioned

Posted Date:-2024-01-30 14:42:31


Question:
The usefulness of signals as a general inter process communication mechanism is limited because :

1.they do not work between processes

2.they are user generated

3. they cannot carry information directly

4. none of the mentioned

Posted Date:-2024-01-30 14:59:22


Question:
The valid – invalid bit, in this case, when valid indicates :

1.the page is not legal

2. the page is illegal

3.the page is in memory

4. the page is not in memory

Posted Date:-2024-01-30 15:08:03


Question:
The _______ maintains pending and blocked bit vectors in context of each process.

1.CPU

2.Memory

3.Process

4.Kernel

Posted Date:-2024-01-30 14:58:51


Question:
Thread pools are useful when :

1. when we need to limit the number of threads running in the application at the same time

2. when we need to limit the number of threads running in the application as a whole

3.when we need to arrange the ordering of threads

4. none of the mentioned

Posted Date:-2024-01-30 15:00:56


Question:
Thread pools help in :

1. servicing multiple requests using one thread

2. servicing a single request using multiple threads from the pool

3.aster servicing of requests with an existing thread rather than waiting to create a new thread

4.none of the mentioned

Posted Date:-2024-01-30 15:03:08


Question:
Thread pools limit the number of threads that exist at any one point, hence :

1. not letting the system resources like CPU time and memory exhaust

2. helping a limited number of processes at a time

3. not serving all requests and ignoring many

4. none of the mentioned

Posted Date:-2024-01-30 15:03:31


Question:
Using a pager :

1. increases the swap time

2. decreases the swap time

3.decreases the swap time &amount of physical memory needed

4. increases the amount of physical memory needed

Posted Date:-2024-01-30 15:07:42


Question:
Virtual memory is normally implemented by ________

1. demand paging

2.buses

3.virtualization

4. all of the mentioned

Posted Date:-2024-01-30 15:06:27


Question:
When a process blocks the receipt of certain signals :

1. The signals are delivered

2. The signals are not delivered

3. The signals are received until they are unblocked

4.The signals are received by the process once they are delivered

Posted Date:-2024-01-30 14:43:19


Question:
When a web page is loading, and the user presses a button on the browser to stop loading the page :

1. the thread loading the page continues with the loading

2. the thread loading the page does not stop, but continues with another task

3.the thread loading the page is paused

4.the thread loading the page is cancelled

Posted Date:-2024-01-30 14:38:41


Question:
When the target thread periodically checks if it should terminate and terminates itself in an orderly manner, it is called :

1.Asynchronous cancellation

2. Systematic cancellation

3.Sudden Termination

4.Deferred cancellation

Posted Date:-2024-01-30 14:39:44


Question:
Which of the following calls never returns an error ?

1.getpid

2.fork

3.ioctl

4.open

Posted Date:-2024-01-30 14:35:50


Question:
Which of the following is not TRUE :

1. Processes may send each other signals

2. Kernel may send signals internally

3.a field is updated in the signal table when the signal is sent

4. each signal is maintained by a single bit

Posted Date:-2024-01-30 14:41:44


Question:
Which of the following system calls does not return control to the calling point, on termination ?

1.fork

2. exec

3.ioctl

4.longjmp

Posted Date:-2024-01-30 14:34:42


Question:
A swapper manipulates ___________ whereas the pager is concerned with individual _______ of a process.

1. the entire process, parts

2. all the pages of a process, segments

3.the entire process, pages

4.none of the mentioned

Posted Date:-2024-01-30 15:07:18


Question:
Cancelling a thread asynchronously :

1. frees all the resources properly

2. may not free each resource

3.spoils the process execution

4.none of the mentioned

Posted Date:-2024-01-30 14:40:08


Question:
Thread cancellation is :

1.the task of destroying the thread once its work is done

2.the task of removing a thread once its work is done

3. the task of terminating a thread before it has completed

4. none of the mentioned

Posted Date:-2024-01-30 14:38:13


Question:
When a page fault occurs, the state of the interrupted process is :

1.disrupted

2.invalid

3.saved

4. none of the mentioned

Posted Date:-2024-01-30 15:08:44


Question:
When one thread immediately terminates the target thread, it is called :

1. Asynchronous cancellation

2.Systematic cancellation

3.Sudden Termination

4.Deferred cancellation

Posted Date:-2024-01-30 14:39:05


Question:
Which of the following system calls transforms executable binary file into a process ?

1. fork

2. exec

3.ioctl

4. longjmp

Posted Date:-2024-01-30 14:35:28


Question:
____ is the concept in which a process is copied into main memory from the secondary memory according to the requirement.

1. Paging

2.Demand paging

3.Segmentation

4. Swapping

Posted Date:-2024-01-30 15:04:21


More MCQS

  1. Unix MCQS Set 1
  2. Unix MCQS Set 2
  3. Unix MCQS Set 3
  4. Unix MCQS Set 4
  5. Linux Mcqs Questions Set 1
  6. Linux Mcqs Questions Set 2
  7. Linux Mcqs Questions Set 3
  8. Linux Mcqs Questions Set 4
  9. Linux Mcqs Questions Set 5
  10. Linux Mcqs Questions Set 6
  11. Linux Mcqs Questions Set 7
  12. Linux Mcqs Questions Set 8
  13. Linux Mcqs Questions Set 9
  14. Linux Mcqs Questions Set 10
  15. Linux Mcqs Questions Set 11
  16. Linux Mcqs Questions Set 12
  17. Linux Mcqs Questions Set 13
  18. Linux Mcqs Questions Set 14
  19. Unix MCQ Set 01
  20. Unix MCQ Set 02
  21. UNIX SYSTEM Mcq
  22. Unix MCQ
  23. Linux MCQ Unit 1
  24. Linux MCQ Unit 2
  25. LINUX MCQ QUESTIONS AND ANSWER
  26. Linux File Permissions MCQ Questions Answers
  27. Linux Administration MCQ question and answer
  28. Linux MCQ QUESTIONS AND ANSWER
Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!