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.

101.

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
102.

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
103.

How many types of Linux files are typically used?

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

Which character is known as a root directory?

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

Which of the following are grouped into directories and subdirectories?

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

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
107.

Which of the following is a UNIX clone?

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

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.
109.

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
110.

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
111.

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
112.

Who started Linux first as a personal project?

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

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
114.

Which feature can be implemented using encapsulation?

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

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
116.

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
117.

The terminal used by a Daemon process is:

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

Daemon process is a?

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

______________ 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
120.

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
121.

Which of the following exec call is a system call?

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

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
123.

Section 2 of manpage describes

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

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

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

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.
126.

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
127.

UNIX/Linux kernel is?

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

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
129.

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
130.

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.
131.

Race condition can be avoided by using

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

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

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

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
134.

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.
135.

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
136.

What is the persistancy level of Shared memory segments?

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

Which is Fastest IPC?

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

Command used to check shared memory is

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

Message queues are created in

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

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
141.

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

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

Which one of the following is not system V IPC ?

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

System V IPC common attributes are

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

What mkfifo() creats?

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

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
146.

The persistancy of a FIFO is

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

Which is true regarding pipes?

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

Default action of SIGSEGV is

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

Signals are handled using which system call?

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

When real interval timer expires which signal is generated?

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