182
92.8k

100+ Fedora Solved MCQs

These multiple-choice questions (MCQs) are designed to enhance your knowledge and understanding in the following areas: Bachelor of Science in Computer Science FY (BSc CS) , Bachelor of Science in Computer Science SY (BSc CS) , Bachelor of Science in Computer Science (BSc CS) .

51.

Which command changes a file’s group owner

A. cgrp
B. chgrp
C. change
D. group
Answer» B. chgrp
52.

Which command is used to extract intermediate result in a pipeline

A. tee
B. extract
C. exec
D. none of the above
Answer» A. tee
53.

Which command is used to extract a column from a text file

A. paste
B. get
C. cut
D. tar
Answer» C. cut
54.

Which command is used to display disk consumption of a specific directory

A. du
B. ds
C. dd
D. dds
Answer» A. du
55.

Which command is used to perform backup in unix?

A. backup
B. cpio
C. zip
D. gzip
Answer» B. cpio
56.

Which command creates an empty file if file does not exist?

A. cat
B. touch
C. ed
D. read
Answer» B. touch
57.

Which option of rm command is used to remove a directory with all its subdirectories

A. –b
B. –o
C. –p
D. –r
Answer» D. –r
58.

Write the command to display the current date in the form dd/mm/yyyy.

A. date +%d/%m/%y
B. date +”%d/%m/%y”
C. date +/%d/%m/20%y
D. date +”/%d/%m/20%y”
Answer» A. date +%d/%m/%y
59.

Which command will delete all the blank lines in file old.txt?

A. sed ‘/d’ old.txt
B. sed ‘/^/d’ old.txt
C. sed ‘/^$/d’ old.txt
D. sed ‘/^*/d’ old.txt
Answer» C. sed ‘/^$/d’ old.txt
60.

The command “sed -n ‘/mcqmate/p’ old.txt” will

A. print the lines containing the word ‘mcqmate’ in file old.txt
B. delete the lines containing the word ‘mcqmate’ in file old.txt
C. will generate an error message
D. none of the mentioned
Answer» A. print the lines containing the word ‘mcqmate’ in file old.txt
61.

Which option is used by sed to specify that the following string is an instruction or set of instructions?

A. -n
B. -e
C. -f
D. -i
Answer» A. -n
62.

When we install a new package in linux system, then

A. all the files of the packages are installed in a single directory
B. different files are installed at different locations of the file system
C. package works just after extraction, installation is not required
D. none of the mentioned
Answer» B. different files are installed at different locations of the file system
63.

Host specific configuration files are installed in

A. /etc directory
B. /lib directory
C. /root directory
D. /bin directory
Answer» A. /etc directory
64.

The directory /media is the

A. mount point for removable media
B. mount point for filesystem
C. both (a) and (b)
D. none of the mentioned
Answer» A. mount point for removable media
65.

What is /bin/sh ?

A. bourne shell
B. hard or symbolic link to the real shell command
C. bash shell
D. both (b) and (c)
Answer» B. hard or symbolic link to the real shell command
66.

The /boot directory stores the data that is used

A. before the kernel begins executing user mode programs
B. after the kernel begins executing user mode programs
C. before the bootloader is loaded in the ram
D. none of the mentioned
Answer» A. before the kernel begins executing user mode programs
67.

Which one of the directory does not contain binary files?

A. /bin
B. /sbin
C. /etc
D. none of the mentioned
Answer» C. /etc
68.

Kernel modules are present in

A. /lib directory
B. /root directory
C. /boot directory
D. none of the mentioned
Answer» A. /lib directory
69.

The directory /opt is reserved for

A. installation of add-on application software packages
B. optional booting files
C. optional user specific files
D. none of the mentioned
Answer» A. installation of add-on application software packages
70.

The directory /srv contains

A. site-specific data which is served by the system
B. all the system files
C. all the service files provided by the specific user
D. none of the mentioned
Answer» A. site-specific data which is served by the system
71.

Any file or directory present in the ______ directory may not be reserved between the invocation of the program.

A. /var
B. /tmp
C. /etc
D. all of the mentioned
Answer» B. /tmp
72.

What is a context switch?

A. kernel switches from executing one process to another.
B. process switches from kernel mode to user mode.
C. process switches from user mode to kernel mode.
D. none of the above
Answer» A. kernel switches from executing one process to another.
73.

Pid of init process

A. 0
B. 1
C. 32767
D. none of the above
Answer» B. 1
74.

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

A. 32768
B. 1024
C. 4096
D. unlimited
Answer» A. 32768
75.

How do you get parent process identification number?

A. waitpid
B. getpid()
C. getppid()
D. parentid()
Answer» C. getppid()
76.

The process which terminates before the parent process exits becomes

A. zombie
B. orphan
C. child
D. none of the above
Answer» A. zombie
77.

Return value of fork() system call can be:

A. -1,<0,0
B. -1,>0,0
Answer» B. -1,>0,0
78.

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

A. no new child process is created
B. the child process is an orphan
C. the child process is in zombie
Answer» A. no new child process is created
79.

Fork returns _____ to parent process on success

A. 0
B. child process id
C. parent process id
D. none
Answer» B. child process id
80.

Which niceness value among the following indicate most favorable scheduling?

A. 0
B. 19
C. 5
D. -20
Answer» D. -20
81.

The maximum time slice that can be given to a process in Linux (where tick is 10ms) is

A. 150ms
B. 10ms
C. 300 ms
D. 600ms
Answer» D. 600ms
82.

Nice can be used by an ordinary process to

A. increase the priority of a process
B. decrease the priority of a process
C. increase or decrease the priority of a process
Answer» B. decrease the priority of a process
83.

Which one can be a real time schedule policy?

A. sched_fifo
B. sched_spf
C. sched_other
D. sched_filo
Answer» A. sched_fifo
84.

Solaris real time class priority is

A. 0-59
B. 60-99
C. 100-159
D. 160-169
Answer» C. 100-159
85.

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

A. 0x00000000
B. 0x08048000
C. 0x80000000
D. 0xbfff0000
Answer» B. 0x08048000
86.

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

A. 0x00000000
B. 0x3fff0000
C. 0x7fff0000
D. 0xbfff0000
Answer» D. 0xbfff0000
87.

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

A. 512mb
B. 256m
C. 4gb
D. none of the above
Answer» D. none of the above
88.

LRU stands for

A. last received unit
B. least recently used
C. least recently usable
D. lost recoverd unit
Answer» B. least recently used
89.

Mm_struct maintains?

A. memory files
B. open files
C. pipe
D. active memory regions
Answer» D. active memory regions
90.

Is page table per process entity?

A. yes
B. no
Answer» A. yes
91.

Among these files which has an ELF format

A. shared objects
B. core
C. executables
D. all of the above
Answer» D. all of the above
92.

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

A. the entire process with block if their is no kernel supported threads
B. other threads of the process will continue to execute even if there is no kernel supported threads
C. it depends on specific implementatation
D. all of the above
Answer» A. the entire process with block if their is no kernel supported threads
93.

UNIX/Linux kernel is?

A. monolithic
B. micro
C. exo
D. nano
Answer» A. monolithic
94.

Monolithic kernel

A. is highly extensiblity
B. has less run time overhead
C. smaller than micro level
D. suitable for real time system
Answer» B. has less run time overhead
95.

Runlevel system command is used for?

A. getting the present and previous runlevel of the system
B. setting the runlevel attribute of the system in the inittab file
C. can be used to restart or reboot the system
D. all of the above
Answer» D. all of the above
96.

Pick the run level to run Linux in multi user mode with networking?

A. 0
B. 3
C. 5
D. 6
Answer» B. 3
97.

Section 2 of manpage describes

A. commands
B. system calls
C. function calls
D. drivers
Answer» B. system calls
98.

System call can be implemented using which assembly instruction(s) on x86 processors?

A. int 0??80
B. sysenter
C. both a & b
D. none
Answer» C. both a & b
99.

Which of the following exec call is a system call?

A. execl
B. execlp
C. execve
D. execvp
Answer» C. execve
100.

______________ timer is decremented only when the process is executing

A. itimer_real
B. itimer_virtual
C. itimer_prof
D. none of the above
Answer» B. itimer_virtual

Done Studing? Take A Test.

Great job completing your study session! Now it's time to put your knowledge to the test. Challenge yourself, see how much you've learned, and identify areas for improvement. Don’t worry, this is all part of the journey to mastery. Ready for the next step? Take a quiz to solidify what you've just studied.