Unix/Lunux/Linux Mcqs Questions Set 13 Sample Test,Sample questions

Question:
A system has 512MB of physical memory. Which among the following is not a suitable virtual memory size for this system architecture?

1. 512MB

2.256M

3.4GB

4.None of the mentioned


Question:
Advantage of FIFO over pipe is

1.related processes can communicate

2.unrelated processes can communicate

3.all of the mentioned

4.none of the mentioned


Question:
Among these files which has an ELF format

1.shared objects

2.core

3.executables

4.all of the mentioned


Question:
Another signal that cannot be caught is:

1.SIGPIPE

2.SIGHUP

3.SIGSTOP

4.SIGUSR1


Question:
Default action of SIGSEGV is

1.Terminate

2.Core dump + Terminate

3.Stop

4.Cont


Question:
dup2(1,0)

1.closes the stdout and copies the stdin descriptor to stdout

2.closes the stdin and copies the stdout descriptor to stdin

3.will produce compilation error

4.None of the mentioned


Question:
Each process has unique

1.fd table

2.file table

3.inode table

4.data block table


Question:
File descriptor table indexes which kernel structure?

1.struct file

2.strruct fs_struct

3.files_struct

4.struct inode


Question:
Fork returns _____ to parent process on success

1.0

2.child process id

3.parent process id

4.none


Question:
How do you get parent process identification number?

1.waitpid

2.getpid()

3.getppid()

4.parentid()


Question:
If a signal is received by a process, when will it be processed?

1.It is processed immediately

2.It is processed when process is switching to kernel mode

3.It is processsed in the next timeslice given to the process

4.None of the mentioned


Question:
If one of the thread in multithreaded process is blocked on an I/O, which of the following is true?

1.The entire process with block if their is no kernel supported threads

2.Other threads of the process will continue to execute even if there is no kernel supported threads

3.It depends on specific implementatation

4.All of the mentioned


Question:
If the fork() system call returns -1, then it means?

1.No new child process is created

2.The child process is an orphan

3.The child process is in Zombie

4.none of the mentioned


Question:
In Linux kernel-2.6 Real time priority ranges from

1.0 to 99

2.0 to 139

3.-20 to 19

4.100 to 139


Question:
LRU stands for

1.Last received Unit

2.Least recently Used

3.Least recently usable

4.Lost Recoverd unit


Question:
Mm_struct maintains?

1.memory files

2.open files

3.pipe

4.active memory regions


Question:
namei() is

1.ANSI C library function

2.C library function

3.System call


Question:
On x86-32 Linux, at which address the code segment of the program starts?

1.0x00000000

2.0x08048000

3.0x80000000

4.0xbfff0000


Question:
On x86-32 Linux, at which address the user stack resides normally?

1.0x00000000

2.0x3fff0000

3.0x7fff0000

4.0xbfff0000


Question:
Parent process id of a deamon process is

1.2

2.3

3.4

4.1


Question:
Pid of init process

1.0

2.1

3.32767         

4.none of the mentioned


Question:
printf() uses which system call

1.open

2.read

3.write

4.close


Question:
read() system call on success returns

1.0

2.-1

3.number of character

4.none


Question:
Return value of fork() system call can be:

1.-1,<0, 0

2.-1,>0, 0

3.-1,<0

4.none of the mentioned


Question:
Signals are handled using which system call?

1.kill

2.signal

3.both

4.none


Question:
Solaris real time class priority is

1.0-59

2.60-99

3.100-159

4.160-169


Question:
Solaris System class priority is

1.0-59

2.60-99

3.100-159

4.160-169


Question:
Switch table is used by

1.device special file

2.directory file

3.fifo

4.link file


Question:
System V IPC common attributes are

1.key

2.id

3.owner

4.all of the mentioned


Question:
The file system information is stored in

1.Boot block

2.Super Block

3.Inode Table

4.Data Block


Question:
The kill system call is used to

1.Send shutdown messages to all by superuser

2.Send a signal to a process

3.Kill processes

4.Stop the processes


Question:
The persistancy of a FIFO is

1.process

2.kernel

3.file system

4.none of the mentioned


Question:
The process which terminates before the parent process exits becomes

1.Zombie

2.Orphan

3.Child

4.None of the mentioned


Question:
What is a context switch?

1.Kernel switches from executing one process to another

2.Process switches from kernel mode to user mode

3.Process switches from user mode to kernel mode

4.None of the mentioned


Question:
What is the default maximum number of processes that can exist in Linux?

1. 32768 

2.1024

3.4096

4.unlimited


Question:
What is the default number of files open per user process?

1.0

2.1

3.2

4.3


Question:
What is the use of fcntl function?

1.locking a file

2.reading the file descriptor flag

3.changing the file status flag

4.all of the mentioned


Question:
What is the use of strace command?

1.strace can be used to check the system calls called by the program. So, this can be used for debugging and benchmarking purposes

2.strace cannot be used to check the system calls called by the program

3.all of the mentioned

4.none of the mentioned


Question:
What mkfifo() creats?

1.pipe

2.unnamed pipe

3.named pipe

4.msg queue


Question:
When real interval timer expires which signal is generated?

1.SIGINT

2.SIGCHLD

3.SIGKILL

4.SIGALRM


Question:
Which function can be used instead of the dup2 to duplicate the file descriptor?

1.read()

2.open()

3.stat()

4.fcntl()


Question:
Which is true regarding pipes?

1.half duplex

2.full duplex

3.message boundaries are preserved

4.unordered data


Question:
Which of the following signal cannot be handled or ignored?

1.SIGINT

2.SIGCHLD

3.SIGKILL

4.SIGALRM


Question:
Which one can be a real time schedule policy?

1.SCHED_FIFO

2.SCHED_SPF

3.SCHED_OTHER

4.SCHED_FILO


Question:
Which one of the following is not system V IPC ?

1.Shared Memory

2.Semaphores

3.FIFO

4.Message Queues


Question:
Which signal is generated when we press control-C?

1.SIGINT

2.SIGTERM

3.SIGKILL

4.SIGSEGV


Question:
Which signal is generated when we press ctrl-Z?

1.SIGKILL

2.SIGSTOP

3.SIGABRT

4.SIGINT


Question:
Which signal is sent when the Child process terminates?

1.SIGINIT

2.SIGKILL

3.SIGSTOP

4.SIGCHLD


Question:
Which system call is used to create a hard link?

1.hardlink

2. link

3.symlink

4.ln


Question:
Which sytem call can be used by a user process to lock a memory so that it cannot be swapped out?

1.memory files()

2.memlock()

3.pipe()

4.active memory regions


More MCQS

  1. Unix MCQS Set 1
  2. Unix MCQS Set 2
  3. Unix MCQS Set 3
  4. Unix MCQS Set 4
  5. Linux Mcqs Questions Set 1
  6. Linux Mcqs Questions Set 2
  7. Linux Mcqs Questions Set 3
  8. Linux Mcqs Questions Set 4
  9. Linux Mcqs Questions Set 5
  10. Linux Mcqs Questions Set 6
  11. Linux Mcqs Questions Set 7
  12. Linux Mcqs Questions Set 8
  13. Linux Mcqs Questions Set 9
  14. Linux Mcqs Questions Set 10
  15. Linux Mcqs Questions Set 11
  16. Linux Mcqs Questions Set 12
  17. Linux Mcqs Questions Set 13
  18. Linux Mcqs Questions Set 14
  19. Unix MCQ Set 01
  20. Unix MCQ Set 02
  21. UNIX SYSTEM Mcq
  22. Unix MCQ
  23. Linux MCQ Unit 1
  24. Linux MCQ Unit 2
  25. LINUX MCQ QUESTIONS AND ANSWER
  26. Linux File Permissions MCQ Questions Answers
  27. Linux Administration MCQ question and answer
  28. Linux MCQ QUESTIONS AND ANSWER
Learn Linux Mcqs Questions Set 13,Learn Unix/Lunux Objetive choice questions and answers,Unix/Lunux Multiple choice questions and answers,Unix/Lunux objective, Unix/Lunux questions , Unix/Lunux answers,Unix/Lunux MCQs questions and answer
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!