Skip to main content
SunBeam
You are logged in as E3 - Gauraw Salunke
DESD-AUG-2017 - MOCK CPT
Started on Monday, 1 January 2018, 5:30 PM
State Finished
Completed on Monday, 1 January 2018, 5:51 PM
Time taken 20 mins 13 secs
Grade 17 out of 40 (43%)
Question 1
Complete
Mark 1 out of 1
Not flagged
Flag question
Question text
fork() returns non zero value in child process and zero in parent process.
Select one:
A. False
B. True
Feedback
The correct answer is: False
Question 2
Complete
Mark 0 out of 1
Not flagged
Flag question
Question text
Which of the following is packet based unidirectional IPC mechanism?
Select one:
A. Message queue
B. pipe
C. socket
D. None of the above
Feedback
The correct answer is: None of the above
Question 3
Complete
Mark 0 out of 1
Not flagged
Flag question
Question text
Which of the following command is used to delete an IPC object by id or key?
Select one:
A. ipcs
B. ipcrm
C. Ipcrm
D. ipcs -r
Feedback
The correct answer is: ipcrm
Question 4
Complete
Mark 1 out of 1
Not flagged
Flag question
Question text
Select correct option for mutex.
Select one:
A. A thread can lock mutex twice.
B. A thread locking mutex is owner of that mutex.
C. Owner can not unlock the mutex.
D. None of the above
Feedback
The correct answer is: A thread locking mutex is owner of that mutex.
Question 5
Complete
Mark 0 out of 1
Not flagged
Flag question
Question text
What is internal fragmentation?
Select one:
A. process is not utilizing the whole partition allocated to it.
B. process is utilizing the whole partition allocated to it.
C. amount of space required for process is not available.
D. amount of space required for process is available, but not contiguous. external frag
(between
block)
Feedback
The correct answer is: process is not utilizing the whole partition allocated to it.
Question 6
Complete
Mark 1 out of 1
Not flagged
Flag question
Question text
Linux systems does not allow to create a swap file.
Select one:
A. True
B. False
Feedback
The correct answer is: False
Question 7
Complete
Mark 0 out of 1 Memory: RAM :
Not flagged
Flag question logical : physical :
frames
page
Question text
Physical memory : _______________ :: Logical Memory : _______________
Select one:
A. Pages, Frames
B. Frames, Pages
C. Pages, Fragments
D. fragments, Frames
Feedback
The correct answer is: Frames, Pages
Question 8
Complete
Mark 0 out of 1
Not flagged
Flag question
Question text
If the size of logical address space is 2 to the power of m, and a page size is 2 to the power of
n addressing units, then the high order _____ bits of a logical address designate the page
number, and the ____ low order bits designate the page offset.
Select one:
A. m, n
B. n, m
C. m – n, m
D. m – n, n
Feedback
The correct answer is: m – n, n
Question 9
Complete
Mark 1 out of 1
Not flagged
Flag question
Question text
LRU page replacement algorithm suffers from Belady's anomaly.
Select one:
A. true
B. false
Feedback
The correct answer is: false
Question 10
Complete
Mark 0 out of 1
Not flagged
Flag question
Question text
Thrashing
Select one:
A. reduces page I/O
B. decreases the degree of multiprogramming
C. implies excessive page I/O
D. improves the system performance
Feedback
The correct answer is: implies excessive page I/O
Question 11
Complete
Mark 0 out of 1
Not flagged
Flag question
Question text
Which of the following gives control of the CPU to the process selected by the short-term
scheduler?
Select one:
A. interpreter
B. dispatcher
C. scheduler
D. none of the mentioned
Feedback
The correct answer is: dispatcher
Question 12
Complete
Mark 0 out of 1
Not flagged
Flag question
Question text
While fork(), the child's set of pending signals is initially _____.
Select one:
A. filled with same as parent What the child inherits
B. empty Address space
(copy-on-write)
C. filled except masked signals in parent File descriptors
Signal dispositions
D. None of the above (handlers)
Signal mask (blocked
signals)
Feedback
The correct answer is: empty
Question 13
Complete
Mark 0 out of 1
Not flagged
Flag question
Question text
Which of the following is journaling file system
Select one:
A. JFS
B. UFS
C. ext2
D. ext3
Feedback
The correct answer is: ext3
Question 14
Complete
Mark 0 out of 1
Not flagged
Flag question
Question text
Which of the following utility is used to unload the kernel module?
Select one:
A. insmod
B. rmmod
C. modprobe -r
D. Both b and c
E. Only b
F. All of the above
Feedback
The correct answer is: Both b and c
Question 15
Complete
Mark 0 out of 1
Not flagged
Flag question
Question text
Which of the following file would tell you the IRQ channel for the network card while
network troubleshooting?
Select one:
A. /proc/irqs
B. /proc/interrupts
C. /proc/ioports
D. /proc/interrupt
Feedback
The correct answer is: /proc/interrupts
Question 16
Complete
Mark 0 out of 1
Not flagged
Flag question
Question text
In kernel module programming, while reading and writing, user space address verification
can be done by________.
Select one:
A. put_user
B. chk_user
C. access_ok
D. none of the above
Feedback
The correct answer is: access_ok
Question 17
Complete
Mark 0 out of 1
Not flagged
Flag question
Question text
it can sleep hence : PROCESS CONTEXT
Work Queues always works in interrupt context.
Select one:
A. True
B. False
Feedback
The correct answer is: False
Question 18
Complete
Mark 1 out of 1
Not flagged
Flag question
Question text
IO port allocation is done by _______
Select one:
A. check_io_region()
B. alloc_io_region()
C. register_io_region()
D. request_io_region()
req_mem_region X86
Feedback
The correct answer is: alloc_io_region()
Question 19
Complete
Mark 1 out of 1
Not flagged
Flag question
Question text
Which of the following should be avoided in the interrupt handler?
Select one:
A. calling wait_event
B. locking semaphore
C. allocating memory
D. All of the above
Feedback
The correct answer is: All of the above
Question 20
Complete
Mark 1 out of 1
Not flagged
Flag question
Question text
Which of the following file stores status of the modules in linux which we can see using
lsmod?
Select one:
A. /proc/modules
B. /proc/module
C. /proc/devices
D. None of the above
Feedback
The correct answer is: /proc/modules
Question 21
Complete
Mark 1 out of 1
Not flagged
Flag question
Question text
The device driver module implemets __________ function in write method.
Select one: from
A. copy_to_user()
B. copy_from_user()
C. put_user()
D. get_user()
Feedback
The correct answer is: copy_from_user()
Question 22
Complete
Mark 1 out of 1
Not flagged
Flag question
Question text
How we can modify existing config file?
Select one:
A. make menuconfig
B. make gconfig GNOME && KDE
C. make xconfig
D. all of the above
Feedback
The correct answer is: all of the above
Question 23
Complete
Mark 1 out of 1
Not flagged
Flag question
Question text
Inherited :
The child does not inherit _______________.
Select one: Memory Space:
File Descriptors :
A. semaphore adjustments from its parent Environment Variables:
B. its parent's memory locks Signal Mask and Handlers:
C. timers from its parent
D. All of the above NOT Inherited
E. None of the above Process ID (PID):
[Link] Process ID (PPID):
Pending Signals:
Feedback File Locks:
CPU Timers:
Alarms:
The correct answer is: All of the above Memory Locks:
Question 24
Complete
Mark 0 out of 1
Not flagged
Flag question
Question text
Compiled kernel image is created in directory _________.
Select one:
A. /arch/x86/boot
B. /boot/grub
C. /boot/grub2
D. None of the above
Feedback
The correct answer is: /arch/x86/boot
Question 25
Complete
Mark 0 out of 1
Not flagged
Flag question
Question text
During execution of init_module(), state of kernel module is ______.
Select one:
A. MODULE_STATE_COMING init
B. MODULE_STATE_ARRIVING
C. MODULE_STATE_GOING cleanup
D. MODULE_STATE_LIVE
E. None of the above
Feedback
The correct answer is: MODULE_STATE_COMING
Question 26
Complete
Mark 0 out of 1
Not flagged
Flag question
Question text
Which of the following option is used to see ELF symbol table in "objdump"?
Select one:
A. -d
B. -f
C. -t SYMBOL TABLE
D. -h
Feedback
The correct answer is: -t
Question 27
Complete
Mark 0 out of 1
Not flagged
Flag question
Question text
Which of the following datatype is not supported in module parameter?
Select one:
A. bool
B. char
C. charp
D. int
E. short
Feedback
The correct answer is: char
Question 28
Complete
Mark 0 out of 1
Not flagged
Flag question
Question text
Which of the following exposes module parameter with different name, outside the
module?
Select one:
A. module_param()
B. module_param_name()
C. module_param_named()
D. Both b and c
E. None of the above
Feedback
The correct answer is: module_param_named()
Question 29
Complete
Mark 1 out of 1
Not flagged
Flag question
Question text
The device number which is of 32 bit and consist of ______ bits for major and _____ bits for
minor.
Select one:
A. 21, 11
B. 11, 21
C. 20, 12
D. 12, 20
Feedback
The correct answer is: 12, 20
Question 30
Complete
Mark 0 out of 1
Not flagged
Flag question
Question text
Which of the following registers cdev with kernel?
Select one:
A. cdev_init()
B. cdev_add()
C. cdev_del()
D. none of the above
Feedback
The correct answer is: cdev_add()
Question 31
Complete
Mark 1 out of 1
Not flagged
Flag question
Question text
Which of the following dynamically find an available device number and allocate it?
Select one:
A. register_chrdev_region()
B. alloc_chardev_regin()
C. alloc_chrdev_region()
D. All of the above
Feedback
The correct answer is: alloc_chrdev_region()
Question 32
Complete
Mark 1 out of 1
Not flagged
Flag question
Question text
Which of the following data structures kernel provides?
Select one:
A. Linked List
B. Queues
C. Maps
D. Binary Tree
E. All of the above
Feedback
The correct answer is: All of the above
Question 33
Complete
Mark 0 out of 1
Not flagged
Flag question
Question text
Which of the following is not USB driver's method
Select one:
A. probe
B. connect CONNECT
prob of it
IS not
C. disconnect
D. None of the above
Feedback
The correct answer is: connect
Question 34
Complete
Mark 1 out of 1
Not flagged
Flag question
Question text
Select odd option from below
Select one:
A. execl("./cmdline", "cmdline", "one", "two", "three", "four", NULL);
B. char *args[] = { "cmdline", "one", "two", "three", NULL }; execv("./cmdline", args);
C. execlp("ps", "ps", "-e", "-o", "pid,ppid,cmd");
D. None of the above
Feedback
The correct answer is: execlp("ps", "ps", "-e", "-o", "pid,ppid,cmd");
Question 35
Complete
Mark 1 out of 1
Not flagged
Flag question
Question text
Select the correct sequence for USB descriptors.
Select one:
A. device -> interface -> endpoind DEVICE
B. configuration -> interface -> endpoint
C. device -> configuration -> interface -> endpoint
D. None of the above
Feedback
The correct answer is: device -> configuration -> interface -> endpoint
Question 36
Complete
Mark 1 out of 1
Not flagged
Flag question
Question text
In which of the following state change in child process, performing wait allows the system
to release the resources associated with child process?
Select one:
A. the child terminated
B. the child was stopped by a signal
C. the child was resumed by a signal
D. All of the above
E. None of the above
Feedback
The correct answer is: the child terminated
Question 37
Complete
Mark 1 out of 1
Not flagged
Flag question
Question text
Which of the following is not used to examine and change the signal action?
Select one:
A. signal
B. sigaction
C. sigprocmask
D. All of the above
Feedback
The correct answer is: sigprocmask
Question 38
Complete
Mark 0 out of 1
Not flagged
Flag question
Question text
Which of the following signal specified in mask, has effect on the process's signal mask
while using sigsuspend?
Select one:
A. SIGKILL
B. SIGTERM / SIG INIT
C. SIGSTOP
D. All of the above
Feedback
The correct answer is: SIGTERM
Question 39
Complete
Mark 0 out of 1
Not flagged
Flag question
Question text
Select correct option for pipe
Select one:
A. pipefd[1] - read end, pipefd[0] - write end.
B. pipefd[1] - read end, pipefd[1] - write end.
C. pipefd[0] - read end, pipefd[1] - write end.
D. None of the above
Feedback
The correct answer is: pipefd[0] - read end, pipefd[1] - write end.
Question 40
Complete
Mark 0 out of 1
Not flagged
Flag question
Question text
Select the value of mode if O_CREAT flag is provided in open system call to give permissions
as user - read,write; group - read; others - nothing
Select one:
A. 1A0
B. 1B1
C. 1A1
D. 1B0
Feedback
The correct answer is: 1A0
Finish review
Skip Quiz navigation
Quiz navigation
Question 1 This page Question 2 This page Question 3 This page Question 4 This page
Question 5 This page Question 6 This page Question 7 This page Question 8 This page
Question 9 This page Question 10 This page Question 11 This page Question 12 This page
Question 13 This page Question 14 This page Question 15 This page Question 16 This page
Question 17 This page Question 18 This page Question 19 This page Question 20 This page
Question 21 This page Question 22 This page Question 23 This page Question 24 This page
Question 25 This page Question 26 This page Question 27 This page Question 28 This page
Question 29 This page Question 30 This page Question 31 This page Question 32 This page
Question 33 This page Question 34 This page Question 35 This page Question 36 This page
Question 37 This page Question 38 This page Question 39 This page Question 40 This page
Show one page at a time Finish review