Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Quiz of Debian Linux by Zubair Barkat

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 10

It is a set of Linux / Unix multiple choice questions and answers focuses on various Linux

commands and their command line options & parameters. It will be useful for anyone learning
Linux Basics, Essentials and/or Fundamentals.

Organized by Zubair Barkat


Computer science student at University of Turbat

1. The dmesg command


a) Shows user login logoff attempts
b) Shows the syslog file for info messages
c) kernel log messages
d) Shows the daemon log messages
Answer: c
2. The command “mknod myfifo b 4 16”
a) Will create a block device if user is root
b) Will create a block device for all users
c) Will create a FIFO if user is not root
d) None of the mentioned
Answer: a
3. Which command is used to set terminal IO characteristic?
a) tty
b) ctty
c) ptty
d) stty
Answer: d
4. Which command is used to record a user login session in a file
a) macro
b) read
c) script
d) none of the mentioned
Answer: c
5. Which command is used to display the operating system name
a) os
b) unix
c) kernel
d) uname
Answer: d
6. Which command is used to display the unix version
a) uname -r
b) uname -n
c) uname -t
d) kernel
Answer: a
7. Which command is used to print a file
a) print
b) ptr
c) lpr
d) none of the mentioned
Answer: c
8. Using which command you find resource limits to the session?
a) rlimit
b) ulimit
c) setrlimit
d) getrlimit
Answer: b
9. Which option of ls command used to view file inode number
a) –l
b) -o
c) –a
d) –i
Answer: d
10. Find / -name ‘*’ will
a) List all files and directories recursively starting from /
b) List a file named * in /
c) List all files in / directory
d) List all files and directories in / directory
Answer: a
11. 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: a
12. Which one of the following bootloader is not used by linux?
a) GRUB
b) LILO
c) NTLDR
d) none of the mentioned
Answer: c
13. the first process launched by the linux kernel is
a) init process
b) zombie process
c) batch process
d) boot process
Answer: a
14. Which desktop environment is not used in any linux distribution?
a) gnome
b) kde
c) unity
d) none of the mentioned
Answer: d
15. Standart set of functions through which interacts with kernel is defined by
a) system libraries
b) kernel code
c) compilers
d) utility programs
Answer: a
16. Linux is
a) single user , single tasking
b) single user , multitasking
c) multiuser , single tasking
d) multiuser , multitasking
Answer: d
17. Which one of the following is not a linux distribution?
a) debian
b) gentoo
c) open SUSE
d) multics
Answer: d

18. Which one of the following is not shared by threads?


a) program counter
b) stack
c) both program counter and stack
d) none of the mentioned
Answer: c
19. A process can be
a) single threaded
b) multithreaded
c) both single threaded and multithreaded
d) none of the mentioned
Answer: c
20. If one thread opens a file with read privileges then
a) other threads in the other process can also read from that file
b) other threads in the same process can also read from that file
c) any other thread can not read from that file
d) all of the mentioned
Answer: b
21. The time required to create a new thread in an existing process is
a) greater than the time required to create a new process
b) less than the time required to create a new process
c) equal to the time required to create a new process
d) none of the mentioned
Answer: b
22. When the event for which a thread is blocked occurs,
a) thread moves to the ready queue
b) thread remains blocked
c) thread completes
d) a new thread is provided
Answer: a
23. The jacketing technique is used to
a) convert a blocking system call into nonblocking system call
b) create a new thread
c) communicate between threads
d) terminate a thread
Answer: a
24. Termination of the process terminates
a) first thread of the process
b) first two threads of the process
c) all threads within the process
d) no thread within the process
Answer: c
25. The register context and stacks of a thread are deallocated when the thread
a) terminates
b) blocks
c) unblocks
d) spawns
Answer: a
26. Thread synchronization is required because
a) all threads of a process share the same address space
b) all threads of a process share the same global variables
c) all threads of a process can share the same files
d) all of the mentioned
Answer: d
27. A thread is also called :
a) Light weight process (LWP)
b) Heavy weight process (HWP)
c) Process
d) None of the mentioned
Answer: a
30. A thread shares its resources (Like data section,code section, open files, signals) with:
a) other process similar to the one that the thread belongs to
b) other threads that belong to similar processes
c) other threads that belong to the same process
d) all of the mentioned
Answer: c
31. A heavy weight process:
a) has multiple threads of execution
b) has a single thread of execution
c) can have multiple or a single thread for execution
d) none of the mentioned
Answer: b
32. A process having multiple threads of control implies:
a) it can do more than one task at a time
b) it can do more than one task at a time
c) it has to use only one thread per process
d) none of the mentioned
Answer: a
33. Multithreading an interactive program will increase responsiveness to the user by :
a) continuing to run even if a part of it is blocked
b) waiting for one part to finish before the other begins
c) asking the user to decide the order of multithreading
d) none of the mentioned
Answer: a
34. Resources sharing helps:
a) share the memory and resources of the process to which the threads belong
b) an application have several different threads of activity all within the same address space
c) reduce the address space that a process could potentially use
d) all of the mentioned
Answer: d
35. Multithreading on a multi-cpu machine:
a) decreases concurrency
b) increases concurrency
c) doesn’t affect the concurrency
d) can increase or decrease the concurrency
Answer: b
36. The kernel is ………… of user threads:
a) a part of
b) the creator of
c) unaware of
d) aware of
Answer: c
37. If the kernel is single threaded, then any user level thread performing a blocking system call
will :
a) cause the entire process to run along with the other threads
b) cause the thread to block with the other thread running
c) cause the entire process to block even if the other threads are available to run
d) none of the mentioned
Answer: c
38. because the kernel thread management is done by the operating system itself:
a) kernel threads are faster to create than user threads
b) kernel threads are slower to create than user threads
c) kernel threads are easier to manage as well as create then user
d) none of the mentioned
Answer: b
39. the model in which one kernel thread is mapped to many user-level thread is called:
a) many to one model
b) one to many model
c) many to many model
d) one to one model
Answer: a
40. the model in which one user level thread is mapped to many kernel level threads is called:
a) many to one model
b) one to many model
c) many to many model
d) one to one model
Answer: b

You might also like