Explore topic-wise MCQs in Bachelor of Sc in Computer Science FY.

This section includes 98 Mcqs, each offering curated multiple-choice questions to sharpen your Bachelor of Sc in Computer Science FY knowledge and support exam preparation. Choose a topic below to get started.

1.

Sysconf(_SC_PAGE_SIZE) returns?

A. size of the page
B. max size of the page
C. min size of the page
D. paging allowed or not
Answer» B. max size of the page
2.

shared memory can be used for?

A. read only operations
B. append
C. read or read write operations
D. write only
Answer» D. write only
3.

Daemon process is a?

A. group leader
B. session leader
C. orphan process
D. all the above
Answer» E.
4.

The terminal used by a Daemon process is:

A. any terminal
B. no terminal
C. b) root terminal
D. system console
Answer» C. b) root terminal
5.

Which of the following exec call is a system call?

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

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» D. none
7.

______________ timer is decremented only when the process is executing

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

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» E.
9.

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

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

Section 2 of manpage describes

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

Monolithic kernel

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

Among these files which has an ELF format

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

Mm_struct maintains?

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

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» B. other threads of the process will continue to execute even if there is no kernel supported threads
15.

Is page table per process entity?

A. yes
B. no
Answer» B. no
16.

UNIX/Linux kernel is?

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

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» E.
18.

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

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

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

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

Solaris real time class priority is

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

Which one can be a real time schedule policy?

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

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» C. increase or decrease the priority of a process
23.

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» E.
24.

Which niceness value among the following indicate most favorable scheduling?

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

Fork returns _____ to parent process on success

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

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» B. the child process is an orphan
27.

Return value of fork() system call can be:

A. -1,<0,0
B. -1,>0,0
Answer» C.
28.

The process which terminates before the parent process exits becomes

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

How do you get parent process identification number?

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

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

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

Pid of init process

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

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» B. process switches from kernel mode to user mode.
33.

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» C. /etc
34.

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» B. all the system files
35.

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» B. optional booting files
36.

Kernel modules are present in

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

Which one of the directory does not contain binary files?

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

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» B. after the kernel begins executing user mode programs
39.

Host specific configuration files are installed in

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

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» C. package works just after extraction, installation is not required
41.

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» B. -e
42.

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» D. sed ‘/^*/d’ old.txt
43.

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» B. date +”%d/%m/%y”
44.

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

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

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

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

Which command is used to perform backup in unix?

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

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

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

Which command is used to extract intermediate result in a pipeline

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

Which command changes a file’s group owner

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

Which command is used to view compressed text file contents

A. cat
B. type
C. zcat
D. print
Answer» D. print