System Programming Mcqs
Q.1: What does the command "mknod temp p" do?(
A. It creates a named pipe.
B. It creates directory nodes
C. No Option
D. No Option
Q.2: Which of the following utilities is used to search out regular expressions in the input?X
A. cat
B. grep
C. head
D. tail
Q.3: If a process has locked a System V Semaphore and receives a SIGKILL signal, which of the following is true?k
A. The process can catch the signal and drop the semaphore before terminating.K
B. The process terminates without releasing the semaphore.7
C. The semaphore is released if the process had specified SEM_UNDO during creation.P
D. The signal is deferred until the semaphore is released.7
Q.4: Which of the following can be used to debug the process "123" and program "test" on a Linux system?c
A. adb test 123
B. gdb test 123
C. strace 123
D. strace -f -p 123
Q.5: Which of the following utilities is used to generate a core file of a process on Linux?W
A. gdb
B. strace
C. gcore
D. objdump
Q.6: Which of the following methods can be used to allocate and use memory on a Unix system?W
A. brk
B. sbrk
C. malloc
D. calloc
Q.7: Which of the following can be used to inspect the system call arguments of a Linux process?[
A. strace
B. gdb
C. adb
D. mdb
Q.8: Which of the following utilities would you use on a standard Linux system to debug a running application?i
A. gdb
B. ltrace
C. strace
D. ptrace
Q.9: Which of the following environment variables specifies the shared library search path?V
A. SHARED_LIBRARIES
B. SHLIB_PATH
C. SHLIB_PATH
D. LIBRARIES
Q.10: Which of the following signals are used by the Unix shell to implement job control?S
A. SIGHUP
B. SIGSTOP
C. SIGSTOP
D. SIGINT

Related Mcqs

All Subject Mcqs