Explore topic-wise MCQs in Testing Subject.

This section includes 657 Mcqs, each offering curated multiple-choice questions to sharpen your Testing Subject knowledge and support exam preparation. Choose a topic below to get started.

1.

The first process launched by the linux kernel is ___________

A. init process
B. zombie process
C. batch process
D. boot process
Answer» B. zombie process
2.

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
Answer» B. for tasks where absolute priorities are more important than fairness
3.

How many types of Linux files are typically used?

A. 2
B. 3
C. 4
D. 5
Answer» D. 5
4.

Which character is known as a root directory?

A. ^
B. &
C. &&
D. /
Answer» E.
5.

Which of the following are grouped into directories and subdirectories?

A. register
B. memory
C. files
D. routines
Answer» D. routines
6.

Which of the following is an alternate source of UNIX?

A. MS-DOS
B. Windows 3.1
C. Windows NT
D. Linux
Answer» B. Windows 3.1
7.

Which of the following is a UNIX clone?

A. XENIX
B. Windows 3.1
C. Windows NT
D. Linux
Answer» B. Windows 3.1
8.

Which of the following is the first version of the UNIX operating system?

A. PDP-2
B. Linux
C. MS-DOS
D. PDP-7
Answer» E.
9.

What does MULTICS stand for?

A. multiplexed information and computing service
B. multiplexed information and code service
C. multiplexed inter-access code service
D. multiplexed inter-code sensor
Answer» B. multiplexed information and code service
10.

Who had first described UNIX in an article?

A. Ken Thompson
B. Dennis Ritchie and Ken Thompson
C. Dennis Ritchie
D. Linus Torvalds
Answer» C. Dennis Ritchie
11.

Which of the following is similar to UNIX OS?

A. Windows NT
B. MS-DOS
C. Linux
D. Windows 3.1
Answer» D. Windows 3.1
12.

Who started Linux first as a personal project?

A. Linus Torvalds
B. Ken Thompson
C. Dennis Ritchie
D. John Dell
Answer» B. Ken Thompson
13.

Whenever non-static member functions are called _____________

A. Address of the object is passed implicitly as an argument
B. Address of the object is passed explicitly as an argument
C. Address is specified globally so that the address is not used again
D. Address is specified as return type of the function
Answer» B. Address of the object is passed explicitly as an argument
14.

Which feature can be implemented using encapsulation?

A. Inheritance
B. Abstraction
C. Polymorphism
D. Overloading
Answer» C. Polymorphism
15.

Sysconf(_SC_PAGE_SIZE) returns?

A. size of the page
B. max size of the page
C. min size of the page
D. paging allowed or not
Answer» B. max size of the page
16.

shared memory can be used for?

A. read only operations
B. append
C. read or read write operations
D. write only
Answer» D. write only
17.

The terminal used by a Daemon process is:

A. any terminal
B. no terminal
C. root terminal
D. system console
Answer» C. root terminal
18.

Daemon process is a?

A. group leader
B. Session leader
C. orphan process
D. all of the mentioned
Answer» E.
19.

______________ timer is decremented only when the process is executing

A. ITIMER_REAL
B. ITIMER_VIRTUAL
C. ITIMER_PROF
D. None of the mentioned
Answer» C. ITIMER_PROF
20.

x86 architecture uses big endian or little endian addressing mechanism?

A. little-endian
B. endian
C. big-endian
D. none of the mentioned
Answer» B. endian
21.

Which of the following exec call is a system call?

A. execl
B. execlp
C. execve
D. execvp
Answer» D. execvp
22.

System call can be implemented using which assembly instruction(s) on x86 processors?

A. int 0×80
B. sysenter
C. both int 0×80 & sysenter
D. both int 0×80 & sysenter
Answer» D. both int 0×80 & sysenter
23.

Section 2 of manpage describes

A. Commands
B. System calls
C. Function calls
D. Drivers
Answer» C. Function calls
24.

Pick the run level to run Linux in multi user mode with networking?

A. 0
B. 3
C. 5
D. 6
Answer» C. 5
25.

Runlevel system command is used for?

A. getting the present and previous runlevel of the system
B. setting the runlevel attribute of the system in the inittab file
C. can be used to restart or reboot the system
D. all of the mentioned
Answer» E.
26.

Monolithic kernel

A. is highly extensiblity
B. has less run time overhead
C. smaller than micro level
D. suitable for real time system
Answer» C. smaller than micro level
27.

UNIX/Linux kernel is?

A. Monolithic
B. Micro
C. Exo
D. Nano
Answer» B. Micro
28.

A communication end-point is identified by

A. ip address
B. port number
C. both IP address and port number
D. none of the mentioned
Answer» D. none of the mentioned
29.

A server which is handling many clients at a time is called as

A. single server
B. multiserver
C. concurrent server
D. iterative server
Answer» D. iterative server
30.

A server which is handling one client at a time is called as

A. single server
B. multiserver
C. concurrent server
D. iterative server
Answer» E.
31.

Race condition can be avoided by using

A. semaphore
B. mutex
C. socket
D. both semaphore & mutex
Answer» E.
32.

Which call to use to set the resource count of semaphore?

A. semget( )
B. semctl( )
C. sem_setcount( )
D. sem_set_count( )
Answer» E.
33.

Semaphore P( ) operation usually does the following:

A. descrements the semaphore count and the process sleeps if needed
B. increments the semaphore count
C. wakes up a sleeping process
D. none of the mentioned
Answer» B. increments the semaphore count
34.

One process requires M resource to complete a job. What should be the minimum number of resources available for N processes so that at least one process can continue to execute without blocking/waiting?

A. M * N
B. M * N – 1
C. M * N + 1
D. M
Answer» E.
35.

The structure which keeps the information about shared memory in the kernel is

A. struct ipc_perm
B. struct semid_ds
C. struct shmid_ds
D. struct msgid_ds
Answer» D. struct msgid_ds
36.

What is the persistancy level of Shared memory segments?

A. signal
B. process
C. file system
D. kernel
Answer» E.
37.

Which is Fastest IPC?

A. Message Queue
B. shared memory
C. Socket
D. All of the mentioned
Answer» C. Socket
38.

Command used to check shared memory is

A. ipcs
B. ipcs - m
C. ipcs -s
D. ipcs -q
Answer» C. ipcs -s
39.

Message queues are created in

A. userspace
B. kernelspace
C. userspace & kernelspace
D. none of the mentioned
Answer» C. userspace & kernelspace
40.

Which is not the correct option for removing a message queue

A. ipcrm -Q
B. ipcrm -q
C. ipcrm -m
D. none of the mentioned
Answer» D. none of the mentioned
41.

Which system call is used to create Sys V message Queue.

A. msgget
B. shemget
C. semget
D. msgctl
Answer» B. shemget
42.

Which one of the following is not system V IPC ?

A. Shared Memory
B. Semaphores
C. FIFO
D. Message Queues
Answer» D. Message Queues
43.

System V IPC common attributes are

A. key
B. id
C. owner
D. all of the mentioned
Answer» E.
44.

What mkfifo() creats?

A. pipe
B. unnamed pipe
C. named pipe
D. msg queue
Answer» D. msg queue
45.

Advantage of FIFO over pipe is

A. related processes can communicate
B. unrelated processes can communicate
C. all of the mentioned
D. none of the mentioned
Answer» C. all of the mentioned
46.

The persistancy of a FIFO is

A. process
B. kernel
C. file system
D. none of the mentioned
Answer» D. none of the mentioned
47.

Which is true regarding pipes?

A. half duplex
B. full duplex
C. message boundaries are preserved
D. unordered data
Answer» B. full duplex
48.

Default action of SIGSEGV is

A. Terminate
B. Core dump + Terminate
C. Stop
D. Cont
Answer» C. Stop
49.

Signals are handled using which system call?

A. kill
B. Signal
C. both
D. none
Answer» C. both
50.

When real interval timer expires which signal is generated?

A. SIGINT
B. SIGCHLD
C. SIGKILL
D. SIGALRM
Answer» E.