Home
MCQS
Unix/Lunux MCQ Quiz Hub
Linux Mcqs Questions Set 14
Choose a topic to test your knowledge and improve your Unix/Lunux skills
1. Which system call is used to create Sys V message Queue.
msgget
shemget
semget
msgctl
2. Which is not the correct option for removing a message queue
ipcrm -Q
ipcrm -q
ipcrm -m
none of the mentioned
3. Message queues are created in
userspace
kernelspace
userspace & kernelspace
none of the mentioned
4. Command used to check shared memory is
ipcs
ipcs -m
ipcs -s
ipcs -q
5. Which is Fastest IPC?
Message Queue
shared memory
Socket
All of the mentioned
6. What is the persistancy level of Shared memory segments?
signal
process
file system
kernel
7. The structure which keeps the information about shared memory in the kernel is
struct ipc_perm
struct semid_ds
struct shmid_ds
struct msgid_ds
8. 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?
M * N
M * N – 1
M * N + 1
M
9. Semaphore P( ) operation usually does the following:
descrements the semaphore count and the process sleeps if needed
increments the semaphore count
wakes up a sleeping process
none of the mentioned
10. Which call to use to set the resource count of semaphore?
semget( )
semctl( )
sem_setcount( )
sem_set_count( )
11. Race condition can be avoided by using
semaphore
mutex
socket
both semaphore & mutex
12. A server which is handling one client at a time is called as
single server
multiserver
concurrent server
iterative server
13. A server which is handling many clients at a time is called as
single server
multiserver
concurrent server
iterative server
14. A communication end-point is identified by
ip address
port number
both IP address and port number
none of the mentioned
15. UNIX/Linux kernel is?
Monolithic
Micro
Exo
Nano
16. Monolithic kernel
is highly extensiblity
has less run time overhead
smaller than micro level
suitable for real time system
17. Runlevel system command is used for?
getting the present and previous runlevel of the system
setting the runlevel attribute of the system in the inittab file
can be used to restart or reboot the system
all of the mentioned
18. Pick the run level to run Linux in multi user mode with networking?
0
3
5
6
19. Section 2 of manpage describes
Commands
System calls
Function calls
Drivers
20. System call can be implemented using which assembly instruction(s) on x86 processors?
int 0×80
sysenter
both int 0×80 & sysenter
None
21. Which of the following exec call is a system call?
execl
execlp
execve
execvp
22. x86 architecture uses big endian or little endian addressing mechanism?
little-endian
endian
big-endian
none of the mentioned
23. __________ timer is decremented only when the process is executing
ITIMER_REAL
ITIMER_VIRTUAL
ITIMER_PROF
None of the mentioned
24. Daemon process is a?
group leader
ession leader
orphan process
all of the mentioned
25. he terminal used by a Daemon process is:
any terminal
no terminal
root terminal
system console
26. Sysconf(_SC_PAGE_SIZE) returns?
size of the page
max size of the page
min size of the page
paging allowed or not
27. Which has excellent support for older hardware?
Unix
Linux
Minix
Xenix
28. What is the other name of new shell?
Baby shell
Junior shell
Child shell
Assistant shell
29. In Linux hard disk partition, hda2, a stands for the __
first hard drive
first partition
second partition
second hard drive
30. Where do the users arrive after entering exit in Linux system?
Login screen
Internet
Logout screen
Login prompt
31. Single dot (.) with cd refers to ___
Change directory
Created directory
Current directory
Parent directory
32. Which command is called as the end-of-file command?
Ctrl+ V
Ctrl+ B
Ctrl+ D
Ctrl+ C
33. Which of the following is called as the piping symbol?
_
|
~
!
34. What was the first version of Linux?
1.0
0.11
1.01
0.1
35. What should be the minimum length of a password?
5
6
7
8
36. Who can change the password of any user?
Everyone
SA
Supervisor
End-user
37. Collection of files is called as a
Directory
Root
Field
Home
38. How much of memory space is occupied by Linux?
4 MB
6 MB
8 MB
12 MB
39. The file name can be up to ___ character.
253
254
255
256
40. The prompt of the root user is
@
#
%
$
41. Linux default shell is
BAH shell
SH shell
ASH shell
BASH shell
42. Who are placeholders to store values?
Constants
Variables
OS
Shell
43. What type of editing is possible by Ed editor?
One command
One file
One line
One page
44. ___ command clears the screen.
Clear
Cls
Clear all
Clean screen
45. Which of the following is called as the redirection operator for output?
=
<<
<
>
46. The complete path name of a file or directory is
Root name
Tree name
Relative path name
Absolute path name
47. For what based of PC’s, Linux was specifically designed?
Intel
HCL
Wipro
IBM
48. From where did the file system can be used to unambiguously identified and referenced?
Tree structure
Folders
Home directory
Root directory
49. Which feature is used to prevent overwriting an existing file the redirection operation?
Mkfs
Man
Cat
Noclobber
50. When we want replace a file system we have to ____ the present file system.
Cancel
Remove
Unmount
Mount
Submit