CH 10 - 18 Second Half Flashcards
Which of the following are traits of a multiuser OS? (Choose Three)
Resources are shared between users.
Users can protect their information from other users.
Each user can only log in once per day.
An administrative user gets a dedicated CPU
Many users can log in simultaneously with a unique account.
Resources are shared between users.
Users can protect their information from other users.
Many users can log in simultaneously with a unique account.
A pipe allows you to?
…send the same input to multiple commands
…type multiple commands at one prompt.
…send the output of one command to another.
…send the output of a command to a file.
…send the output of one command to another.
Channel 2 is?
STDALL
STDOUT
STDERR
STDIN
STDERR
The grep command?
…will display all lines that begin with the specified Regular Expression.
…will display all lines in a file containing the specified Regular Expression.
…is not case sensitive
…will display the line numbers in a file that contain a specified Regular Expression.
…will display all lines in a file containing the specified Regular Expression.
Which of the following commands can be used to scroll through a text file? (Choose Two)
cat
less
some
more
less
more
Which command can be used to print line numbers?
ln
nl
sort
num
nl
Which are appropriate editors for writing shell scripts? (Choose Two)
LibreOffice Writer vi Firefox nano /bin/bash
vi
nano
Which of the following are correct about for and while loops? (Choose Two)
while loops operate over a fixed list of items
for loops have a test each cycle to determine if it should run again
while loops have a test each cycle to determine if it should run again
for loops require a variable over which to iterate
for loops operate over a fixed list of items
while loops have a test each cycle to determine if it should run again
for loops operate over a fixed list of terms
What is the correct way to assign the word “Hello” to a variable?
$A="Hello" A="Hello" echo "Hello" >A A="Hello" echo $A "Hello"
A=”Hello”
What is the correct way to save the current directory to a Variable?
pwd $A A=cwd A='pwd' A=pwd pwd | $A
A=’pwd’
What is the meaning of $(($i+1))?
If i is 0, the loop will stop
This runs the command stored in the variable i
This will return the value of the next argument to the script
1 will be added to the i variable
This will return the value of the first argument to the script.
1 will be added to the i variable
Which of the following are Valid CPU Types for Intel-Based Platforms? (Choose Two)
64-bit
24-bit
32-bit
48-bit
64-bit
32-bit
Choose all of the following statements that are true in regard to Virtual RAM? (Choose Three)
Virtual RAM is stored in the CPU
Virtual RAM is also called swap space
Virtual RAM is stored on a hard drive
Virtual RAM is used when available physical RAM is low
Virtual RAM is also called swap space
Virtual RAM is stored on a hard drive
Virtual RAM is used when available physical RAM is low
A division of a hard drive may be referred to as a _____?
label
block
portion
partition
partition
The fdisk command is a tool used for working with the MBR partitioned disks?
True
False
True
Which of the following commands will display CPU information? (Choose Two)
cpuinfo lscpu showcpu lspic arch
lscpu
arch
The process ID (PID) of the init process is?
100
0
1
Varies
1