Deck 10: Macos, Linux, and Scripting

Full screen (f)
exit full mode
Question
A system administrator is selecting an operating system for use by the company's research and development team. The team requires an OS that can be easily modified and changed to meet its particular requirements.  
Which of the following operating systems will be the best choice for the users?

A) Windows 10 Enterprise
B) Mac OS X
C) Linux
D) Windows 7 Professional
Use Space or
up arrow
down arrow
to flip the card.
Question
A technician is logged in to a Linux computer as johnd and needs to reset group ownership for the file report.txt in the johnd home directory.  
Which of the following commands will perform this function?

A) cd
B) ps
C) chown
D) clear
Question
In Linux, where are the commands required for system administration stored?

A) /bin
B) /usr
C) /opt
D) /sbin
Question
A user is complaining about sluggish performance on her Linux system, and the technician suspects a running process is consuming excessive processor resources.  
Which of the following commands will the technician most likely use to locate the offending process?

A) dd
B) kill
C) ps
D) vi
Question
A Mac computer is reporting problems with the HDD, and the user wants to run a check for errors.   
Which of the following is a disk management tool built into macOS that is useful for finding and repairing disk problems?

A) macOS Recovery
B) First Aid
C) Time Machine
D) grep
Question
Which of the following describes the macOS feature that lets you use finger motions to perform functions, for example, spreading two fingers to zoom in?

A) Gestures
B) Snapshots
C) Spotlight
D) Finder
Question
A technician is logged in to a Linux system with a user account that has been assigned root privileges. Each time the technician attempts to run a specific terminal command, a "Permission denied" message is displayed.   
What is the most likely reason for this message?

A) The software repository is out of date and needs to be updated.
B) The command syntax needs to be verified.
C) The user account is not assigned a password.
D) The command needs to be preceded by sudo.
Question
What is the term used to designate that a particular operating system will no longer be supported by its manufacturer or managing entity?

A) Distro
B) End-of-life
C) Force Quit
D) Forced kill
Question
Which of the following are natively supported by the Windows, Mac, and Linux operating systems?

A) Support for reading and writing to APFS volumes
B) Support for reading and writing to NTFS partitions
C) Support for reading and writing to ext4 volumes
D) Support for reading and writing to FAT32 partitions
Question
A Linux user needs to find all instances of the word admin in /var/log/auth.log.  
Which of the following commands will perform this function?

A) grep
B) ls
C) rm
D) cp
E) apt-get
Question
Which of the following is a major advantage to using SSH over Telnet for remotely accessing a Linux system?

A) Telnet does not have a common TCP port assignment, SSH does.
B) SSH uses much less bandwidth to perform the same functions as Telnet.
C) SSH is a secure, encrypted alternative to Telnet.
D) Telnet is not available for use by Linux systems.
Question
Which of the following best describes a variable when implemented in a script?

A) A portion of a script that executes multiple times until a condition is met.
B) A container for storing data values that can be assigned, referenced, and manipulated.
C) A line or portion of a script that the interpreter does not process.
D) The part of a filename used to designate a file's association with a particular script language.
Question
A technician needs to boot macOS over the network using an image stored on a server.  
What Apple technology will best assist the technician?

A) Swap partition
B) NetBoot
C) HFS+
D) Key Chain
Question
A technician wants to use a Time Machine backup to install a new copy of the macOS onto a Mac.   
Which of the following tools will the technician use to perform this task?

A) Disk Utility
B) Boot Camp
C) macOS Recovery
D) Mission Control
Question
How can you eliminate the need to open a dedicated TCP port on your corporate firewall when using Mac computers to share screens from the local and remote computers?

A) Use a third-party remote access app that uses a browser.
B) Enable Remote Disc on both computers.
C) Disable encryption on both ends of the Screen Sharing session.
D) Enable the Screen Sharing service in the Sharing window.
Question
A Mac user wants to update macOS and is searching Apple.com to locate update files.  
How are macOS updates typically obtained?

A) Updates are found in the App Store.
B) macOS does not require or utilize updates.
C) Updates are downloaded through Time Machine.
D) A manual update of macOS is not possible.
Question
Which of the following is the current Linux file system used to hold the operating system?

A) APFS
B) ext3 ​
C) NTFS
D) ext4 ​
Question
You opened a batch file in Notepad and are observing the following lines. (The line numbers are for reference only.)  
1-ECHO This batch file deletes the temp files
2- DEL %TEMP%\*.* /Q
3-REM The temp files were deleted
4-PAUSE
Which of the lines is a comment?

A) Line 1
B) Line 2
C) Line 3
D) Line 4
E) There are no comments in this file.
Question
What is the value of X and what is the condition of the Do…Loop when execution ends in the following pseudo code?  
X = 1
Do
                ' This is a comment
                Print X;
Loop

A) X = 1, the Do…Loop is endless.
B) X = 1, the Do…Loop is not endless.
C) X = 0, the Do…Loop is endless.
D) X = 0, the Do…Loop is not endless.
Question
What is the value of X when execution ends in the following pseudocode?  
Set X As Integer
For X = 100 to 0 Step -1
               ' This is a comment
Next X
X = 100

A) 0
B) 100
C) 1
D) -1
Question
Match between columns
.js
Windows batch file
.js
Windows PowerShell script file
.js
VBScript file
.js
Unix or Linux shell script file
.js
Python script file
.js
JavaScript file
.vbs
Windows batch file
.vbs
Windows PowerShell script file
.vbs
VBScript file
.vbs
Unix or Linux shell script file
.vbs
Python script file
.vbs
JavaScript file
.py
Windows batch file
.py
Windows PowerShell script file
.py
VBScript file
.py
Unix or Linux shell script file
.py
Python script file
.py
JavaScript file
.sh
Windows batch file
.sh
Windows PowerShell script file
.sh
VBScript file
.sh
Unix or Linux shell script file
.sh
Python script file
.sh
JavaScript file
.bat
Windows batch file
.bat
Windows PowerShell script file
.bat
VBScript file
.bat
Unix or Linux shell script file
.bat
Python script file
.bat
JavaScript file
.ps1
Windows batch file
.ps1
Windows PowerShell script file
.ps1
VBScript file
.ps1
Unix or Linux shell script file
.ps1
Python script file
.ps1
JavaScript file
Question
Which of the following are closed source, proprietary operating systems? (Select TWO.)

A) Mac OS X High Sierra
B) openSUSE Linux
C) Ubuntu Linux
D) Windows 10 Home
Question
Match between columns
9
Variable
9
Integer
9
Executes the same commands until a condition is met
9
String
9
Windows environment variable
9
PowerShell comment
#Start
Variable
#Start
Integer
#Start
Executes the same commands until a condition is met
#Start
String
#Start
Windows environment variable
#Start
PowerShell comment
"sample text"
Variable
"sample text"
Integer
"sample text"
Executes the same commands until a condition is met
"sample text"
String
"sample text"
Windows environment variable
"sample text"
PowerShell comment
$X
Variable
$X
Integer
$X
Executes the same commands until a condition is met
$X
String
$X
Windows environment variable
$X
PowerShell comment
%TEMP%
Variable
%TEMP%
Integer
%TEMP%
Executes the same commands until a condition is met
%TEMP%
String
%TEMP%
Windows environment variable
%TEMP%
PowerShell comment
Loop
Variable
Loop
Integer
Loop
Executes the same commands until a condition is met
Loop
String
Loop
Windows environment variable
Loop
PowerShell comment
Variable
Integer
Executes the same commands until a condition is met
String
Windows environment variable
PowerShell comment
Variable
Integer
Executes the same commands until a condition is met
String
Windows environment variable
PowerShell comment
Question
A bootable Linux USB flash drive or CD that can be used to repair system issues is known by what term, respectively?

A) Live USB or CD
B) Repair USB or CD
C) Boot USB or CD
D) Supplemental OS
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/24
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 10: Macos, Linux, and Scripting
1
A system administrator is selecting an operating system for use by the company's research and development team. The team requires an OS that can be easily modified and changed to meet its particular requirements.  
Which of the following operating systems will be the best choice for the users?

A) Windows 10 Enterprise
B) Mac OS X
C) Linux
D) Windows 7 Professional
C
2
A technician is logged in to a Linux computer as johnd and needs to reset group ownership for the file report.txt in the johnd home directory.  
Which of the following commands will perform this function?

A) cd
B) ps
C) chown
D) clear
C
3
In Linux, where are the commands required for system administration stored?

A) /bin
B) /usr
C) /opt
D) /sbin
D
4
A user is complaining about sluggish performance on her Linux system, and the technician suspects a running process is consuming excessive processor resources.  
Which of the following commands will the technician most likely use to locate the offending process?

A) dd
B) kill
C) ps
D) vi
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
k this deck
5
A Mac computer is reporting problems with the HDD, and the user wants to run a check for errors.   
Which of the following is a disk management tool built into macOS that is useful for finding and repairing disk problems?

A) macOS Recovery
B) First Aid
C) Time Machine
D) grep
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
k this deck
6
Which of the following describes the macOS feature that lets you use finger motions to perform functions, for example, spreading two fingers to zoom in?

A) Gestures
B) Snapshots
C) Spotlight
D) Finder
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
k this deck
7
A technician is logged in to a Linux system with a user account that has been assigned root privileges. Each time the technician attempts to run a specific terminal command, a "Permission denied" message is displayed.   
What is the most likely reason for this message?

A) The software repository is out of date and needs to be updated.
B) The command syntax needs to be verified.
C) The user account is not assigned a password.
D) The command needs to be preceded by sudo.
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
k this deck
8
What is the term used to designate that a particular operating system will no longer be supported by its manufacturer or managing entity?

A) Distro
B) End-of-life
C) Force Quit
D) Forced kill
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
k this deck
9
Which of the following are natively supported by the Windows, Mac, and Linux operating systems?

A) Support for reading and writing to APFS volumes
B) Support for reading and writing to NTFS partitions
C) Support for reading and writing to ext4 volumes
D) Support for reading and writing to FAT32 partitions
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
k this deck
10
A Linux user needs to find all instances of the word admin in /var/log/auth.log.  
Which of the following commands will perform this function?

A) grep
B) ls
C) rm
D) cp
E) apt-get
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
k this deck
11
Which of the following is a major advantage to using SSH over Telnet for remotely accessing a Linux system?

A) Telnet does not have a common TCP port assignment, SSH does.
B) SSH uses much less bandwidth to perform the same functions as Telnet.
C) SSH is a secure, encrypted alternative to Telnet.
D) Telnet is not available for use by Linux systems.
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
k this deck
12
Which of the following best describes a variable when implemented in a script?

A) A portion of a script that executes multiple times until a condition is met.
B) A container for storing data values that can be assigned, referenced, and manipulated.
C) A line or portion of a script that the interpreter does not process.
D) The part of a filename used to designate a file's association with a particular script language.
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
k this deck
13
A technician needs to boot macOS over the network using an image stored on a server.  
What Apple technology will best assist the technician?

A) Swap partition
B) NetBoot
C) HFS+
D) Key Chain
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
k this deck
14
A technician wants to use a Time Machine backup to install a new copy of the macOS onto a Mac.   
Which of the following tools will the technician use to perform this task?

A) Disk Utility
B) Boot Camp
C) macOS Recovery
D) Mission Control
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
k this deck
15
How can you eliminate the need to open a dedicated TCP port on your corporate firewall when using Mac computers to share screens from the local and remote computers?

A) Use a third-party remote access app that uses a browser.
B) Enable Remote Disc on both computers.
C) Disable encryption on both ends of the Screen Sharing session.
D) Enable the Screen Sharing service in the Sharing window.
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
k this deck
16
A Mac user wants to update macOS and is searching Apple.com to locate update files.  
How are macOS updates typically obtained?

A) Updates are found in the App Store.
B) macOS does not require or utilize updates.
C) Updates are downloaded through Time Machine.
D) A manual update of macOS is not possible.
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
k this deck
17
Which of the following is the current Linux file system used to hold the operating system?

A) APFS
B) ext3 ​
C) NTFS
D) ext4 ​
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
k this deck
18
You opened a batch file in Notepad and are observing the following lines. (The line numbers are for reference only.)  
1-ECHO This batch file deletes the temp files
2- DEL %TEMP%\*.* /Q
3-REM The temp files were deleted
4-PAUSE
Which of the lines is a comment?

A) Line 1
B) Line 2
C) Line 3
D) Line 4
E) There are no comments in this file.
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
k this deck
19
What is the value of X and what is the condition of the Do…Loop when execution ends in the following pseudo code?  
X = 1
Do
                ' This is a comment
                Print X;
Loop

A) X = 1, the Do…Loop is endless.
B) X = 1, the Do…Loop is not endless.
C) X = 0, the Do…Loop is endless.
D) X = 0, the Do…Loop is not endless.
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
k this deck
20
What is the value of X when execution ends in the following pseudocode?  
Set X As Integer
For X = 100 to 0 Step -1
               ' This is a comment
Next X
X = 100

A) 0
B) 100
C) 1
D) -1
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
k this deck
21
Match between columns
.js
Windows batch file
.js
Windows PowerShell script file
.js
VBScript file
.js
Unix or Linux shell script file
.js
Python script file
.js
JavaScript file
.vbs
Windows batch file
.vbs
Windows PowerShell script file
.vbs
VBScript file
.vbs
Unix or Linux shell script file
.vbs
Python script file
.vbs
JavaScript file
.py
Windows batch file
.py
Windows PowerShell script file
.py
VBScript file
.py
Unix or Linux shell script file
.py
Python script file
.py
JavaScript file
.sh
Windows batch file
.sh
Windows PowerShell script file
.sh
VBScript file
.sh
Unix or Linux shell script file
.sh
Python script file
.sh
JavaScript file
.bat
Windows batch file
.bat
Windows PowerShell script file
.bat
VBScript file
.bat
Unix or Linux shell script file
.bat
Python script file
.bat
JavaScript file
.ps1
Windows batch file
.ps1
Windows PowerShell script file
.ps1
VBScript file
.ps1
Unix or Linux shell script file
.ps1
Python script file
.ps1
JavaScript file
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
k this deck
22
Which of the following are closed source, proprietary operating systems? (Select TWO.)

A) Mac OS X High Sierra
B) openSUSE Linux
C) Ubuntu Linux
D) Windows 10 Home
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
k this deck
23
Match between columns
9
Variable
9
Integer
9
Executes the same commands until a condition is met
9
String
9
Windows environment variable
9
PowerShell comment
#Start
Variable
#Start
Integer
#Start
Executes the same commands until a condition is met
#Start
String
#Start
Windows environment variable
#Start
PowerShell comment
"sample text"
Variable
"sample text"
Integer
"sample text"
Executes the same commands until a condition is met
"sample text"
String
"sample text"
Windows environment variable
"sample text"
PowerShell comment
$X
Variable
$X
Integer
$X
Executes the same commands until a condition is met
$X
String
$X
Windows environment variable
$X
PowerShell comment
%TEMP%
Variable
%TEMP%
Integer
%TEMP%
Executes the same commands until a condition is met
%TEMP%
String
%TEMP%
Windows environment variable
%TEMP%
PowerShell comment
Loop
Variable
Loop
Integer
Loop
Executes the same commands until a condition is met
Loop
String
Loop
Windows environment variable
Loop
PowerShell comment
Variable
Integer
Executes the same commands until a condition is met
String
Windows environment variable
PowerShell comment
Variable
Integer
Executes the same commands until a condition is met
String
Windows environment variable
PowerShell comment
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
k this deck
24
A bootable Linux USB flash drive or CD that can be used to repair system issues is known by what term, respectively?

A) Live USB or CD
B) Repair USB or CD
C) Boot USB or CD
D) Supplemental OS
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 24 flashcards in this deck.