Chapter 18 Quiz Flashcards

1
Q

Match the script file extension to the description.

A

.bat—————————-Windows batch file
.ps1—————————-Windows PowerShell script file
.vbs—————————-VBScript file
.sh——————————Unix or Linux shell script file
.py——————————Python script file
.js——————————-JavaScript file

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Use ______________________ to put a macOS computer to sleep, log out, restart, or shut down the system.

A

Apple Menu

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What two commands are used to change the permissions and ownership of a file or directory in Linux?

A

chmod
chown

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

If you need to redirect the output from a command, what symbol should you use?

A

>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

A variation of the ________ operating system, Linux was created by Linus Torvalds.

A

UNIX

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Programs that automatically launch at startup are called login items. (true/false)

A

false

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Which of the following is the current Linux file system used to hold the operating system?

A

ext4

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Windows can read from storage devices that are using the APFS. (true/false)

A

false

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What command lets you view the contents of a file?

A

cat

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

On Linux, where are the commands required for system administration stored?

A

/sbin

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Start

Match the scripting term to the description.

$X
%TEMP%
“Press any key”
“sample text”
Loop
9
1424

A

Start——————–PowerShell comment

$X————————-Variable
%TEMP%—————-Windows environment variable
“Press any key”——-String (1)
“sample text”———String (2)
Loop———————Executes the same commands until a condition is met
9————————–Integer (1)
1424———————Integer (2)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

A ____________ file is a disk image file for a Mac and is similar to WIM or ISO files in Windows.

A

dmg

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

__________________________ gives you a quick view of all open windows and desktops and lets you switch among them.

A

mission control

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Versions of Linux are called distributions or ___________.

A

flavors

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What user account is known as the system administrator or superuser account?

A

root

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What keypress sequence is used to open the Force Quit window on a Mac?

A

command+option+esc

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Basic versions of LINUX OS are open source, and all the underlying programming instructions (called __________ code) are freely distributed.

A

source

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

The ________________________ window is used to change and customize macOS settings and is similar to the Settings app in Windows 10.

A

system preferences

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

In order to break out of a Linux command or process on a terminal, what keys should you press?

A

ctrl+c

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

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

chown

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

In macOS, the ___________________ window functions something like File Explorer in Windows; use it to find and access files, applications, and utility programs.

A

Finder

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

What is the name of the macOS built-in backup utility?

A

Time Machine

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

In order to ensure that a Mac has no startup items, what two directories should you check for items?

A

/System/Library/StartupItems
/Library/StartupItems

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

_________________ is the macOS built-in password manager utility.

A

Keychain

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Q

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 Live CD

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
26
Q

The macOS disk utility tool called __________________________ scans a hard drive or other storage device for file system errors and repairs them.

A

First Aid

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
27
Q

A(n) environmental variable (sometimes called a _________ variable) is information the OS makes available to a script.

A

system

28
Q

Which of the following are closed source operating systems?

A

Mac OS X High Sierra
Windows 10 Home

29
Q

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

30
Q

In macOS, ____________________ is the search app that can be configured to search the local computer.

A

Spotlight

31
Q

What LINUX command can be used to copy and convert files, directories, partitions, and even entire DVDs or hard drives?

A

dd

32
Q

In Linux and macOS, this text editor works in command mode (to enter commands) or in insert mode (to edit text).

A

vi

33
Q

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

Linux

34
Q

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.

35
Q

Which of the following is a major advantage to using SSH over Telnet for remotely accessing a Linux system?

A

SSH is a secure, encrypted alternative to Telnet.

36
Q

GRUB is the current Linux boot loader, which can handle dual boots with another OS installed on the system. (true/false)

A

true

37
Q

You opened a batch file in Notepad and are observing the following lines. (The line numbers are for reference only.)
ECHO This batch file deletes the temp files
DEL %TEMP%. /Q
REM The temp files were deleted
PAUSE
Which of the lines is a comment?

A

Line 3

38
Q

After Windows is installed on a Mac Computer, press and hold the _________ key when starting the computer to reach the Startup Manager.

A

option

39
Q

If you want to boot to a deployment server on the network to reinstall macOS from a disk image, you will use the Apple technology called _____________. (one word answer)

A

netboot

40
Q

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

100

41
Q

What is the term used to designate that a particular operating system will no longer be supported by its manufacturer or managing entity?

A

End-of-life

42
Q

The __________ file system can be read and written by Linux, macOS, and Windows, and is therefore the file system of choice when you are concerned with compatibility.

A

FAT32

43
Q

The _____________ (substitute user) command is used to perform a command as superuser when logged in as a normal user.

A

sudo

44
Q

On Linux, the root user’s home directory is /home/root. (true/false)

A

false

45
Q

What occurs when Linux or macOS encounters an error from which it cannot recover?

A

kernel panic

46
Q

______________________________ is a macOS utility to remotely view and control another Mac; it is similar to Remote Desktop in Windows.

A

screen sharing

47
Q

What LINUX command below is used to test network connections by sending a request packet to a host?

A

ping

48
Q

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

49
Q

Boot Camp is a utility in macOS that allows you to install and run _________ on a Mac Computer.

A

Windows

50
Q

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

ps

51
Q

The default shell for the terminal is the ________ shell, which stands for “Bourne Again Shell”.

A

bash

52
Q

Linux utilizes what two different wildcard characters at the command line?

A

*
?

53
Q

macOS, formally called Mac OS X, is a ___________________ operating system that is only available for Macintosh computers by Apple Inc.

A

proprietary

54
Q

What Linux distribution is made for servers, desktops, and mobile devices?

A

openSUSE

55
Q

The macOS utility __________________ is used to launch and uninstall applications.

A

Launchpad

56
Q

Boot Camp can split a partition and install Windows in the new partition for a _______ boot.

A

dual

57
Q

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

NetBoot

58
Q

Which of the following best describes a variable when implemented in a script?

A

A container for storing data values that can be assigned, referenced, and manipulated

59
Q

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 command needs to be preceded by sudo.

60
Q

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.

61
Q

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 3

62
Q

Which of the following are closed source, proprietary operating systems? (Select TWO.)

A

Mac OS X High Sierra
Windows 10 Home

63
Q

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

First Aid

64
Q

Which of the following are natively supported by the Windows, Mac, and Linux operating systems?

A

Support for reading and writing to FAT32 partitions

65
Q

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

macOS Recovery

66
Q

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.

67
Q

In Linux, where are the commands required for system administration stored?

A

/sbin