Font size
WorksheetsPOP02
Total questions: 74
Worksheet time: 37mins
In Linux, which command is used see the list of users who are currently logged-in? Select one:
login
users
who
which
Which of the following command is used to count number of lines in a file? Select one:
wc -l
wc -c
wc -w
In Linux, what command is used with vi editor to delete a single character? Select one:
a
z
y
x
Which command is/are used to remove directory in Linux? Select one:
rmdir
rm -r
rmdir or rm -r
In Linux, which of the following command is used to know last shutdown/reboot date and time? Select one:
last
lastreboot
lastlogin
lastshutdown
In Linux, what file specifies the order in which to use specified name services? Select one:
/etc/nsswitch.conf
/etc/nsorder
/etc/services
/etc/hosts
Which of the following command is used to count number of lines in a file in Linux? Select one:
wc -l
wc -c
wc -w
The system calls in UNIX is written using which language Select one:
Assembly Language
Fortran
C++
C
In Linux environment, at start of process execution, STDOUT & STDERR Select one:
Point to special files on the system
Are closed
Point to current terminal device
Which of the following command is used to create file in Linux? Select one:
cat
echo
touch
all of the choices are correct
In Linux, which command is used to list all the files in your current directory (including hidden)? Select one:
ls -l
ls -a
ls -i
ls -t
How can you add Amit, a new user, to your system? Select one:
All of the choices
Using useradd
Using adduser
Using linuxconf
In Linux, which among the following interacts directly with system hardware? Select one:
Shell
Applications
Commands
Kernel
In Linux, what command is used to count the total number of lines, words, and characters contained in a file? Select one:
wcount
countw
wc
Which of the following OS is not based on Linux?
BSD
Ubuntu
Redhat
CentOS
The address of a storage location in main memory is the __________ .
real address
virtual address space
virtual address
address space
__________ is the virtual storage assigned to a process.
Virtual address
Address space
Virtual address space
Real address
__________ is the range of memory addresses available to a process.
Virtual address space
Virtual address
Real address
Address space
The ________ structure indexes page table entries by frame number rather than by virtual page number.
segment table
page table
hash table
inverted page table
The ________ states the process that owns the page.
process identifier
control bits
page number
chain pointer
A ________ is issued if a desired page is not in main memory.
page placement policy
page fault
page replacement policy
paging error
__________ allows the programmer to view memory as consisting of multiple address spaces.
Segmentation
Locality
Paging
Resident set management
__________ is transparent to the programmer and eliminates external fragmentation providing efficient use of main memory.
Segmentation
Thrashing
Paging
Hashing
The ________ determines when a page should be brought into main memory.
page fault
fetch policy
working set
resident set management
With ________ pages other than the one demanded by a page fault are brought in.
hashing
thrashing
prepaging
slab allocation
The ________ policy results in the fewest number of page faults.
FIFO
Optimal
Clock
LRU
A ________ chooses only among the resident pages of the process that generated the page fault in selecting a page to replace.
page placement policy
local replacement policy
page replacement policy
global replacement policy
The ________ algorithm requires a use bit to be associated with each page in memory.
page fault frequency
VSWS
working set
page placement
________ is where modified process pages can be written out at the time of replacement, or a precleaning policy can be used, which clusters the output activity by writing out a number of pages at once.
Cleaning policy
Load control
Replacement policy
Placement policy
________ is the concept associated with determining the number of processes that will be resident in main memory.
Page fault frequency
LRU policy
Virtual memory manager
Load Control
Most of the memory management issues confronting the operating system designer are in the area of paging when segmentation is combined with paging.
True
False
Cannot be determined
Only sometimes
One way to counter the potential performance problems of a variable-allocation global scope policy is to use page buffering.
Only with small pages
True
Only under heavy load
False
A precleaning policy writes modified pages before their page frames are needed so that pages can be written out in batches.
True
False
Only for SSDs
Only with LRU
Segments may be of unequal, indeed dynamic, size.
Only in theory
True
False
Only in fixed schemes
The PFF policy evaluates the working set of a process at sampling instances based on elapsed virtual time.
True
False
Depends on policy
Only for batch jobs
The ________ category of external devices are suitable for communicating with the computer user.
human readable
communication
machine readable
application
The ________ unit is capable of mimicking the processor and of taking over control of the system bus just like a processor.
programmed I/O
interrupt-driven I/O
I/O channel
direct memory access
__________ external devices are suitable for communicating with electronic equipment.
Application
Communication
Human readable
Machine readable
The requested operations and data are converted into appropriate sequences of I/O instructions, channel commands, and controller orders at the __________ layer.
logical I/O
scheduling and control
device I/O
physical organization
__________ external devices are suitable for communicating with modems.
Human readable
Application
Communication
Machine readable
__________ is a technique that smoothes out peaks in I/O demand.
Buffering
Blocking
Smoothing
Tracking
The advantage of __________ is that it provides extremely high data availability.
RAID 6
RAID 4
RAID 5
RAID 3
The __________ technique is used on a Windows server to optimize the use of threads.
I/O completion ports
signaling an event object
asynchronous procedure call
polling
On a moveable-head system, the time it takes to position the head at the track is known as ________.
rotational delay
transfer time
access time
seek time
The __________ technique allows multiple simultaneous I/O requests against a single device or file.
asynchronous procedure call
signaling an event object
polling
signaling the file object
__________ are an efficient way of making consistent snapshots of volumes so that they can be backed up.
Photo copies
Process copies
Transfer copies
Shadow copies
RAID 5 is organized in a similar fashion to __________, but is different in the fact that RAID 5 distributes the parity strips across all disks.
RAID 2
RAID 4
RAID 3
RAID 1
The disk scheduling algorithm that implements two sub-queues in a measure to avoid the problem of "arm stickiness" is the __________.
C-SCAN policy
FSCAN policy
DMA
N-step-SCAN policy
The simplest type of support that the operating system can provide is __________.
circular buffering
dual buffering
overflow buffering
single buffering
The (a) layer deals with the device as a logical resource and is not concerned with the details of actually controlling the device.
The __________ layer deals with the logical structure of files and with the operations that can be specified by users, such as open, close, read, and write.
Physical device layer
File management system
Disk scheduling layer
Memory allocation layer
An objective of the __________ is to provide a standardized set of I/O interface routines to user processes.
Working directory
Indexed file allocation
File management system
File directory
A __________ is a collection of similar records.
File
Field
Database
Record
The essential aspects of a __________ are that the relationships that exist among elements of data are explicit and designed for use by a number of different applications.
Filesystem
Database
Record set
Data block
An __________ is a control structure that contains the key information needed by the operating system for a particular file.
Directory header
Open files registry
Index node table
File Control Block (FCB)
File systems do not maintain the attributes associated with the files.
True
False
Only on removable media
Only for executable files
All UNIX files have its description stored in a structure called 'inode'. Which of the below fields are not part of the inode?
File owner identifier
File access count
File access permissions
File type
In Shell scripting what is $*?
None of the above is correct.
Its mainly used for showing up all params. This show few parameter values passed in shell script.
Its mainly used for showing up all params. This show all values returned.
Its mainly used for showing up all params. This show all parameter values passed in shell script.
How do you get all files with on the 3rd place an r, g or i?
ls [..i*]
ls ??[rgi]*
ls [rgi]
ls ?3[rgI]*
How do you delete a file?
rm filename
dl filename
touch filename
less filename
How can you display a list of all files, including the hidden files?
ls -a
All the above are correct
find -a
find all
In Shell scripting What does $? Return?
$? will return exit status of command .0 if command gets successfully executed ,non-zero if command failed.
Invalid command
$? will return exit status of command .Non-0 if command gets successfully executed ,zero if command failed.
System error
The difference between printf and echo is
printf adds a new line after printing, echo does not
Both are same
None of the above.
Echo adds a new line after printing, printf does not
#! is called as
Hebang
Shebang
What does the command “Get-ChildItem” do in PowerShell?
Gets information about a specified child item
Lists all child objects in a directory
None of the above
Lists all child processes of the current process
What is the purpose of the Out-Null command in PowerShell?
To send output to a file
To suppress output from a command
To write output to the console
None of the above
Which command is used to set the execution policy in PowerShell?
None of the above
Set-ExecutionPolicy
Update-ExecutionPolicy
Set-Policy
Which command is used to create a new file in PowerShell?
Set-Item
Get-Item
Remove-Item
New-Item
Which command is used to create a new folder in PowerShell?
New-Item
Create-Folder
New-Folder
None of the above
Which company introduced PowerShell?
IBM
Microsoft
Apple
tether
Execute the file in PowerShell
Type the commands in a text editor
Save the file with .ps1 extension
All of the above
What is the syntax for an if/elseif/else statement in powershell?
d.
c.
b.
a.
How can you remove a variable?
By setting it to N/A
By typing "delete $variable"
By setting it to null
By setting it to 0
What is the full command for the alias "pwd"?
get-member
clear
powershell-directory
get-location
