Explore topic-wise MCQs in Technical Programming.

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

151.

Another signal that cannot be caught is:

A. SIGPIPE
B. SIGHUP
C. SIGSTOP
D. SIGUSR1
Answer» D. SIGUSR1
152.

Which of the following signal cannot be handled or ignored?

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

Which signal is sent when the Child process terminates?

A. SIGINIT
B. SIGKILL
C. SIGSTOP
D. SIGCHLD
Answer» E.
154.

Which signal is generated when we press ctrl-Z?

A. SIGKILL
B. SIGKILL
C. SIGABRT
D. SIGINT
Answer» C. SIGABRT
155.

Which signal is generated when we press control-C?

A. SIGINT
B. SIGTERM
C. SIGKILL
D. SIGSEGV
Answer» B. SIGTERM
156.

If a signal is received by a process, when will it be processed?

A. It is processed immediately
B. It is processed when process is switching to kernel mode
C. It is processsed in the next timeslice given to the process
D. None of the mentioned
Answer» C. It is processsed in the next timeslice given to the process
157.

dup2(1,0)

A. closes the stdout and copies the stdin descriptor to stdout
B. closes the stdin and copies the stdout descriptor to stdin
C. will produce compilation error
D. None of the mentioned
Answer» C. will produce compilation error
158.

namei() is

A. ANSI C library function
B. C library function
C. System call
D. kernel routine
Answer» E.
159.

Which system call is used to create a hard link?

A. hardlink
B. link
C. symlink
D. ln
Answer» C. symlink
160.

read() system call on success returns

A. 0
B. -1
C. number of character
D. none
Answer» D. none
161.

printf() uses which system call

A. open
B. read
C. write
D. close
Answer» D. close
162.

Which function can be used instead of the dup2 to duplicate the file descriptor?

A. read()
B. open()
C. stat()
D. fcntl()
Answer» E.
163.

What is the use of fcntl function?

A. locking a file
B. reading the file descriptor flag
C. changing the file status flag
D. all of the mentioned
Answer» E.
164.

Switch table is used by

A. device special file
B. directory file
C. fifo
D. link file
Answer» B. directory file
165.

The file system information is stored in

A. Boot block
B. Super Block
C. Inode Table
D. Data Block
Answer» C. Inode Table
166.

What is the default number of files open per user process?

A. 0
B. 1
C. 2
D. 3
Answer» E.
167.

File descriptor table indexes which kernel structure?

A. struct file
B. strruct fs_struct
C. files_struct
D. struct inode
Answer» B. strruct fs_struct
168.

Each process has unique

A. fd table
B. file table
C. inode table
D. data block table
Answer» B. file table
169.

Solaris System class priority is

A. 0-59
B. 60-99
C. 100-159
D. 160-169
Answer» C. 100-159
170.

Solaris real time class priority is

A. 0-59
B. 60-99
C. 100-159
D. 160-169
Answer» D. 160-169
171.

In Linux kernel-2.6 Real time priority ranges from

A. 0 to 99
B. 0 to 139
C. -20 to 19
D. 100 to 139
Answer» B. 0 to 139
172.

Which one can be a real time schedule policy?

A. SCHED_FIFO
B. SCHED_SPF
C. SCHED_OTHER
D. SCHED_FILO
Answer» B. SCHED_SPF
173.

If one of the thread in multithreaded process is blocked on an I/O, which of the following is true?

A. The entire process with block if their is no kernel supported threads
B. Other threads of the process will continue to execute even if there is no kernel supported threads
C. It depends on specific implementatation
D. All of the mentioned
Answer» B. Other threads of the process will continue to execute even if there is no kernel supported threads
174.

What is the use of strace command?

A. strace can be used to check the system calls called by the program. So, this can be used for debugging and benchmarking purposes
B. strace cannot be used to check the system calls called by the program
C. all of the mentioned
D. none of the mentioned
Answer» B. strace cannot be used to check the system calls called by the program
175.

Among these files which has an ELF format

A. shared objects
B. core
C. executables
D. all of the mentioned
Answer» E.
176.

Is page table per process entity?

A. Yes
B. No
Answer» B. No
177.

Which sytem call can be used by a user process to lock a memory so that it cannot be swapped out?

A. memory files()
B. memlock()
C. pipe()
D. active memory regions
Answer» C. pipe()
178.

Mm_struct maintains?

A. memory files
B. open files
C. pipe
D. active memory regions
Answer» E.
179.

LRU stands for

A. Last received Unit
B. Least recently Used
C. Least recently usable
D. Lost Recoverd unit
Answer» C. Least recently usable
180.

A system has 512MB of physical memory. Which among the following is not a suitable virtual memory size for this system architecture?

A. 512MB
B. 256M
C. 4GB
D. None of the mentioned
Answer» E.
181.

On x86-32 Linux, at which address the code segment of the program starts?

A. 0x00000000
B. 0x08048000
C. 0x80000000
D. 0xbfff0000
Answer» E.
182.

Nice can be used by an ordinary process to

A. increase the priority of a process
B. decrease the priority of a process
C. increase or decrease the priority of a process
D. none of the mentioned
Answer» C. increase or decrease the priority of a process
183.

The maximum time slice that can be given to a process in Linux (where tick is 10ms) is

A. 150ms
B. 10ms
C. 300 ms
D. 600ms
Answer» E.
184.

Which niceness value among the following indicate most favorable scheduling?

A. 0
B. 19
C. 5
D. -20
Answer» E.
185.

Fork returns _____ to parent process on success

A. 0
B. child process id
C. parent process id
D. none
Answer» C. parent process id
186.

If the fork() system call returns -1, then it means?

A. No new child process is created
B. The child process is an orphan
C. The child process is in Zombie
D. none of the mentioned
Answer» B. The child process is an orphan
187.

Return value of fork() system call can be:

A. -1,<0, 0
B. -1,>0, 0
C. -1,<0
D. none of the mentioned
Answer» C. -1,<0
188.

The process which terminates before the parent process exits becomes

A. Zombie
B. Orphan
C. Child
D. None of the mentioned
Answer» B. Orphan
189.

Parent process id of a deamon process is_________________.

A. 2
B. 3
C. 4
D. 1
Answer» E.
190.

How do you get parent process identification number?

A. waitpid
B. getpid()
C. getppid()
D. parentid()
Answer» D. parentid()
191.

What is the default maximum number of processes that can exist in Linux?

A. 32768
B. 1024
C. 4096
D. unlimited
Answer» B. 1024
192.

Pid of init process

A. 0
B. 1
C. 32767
D. none of the mentioned
Answer» C. 32767
193.

What is a context switch?

A. Kernel switches from executing one process to another
B. Process switches from kernel mode to user mode
C. Process switches from user mode to kernel mode
D. None of the mentioned
Answer» B. Process switches from kernel mode to user mode
194.

In linux, a device driver can work without the

A. major number
B. minor number
C. device file name
D. none of the mentioned
Answer» E.
195.

The kernel identifies the driver with its

A. module
B. major number
C. device file
D. none of the mentioned
Answer» C. device file
196.

In linux kernel 2.1, the minor numbers were used to

A. represnt the sub-functionalitites of the driver
B. identify the driver
C. represent the device files
D. none of the mentioned
Answer» B. identify the driver
197.

The connection between the device file and device driver is based on the

A. name of device file
B. number of device file
C. name & number of device file
D. none of the mentioned
Answer» C. name & number of device file
198.

If we use a driver for various device files, then

A. minor number will be different for every device file
B. minor number will be same for every device file
C. minor number can not be allocated for any device file
D. none of the mentioned
Answer» B. minor number will be same for every device file
199.

In we use a driver for N number of files, then we have to create ____ device files.

A. N
B. 1
C. N-1
D. None of the mentioned
Answer» B. 1
200.

In linux kernel 2.4, we can have

A. 256 character drivers only
B. 256 block drivers only
C. 256 character drivers and 256 block drivers at the same time
D. none of the mentioned
Answer» D. none of the mentioned