Professional Documents
Culture Documents
6. Which command is used to list all the files in your current directory(including hidden)?
A. ls -l
B. ls -t
C. ls -a
D. ls -i
Ans: C
8. Which key combination is used to see all the hidden files in Nautilus file manager?
A. Ctrl + Shift + h
B. Ctrl + h
C. Ctrl + Alt + h
D. None of the above
Ans: B
13. Which of the following command can be used as an alternative to echo command?
A. print
B. printr
C. printf
D. none of these
Ans: C
14. Which command is used to change password of your Linux system?
A. password
B. pass
C. change -p
D. passwd
Ans: D
15. Which command is used see the list of users who are currently logged-in?
A. login
B. users
C. who
D. which
Ans: C
16. Which directory in Linux contains all the config file of the system?
A. /etc
B. /var
C. /lib
D. /bin
Ans: A
17. Which of the following command is used to know last shutdown/reboot date and time?
A. last
B. lastlogin
C. lastreboot
D. lastshutdown
Ans: A
18. Which of the following command is used to count number of lines in a file?
A. wc -l
B. wc -c
C. wc -w
D. None of these
Ans: A
19. Which of the following statement is incorrect about /bin and /sbin directory?
A. /sbin contain only binaries essential for booting, restoring,
Recovering, and/or repairing the system in addition to the binaries in /bin.
B. There is no difference between /bin and /sbin, they are just two directories
C. /bin contains commands that may be used by both the system administrator and by users, but which
are required when no other filesystems are mounted.
D. Utilities used for system administration are stored in /sbin.
Ans: B
20. Which of the following command(s) is/are used to reboot a Linux system?
A. shutdown -h
B. reboot
C. init 6
D. All of the above
Ans: D
23. Suppose I am in /etc directory and I want to go to my home directory which command should I use?
A. cd
B. cd ~
C. Both A and B
D. none of these
Ans: C
30. Which of the following command is used to display content of a file in octal format?
A. octal
B. cat
C. oct
D. od
Ans: D
31. In Linux which of following command do you use to know the purpose of a command?
A. which
B. whatis
C. what
D. purpose
Ans: B
33. Suppose I have made some changes in my Php.ini file and I want to restart my Apache server, which
of following command should I use?
A. sudo service apache2 restart
B. sudo /etc/init.d/apache2 restart
C. Both A and B
D. Only A
Ans: C
34. Which command is used to show process hierarchy in tree format?
A. ps -tree
B. pstree
C. ps -t
D. none of these
Ans: B
35. Which of the following command is used to see the content of tar(backup.tar) file without extracting
it?
A. tar -xvf backup.tar
B. tar -svf backup.tar
C. tar -tvf backup.tar
D. none of these
Ans: C
36. Which command is used to execute the last command you have executed?
A. !!
B. !-1
C. Both A and B
D. Only A
Ans: C
39. Which of the following command return the exit status of last command?
A. $!
B. $$
C. $?
D. $#
Ans: C
44. Which of the following command keep a process running even after you logout from your shell?
A. &
B. nohup
C. bg
D. hup
Ans: B
47. Which of the following command kill all the process including shell ?
A. kill kill 0
B. kill -9 kill 0
C. kill -s kill 0
D. Both B and C
Ans: D
49. Priority of the process can be changed using which of the following command ?
A. nice
B. chpriority
C. renice
D. Not allowed to change process priority
Ans: C
50. In _______ state of a process, the process will be terminated and the information will still be
available in the process table.
A. Interruptible
B. Uninterruptible
C. Zombie
D. Running
Ans: C
2 Analysis which determines the meaning of a statement once its grammatical structure becomes known
is termed as
(A) Semantic analysis
(B) Syntax analysis
(C) Regular analysis
(D) General analysis
Ans: (A)
8 Interval between the time of submission and completion of the job is called
(A) Waiting time
(B) Turnaround time
(C) Throughput
(D) Response time
Ans: (B)
10 The scheduling in which CPU is allocated to the process with least CPU-burst time is called
(A) Priority Scheduling
(B) Shortest job first Scheduling
(C) Round Robin Scheduling
(D) Multilevel Queue Scheduling
Ans: (B)
Ans: (C)
13 Which of the following can be used as a criterion for classification of data structures used in language
processing.
(A) nature of a data structure
(B) purpose of a data structure
(C) lifetime of a data structure
(D) all of the above.
Ans: (D)
14 Memory utilization factor shall be computed as follows
(A) memory in use/allocated memory.
(B) memory in use/total memory connected.
(C) memory allocated/free existing memory.
(D) memory committed/total memory available.
Ans: (B)
15 Program ‘preemption’ is
(A) forced de allocation of the CPU from a program which is executing on the CPU.
(B) release of CPU by the program after completing its task.
(C) forced allotment of CPU by a program to itself.
(D) a program terminating itself due to detection of an error.
Ans: (A)
16 An assembler is
(A) programming language dependent.
(B) syntax dependant.
(C) machine dependant.
(D) data dependant.
Ans: (C)
17 Which of the following is not a fundamental process state
(A) ready
(B) terminated
(C) executing
(D) blocked
Ans: (D)
20 Which of the following approaches do not require knowledge of the system state?
(A) deadlock detection.
(B) deadlock prevention.
(C) deadlock avoidance.
(D) none of the above.
Ans: (D)
23 An imperative statement
(A) Reserves areas of memory and associates names with them
(B) Indicates an action to be performed during execution of assembled program
(C) Indicates an action to be performed during optimization
(D) None of the above
Ans: (B)
24 Which of the following loader is executed when a system is first turned on or restarted
(A) Boot loader
(B) Compile and Go loader
(C) Bootstrap loader
(D) Relating loader
Ans: (C)
26 “Throughput” of a system is
(A) Number of programs processed by it per unit time
(B) Number of times the program is invoked by the system
(C) Number of requests made to a program by the system
(D) None of the above
Ans: (A)
29 Which amongst the following is valid syntax of the Fork and Join Primitive?
(A) Fork Join
(B) Fork Join
(C) For Join
(D) Fork join
Ans: (A)
34 A linker program
(A) places the program in the memory for the purpose of execution.
(B) relocates the program to execute from the specific memory area allocated to it.
(C) links the program with other programs needed for its execution.
(D) interfaces the program with the entities generating its input data.
Ans: (C)
38 Locality of reference implies that the page reference being made by a process
(A) will always be to the page used in the previous page reference.
(B) is likely to be the one of the pages used in the last few page references.
(C) will always be to one of the pages existing in memory.
(D) will always lead to a page fault.
Ans: (B)
(B) EQU
(C) EQU
(D) None of the above
Ans: (B)41 The following features are needed to implement top down parsing
(A) Source string marker
(B) Prediction making mechanism
(C) Matching and Backtracking mechanism
(D) All of the above
Ans: (D)
44 Which of the following is not a key piece of information, stored in single page table entry, assuming
pure paging and virtual memory
(A) Frame number
(B) A bit indicating whether the page is in physical memory or on the disk
(C) A reference for the disk block that stores the page
(D) None of the above
Ans: (C)
48 Consider a program with a linked origin of 5000. Let the memory area allocated to it have the start
address of 70000. Which amongst the following will be the value to be loaded in relocation register?
(A) 20000
(B) 50000
(C) 70000
(D) 90000
Ans: (None of the above choice in correct. )
49 An assembly language is a
(A) low level programming language
(B) Middle level programming language
(C) High level programming language
(D) Internet based programming language
Ans: (A)
50 TII stands for
(A) Table of incomplete instructions
(B) table of information instructions
(C) translation of instructions information
(D) translation of information instruction
Ans: (A)
51 An analysis, which determines the syntactic structure of the source statement, is called
(A) Sementic analysis
(B) process analysis
(C) Syntax analysis
(D) function analysis
Ans: (C)
56 A set of techniques that allow to execute a program which is not entirely in memory is called
(A) demand paging
(B) virtual memory
(C) auxiliary memory
(D) secondary memory
Ans: (B)
58 Before proceeding with its execution, each process must acquire all the resources it needs is called
(A) hold and wait
(B) No pre-emption
(C) circular wait
(D) starvation
Ans: (A)
59 Virtual memory is
(A) simple to implement
(B) used in all major commercial operating systems
(C) less efficient in utilization of memory
(D) useful when fast I/O devices are not available
Ans: (B)
62 Relocatable programs
(A) cannot be used with fixed partitions
(B) can be loaded almost anywhere in memory
(C) do not need a linker
(D) can be loaded only at one specific location
Ans: (B)
63 Page stealing
(A) is a sign of efficient system
(B) is taking page frames other working sets
(C) should be the tuning goal
(D) is taking larger disk spaces for pages paged out
Ans: (B)
64 The total time to prepare a disk drive mechanism for a block of data to be read from is its
(A) latency
(B) latency plus transmission time
(C) latency plus seek time
(D) latency plus seek time plus transmission time
Ans: (C)
65 To avoid race condition, the maximum number of processes that may be simultaneously inside the
critical section is
(A) zero
(B) one
(C) two
(D) more than two
Ans: (B)
73. Which of the following will determine your choice of systems software for your computer ?
A. Is the applications software you want to use compatible with it ?
B. Is it expensive ?
C. Is it compatible with your hardware ?
D. Both A. and C.
Ans: D
74. Let S and Q be two semaphores initialized to A., where P0 and PA. processes the following statements
wait(S);wait(Q); —; signal(S);signal(Q) and wait(Q); wait(S);—;signal(Q);signal(S); respectively. The
above situation depicts a _________ .
A. Semaphore
B. Deadlock
C. Signal
D. Interrupt
Ans: B
76. Routine is not loaded until it is called. All routines are kept on disk in a relocatable load format. The
main program is loaded into memory & is executed. This type of loading is called _________
A. Static loading
B. Dynamic loading
C. Dynamic linking
D. Overlays
Ans: C
80. The process related to process control, file management, device management, information about
system and communication that is requested by any higher level language can be performed by
__________.
A. Editors
B. Compilers
C. System Call
D. Caching
Ans: C
83. The solution to Critical Section Problem is : Mutual Exclusion, Progress and Bounded Waiting.
A. The statement is false
B. The statement is true.
C. The statement is contradictory.
D. None of the above
Ans: B
86. The number of processes completed per unit time is known as __________.
A. Output
B. Throughput
C. Efficiency
D. Capacity
Ans: B
87. _________ is the situation in which a process is waiting on another process,which is also waiting on
another process … which is waiting on the first process. None of the processes involved in this circular
wait are making progress.
A. Deadlock
B. Starvation
C. Dormant
D. None of the above
Ans: A
88. Which of the following file name extension suggests that the file is Backup copy of another file ?
A. TXT
B. COM
C. BAS
D. BAK
Ans: D
89. Which technique was introduced because a single job could not keep both the CPU and the I/O
devices busy?
A. Time-sharing
B. SPOOLing
C. Preemptive scheduling
D. Multiprogramming
Ans: D
91. The mechanism that bring a page into memory only when it is needed is called ______.
A. Segmentation
B. Fragmentation
C. Demand Paging
D. Page Replacement
Ans: C
92. PCB =
A. Program Control Block
B. Process Control Block
C. Process Communication Block
D. None of the above
Ans: B
94. Switching the CPU to another Process requires to save state of the old process and loading new
process state is called as __________.
A. Process Blocking
B. Context Switch
C. Time Sharing
D. None of the above
Ans: B