💻

Operating System MCQs

1K+ questions with answers

501

Which one of the following is not a secondary storage?

a Magnetic disks
b Magnetic tapes
c RAM
d None of the mentioned
Medium
View Details →
502

Which private network uses storage protocol rather than networking protocol?

a storage area network
b local area network
c wide area network
d none of the mentioned
Medium
View Details →
503

The time for the disk arm to move the heads to the cylinder containing the desired sector is called ___________

a disk time
b seek time
c arm time
d sector time
Medium
View Details →
504

Which algorithm of disk scheduling selects the request with the least seek time from the current head positions?

a SSTF scheduling
b FCFS scheduling
c SCAN scheduling
d LOOK scheduling
Medium
View Details →
505

The operating system is responsible for?

a disk initialization
b booting from disk
c bad-block recovery
d all of the mentioned
Medium
View Details →
506

A swap space can reside in ___________

a Separate disk partition
b RAM
c Cache
d None of the mentioned
Medium
View Details →
507

When we write something on the disk, which one of the following can not happen?

a successful completion
b partial failure
c total failure
d none of the mentioned
Medium
View Details →
508

What will happen during the recovery from a failure?

a each pair of physical block is examined
b specified pair of physical block is examined
c first pair of physical block is examined
d none of the mentioned
Medium
View Details →
509

The replacement of a bad block generally is not totally automatic because ___________

a data in bad block can not be replaced
b data in bad block is usually lost
c bad block does not contain any data
d none of the mentioned
Medium
View Details →
510

Linux uses a time-sharing algorithm ___________

a to pair preemptive scheduling between multiple processes
b for tasks where absolute priorities are more important than fairness
c all of the mentioned
d none of the mentioned
Medium
View Details →
511

The first linux kernel which supports the SMP hardware?

a linux 0.1
b linux 1.0
c linux 1.2
d linux 2.0
Medium
View Details →
512

Which one of the following linux file system does not support journaling feature?

a ext2
b ext3
c ext4
d none of the mentioned
Medium
View Details →
513

Which binary format is supported by linux?

a a.out
b elf
c both a.out and ELF
d none of the mentioned
Medium
View Details →
514

Which one of the following bootloader is not used by linux?

a GRUB
b LILO
c NTLDR
d None of the mentioned
Medium
View Details →
515

The first process launched by the linux kernel is ___________

a init process
b zombie process
c batch process
d boot process
Medium
View Details →
516

Standard set of functions through which interacts with kernel is defined by ___________

a system libraries
b kernel code
c compilers
d utility programs
Medium
View Details →
517

What is Linux?

a single user, single tasking
b single user, multitasking
c multi user, single tasking
d multi user, multitasking
Medium
View Details →
518

Which one of the following is not a linux distribution?

a debian
b gentoo
c open SUSE
d multics
Medium
View Details →
519

Which one of the following is not shared by threads?

a program counter
b stack
c both program counter and stack
d none of the mentioned
Medium
View Details →
520

A process can be ___________

a single threaded
b multithreaded
c both single threaded and multithreaded
d none of the mentioned
Medium
View Details →
521

If one thread opens a file with read privileges then ___________

a other threads in the another process can also read from that file
b other threads in the same process can also read from that file
c any other thread can not read from that file
d all of the mentioned
Medium
View Details →
522

The time required to create a new thread in an existing process is ___________

a greater than the time required to create a new process
b less than the time required to create a new process
c equal to the time required to create a new process
d none of the mentioned
Medium
View Details →
523

When the event for which a thread is blocked occurs?

a thread moves to the ready queue
b thread remains blocked
c thread completes
d a new thread is provided
Medium
View Details →
524

The jacketing technique is used to ___________

a convert a blocking system call into non blocking system call
b create a new thread
c communicate between threads
d terminate a thread
Medium
View Details →
525

Which one of the following is not a valid state of a thread?

a running
b parsing
c ready
d blocked
Medium
View Details →
526

The register context and stacks of a thread are deallocated when the thread?

a terminates
b blocks
c unblocks
d spawns
Medium
View Details →
527

Thread synchronization is required because ___________

a all threads of a process share the same address space
b all threads of a process share the same global variables
c all threads of a process can share the same files
d all of the mentioned
Medium
View Details →
528

A thread is also called ___________

a Light Weight Process(LWP)
b Heavy Weight Process(HWP)
c Process
d None of the mentioned
Medium
View Details →
529

A thread shares its resources(like data section, code section, open files, signals) with ___________

a other process similar to the one that the thread belongs to
b other threads that belong to similar processes
c other threads that belong to the same process
d all of the mentioned
Medium
View Details →
530

A heavy weight process ___________

a has multiple threads of execution
b has a single thread of execution
c can have multiple or a single thread for execution
d none of the mentioned
Medium
View Details →
531

A process having multiple threads of control implies ___________

a it can do more than one task at a time
b it can do only one task at a time, but much faster
c it has to use only one thread per process
d none of the mentioned
Medium
View Details →
532

Multithreading an interactive program will increase responsiveness to the user by ___________

a continuing to run even if a part of it is blocked
b waiting for one part to finish before the other begins
c asking the user to decide the order of multithreading
d none of the mentioned
Medium
View Details →
533

Resource sharing helps ___________

a share the memory and resources of the process to which the threads belong
b an application have several different threads of activity all within the same address space
c reduce the address space that a process could potentially use
d all of the mentioned
Medium
View Details →
534

The kernel is _______ of user threads.

a a part of
b the creator of
c unaware of
d aware of
Medium
View Details →
535

If the kernel is single threaded, then any user level thread performing a blocking system call will ___________

a cause the entire process to run along with the other threads
b cause the thread to block with the other threads running
c cause the entire process to block even if the other threads are available to run
d none of the mentioned
Medium
View Details →
536

Because the kernel thread management is done by the Operating System itself ___________

a kernel threads are faster to create than user threads
b kernel threads are slower to create than user threads
c kernel threads are easier to manage as well as create then user threads
d none of the mentioned
Medium
View Details →
537

If a kernel thread performs a blocking system call, ____________

a the kernel can schedule another thread in the application for execution
b the kernel cannot schedule another thread in the same application for execution
c the kernel must schedule another thread of a different application for execution
d the kernel must schedule another thread of the same application on a different processor
Medium
View Details →
538

Which of the following is FALSE?

a Context switch time is longer for kernel level threads than for user level threads
b User level threads do not need any hardware support
c Related kernel level threads can be scheduled on different processors in a multiprocessor system
d Blocking one kernel level thread blocks all other related threads
Medium
View Details →
539

The model in which one kernel thread is mapped to many user-level threads is called ___________

a Many to One model
b One to Many model
c Many to Many model
d One to One model
Medium
View Details →
540

The model in which one user-level thread is mapped to many kernel level threads is called ___________

a Many to One model
b One to Many model
c Many to Many model
d One to One model
Medium
View Details →
541

In the Many to One model, if a thread makes a blocking system call ___________

a the entire process will be blocked
b a part of the process will stay blocked, with the rest running
c the entire process will run
d none of the mentioned
Medium
View Details →
542

In the Many to One model, multiple threads are unable to run in parallel on multiprocessors because of ___________

a only one thread can access the kernel at a time
b many user threads have access to just one kernel thread
c there is only one kernel thread
d none of the mentioned
Medium
View Details →
543

The One to One model allows ___________

a increased concurrency
b decreased concurrency
c increased or decreased concurrency
d concurrency equivalent to other models
Medium
View Details →
544

In the One to One model when a thread makes a blocking system call ___________

a other threads are strictly prohibited from running
b other threads are allowed to run
c other threads only from other processes are allowed to run
d none of the mentioned
Medium
View Details →
545

When is the Many to One model at an advantage?

a When the program does not need multithreading
b When the program has to be multi-threaded
c When there is a single processor
d None of the mentioned
Medium
View Details →
546

In the Many to Many model true concurrency cannot be gained because ___________

a the kernel can schedule only one thread at a time
b there are too many threads to handle
c it is hard to map threads with each other
d none of the mentioned
Medium
View Details →
547

In the Many to Many models when a thread performs a blocking system call ___________

a other threads are strictly prohibited from running
b other threads are allowed to run
c other threads only from other processes are allowed to run
d none of the mentioned
Medium
View Details →
548

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

a fork
b exec
c ioctl
d longjmp
Medium
View Details →
549

The following program results in the creation of? main() { if(fork()>0) sleep(100); }

a an orphan process
b a zombie process
c a process that executes forever
d none of the mentioned
Medium
View Details →
550

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

a fork
b exec
c ioctl
d longjmp
Medium
View Details →