Operating Systems Fundamentals
Test your knowledge of operating systems concepts including process scheduling, memory management, file systems, and Unix/HP-UX commands.
Questions
What is the default history file in the HP-UX POSIX shell?
- history
- $HOME/.history
- $HOME/.sh_history
- /etc/history
Which command displays the value of the HOME variable?
- echo $HOME
- echo "$HOME"
- echo HOME
- echo `$HOME`
Which mode is not used in vi editor?
- command mode
- insert mode
- preserve mode
- last line mode
The set_parms command is used to:
- set the hostname
- set the time zone
- set the IP
- all the above
What is the secondary system loader?
- the hpux utility
- the init process
- PDC
- the /stand/system
Which is not a standard state of any HP-UX process
- running
- sleeping
- zombie
- printing
Which file on HP-UX contains a list of standard port numbers for different applications?
- /etc/hosts
- /etc/ports
- /etc/services
- /etc/protocols
condition required for deadlock
- mutual exclusion
- no preemtion
- hold and wait
- cycle
paging technique lead to external fragmentation
- True
- False
virtual memory management is a dynamic paging concept
- True
- False
which one of following are scheduling algorithm
- fcfs
- sjf
- round robin
- all of the above
external fragmentation can be handled by
- compaction
- defragmentation
- it cannot be handled
- none of the choice
which is the fastest memory
- hard disc
- main memory
- cpu registers
- cache memoy
technique to handle deadlock
- deadlock prevention
- deadlock detection
- deadlock avoidance
- all of the above
indexing is used to sort
- True
- False
kernel is known to be the heart of operating sistem
- True
- False
What command is used to run another command immune to hangups, logouts,and quits?
- hup
- nohup
- attachtoroot
- daemon
What is sticky bit?
- It is a file permission that allows the program's text part to stay in swap memory after its execution
- UNIX don’t have sticky bit
- It’s a Linux only feature
- None of above
What is shadow in UNIX?
- It is a file
- It is a process
- It is a command
- It is a file containing encrypted password & Login info
can a file's modified timestamp be modified? If so how?
- No
- Yes
- Yes;using touch command
- Yes;using time system call