CompTIA 220-1202 (CompTIA A+ Certification Exam: Core 2) Practice Test 12

Question 110

A user has many windows and wants an overview of open applications and desktops. Which macOS interface feature helps?

  1. Finder
  2. Keychain Access
  3. Mission Control
  4. FileVault

Explanation

Correct Answer

C:

Mission Control gives a visual overview of open windows and spaces. It organizes workspace navigation rather than terminating unresponsive programs.

Incorrect Answers

A:

Finder provides file and folder navigation, copy, and organization in macOS; these are separate tasks: navigating the macOS filesystem graphically is not the same as navigating multiple Mac windows and desktops.

B:

Keychain stores passwords, certificates, and credentials for supported macOS applications; that could address inspecting stored Mac authentication credentials, but it would leave the need to navigate multiple Mac windows and desktops unresolved.

D:

FileVault provides full-volume encryption for supported macOS startup storage; that could address encrypting data at rest on a Mac laptop, but it would leave the need to navigate multiple Mac windows and desktops unresolved.

Question 111

An application stops responding on a Mac and refuses to close normally. Which user-facing command can terminate it?

  1. .app application bundle
  2. .dmg disk image
  3. Force Quit
  4. Spotlight search

Explanation

Correct Answer

C:

Force Quit ends a hung application without needing a normal close response. Unsaved work in that app may be lost.

Incorrect Answers

A:

The APP bundle encapsulates a macOS application's executable and resources; the requirement is to terminate a nonresponsive Mac application; this alternative is primarily used to launch a standalone Mac application bundle.

B:

A DMG contains a mountable disk image often used to distribute Mac applications; for terminating a nonresponsive Mac application, Force Quit addresses the stated need; .dmg disk image instead targets mounting a downloaded Mac application image.

D:

Spotlight indexes searchable content and launches matching apps or files; to terminate a nonresponsive Mac application, the relevant control is Force Quit; this option addresses finding files and applications through macOS search.

Question 112

A technician needs to browse the Mac's /Users directory and move files between folders with a graphical interface. Which application should be used?

  1. Finder
  2. Mission Control
  3. .dmg disk image
  4. FileVault

Explanation

Correct Answer

A:

Finder provides file and folder navigation, copy, and organization in macOS. It is not the disk-encryption control.

Incorrect Answers

B:

Mission Control gives a visual overview of open windows and spaces; to navigate the macOS filesystem graphically, the relevant control is Finder; this option addresses navigating multiple Mac windows and desktops.

C:

A DMG contains a mountable disk image often used to distribute Mac applications; the case demands navigating the macOS filesystem graphically, not mounting a downloaded Mac application image.

D:

FileVault provides full-volume encryption for supported macOS startup storage; to navigate the macOS filesystem graphically, the relevant control is Finder; this option addresses encrypting data at rest on a Mac laptop.

Question 113

A technician wants the names of files in the current Linux directory. Which shell command should they enter?

  1. find
  2. ls
  3. pwd
  4. sudo

Explanation

Correct Answer

B:

The ls command lists directory entries and supports flags for details and hidden files. It does not itself change the current directory.

Incorrect Answers

A:

Find traverses directory trees and selects entries by names, types, or other attributes; ls fulfills the requirement to display Linux directory entries; this selection pertains to locating filenames recursively in Linux.

C:

Pwd prints the present working directory's path; the requirement is to display Linux directory entries; this alternative is primarily used to show the current Linux working directory.

D:

Sudo runs authorized commands with elevated privileges based on policy; that could address elevating one authorized Linux command, but it would leave the need to display Linux directory entries unresolved.

Question 114

A shell script must report the absolute path of its current working folder. Which Linux command supplies it?

  1. pwd
  2. ls
  3. du -sh
  4. df -h

Explanation

Correct Answer

A:

Pwd prints the present working directory's path. It does not inspect filesystem free space or display process status.

Incorrect Answers

B:

The ls command lists directory entries and supports flags for details and hidden files; pwd fulfills the requirement to show the current Linux working directory; this selection pertains to displaying Linux directory entries.

C:

Du estimates the size of files or a directory tree; to show the current Linux working directory, the relevant control is pwd; this option addresses estimating storage used by a Linux folder tree.

D:

Df shows available and used space for mounted filesystems, with human-readable units using -h; this technique can help to check free space for mounted Linux filesystems, but it does not directly show the current Linux working directory.

Question 115

A log file is large and support must locate lines containing a particular error string. Which utility is suitable?

  1. find
  2. grep
  3. du -sh
  4. apt

Explanation

Correct Answer

B:

Grep searches text for matching patterns and can filter log lines. Its search scope differs from locating files by filename.

Incorrect Answers

A:

Find traverses directory trees and selects entries by names, types, or other attributes; although suited to locating filenames recursively in Linux, it is not sufficient for filtering log text by a matching pattern.

C:

Du estimates the size of files or a directory tree; du -sh is used to estimate storage used by a Linux folder tree, whereas the case calls for filtering log text by a matching pattern.

D:

Apt manages packages and dependencies on Debian-family systems; although suited to installing a repository package on Debian-based Linux, it is not sufficient for filtering log text by a matching pattern.

Question 116

An administrator wants to locate all files named config.yaml under a project tree. Which command fits?

  1. grep
  2. ls
  3. find
  4. chown

Explanation

Correct Answer

C:

Find traverses directory trees and selects entries by names, types, or other attributes. Unlike grep, it searches filesystem objects rather than matching text lines.

Incorrect Answers

A:

Grep searches text for matching patterns and can filter log lines; the requirement is to locate filenames recursively in Linux; this alternative is primarily used to filter log text by a matching pattern.

B:

The ls command lists directory entries and supports flags for details and hidden files; although suited to displaying Linux directory entries, it is not sufficient for locating filenames recursively in Linux.

D:

Chown changes ownership of supported filesystem objects; that is useful for reassigning Linux file ownership; the reported task instead calls for locating filenames recursively in Linux.

Question 117

A Linux web script needs the owner to execute it without giving everyone write access. Which command changes mode bits?

  1. chown
  2. sudo
  3. chmod
  4. ps aux

Explanation

Correct Answer

C:

Chmod changes file permission bits such as owner execute and group write. Ownership changes require a different utility.

Incorrect Answers

A:

Chown changes ownership of supported filesystem objects; these are separate tasks: reassigning Linux file ownership is not the same as adjusting file execute and write permissions.

B:

Sudo runs authorized commands with elevated privileges based on policy; that is useful for elevating one authorized Linux command; the reported task instead calls for adjusting file execute and write permissions.

D:

Ps can list processes in a static snapshot and include users, PIDs, and resource details; to adjust file execute and write permissions, the relevant control is chmod; this option addresses capturing a Linux process listing.

Question 118

A migrated file is owned by root but should belong to the deployment service account. Which command changes the owner?

  1. chmod
  2. find
  3. chown
  4. df -h

Explanation

Correct Answer

C:

Chown changes ownership of supported filesystem objects. It does not merely toggle read or execute permission bits.

Incorrect Answers

A:

Chmod changes file permission bits such as owner execute and group write; this option serves adjusting file execute and write permissions rather than reassigning Linux file ownership.

B:

Find traverses directory trees and selects entries by names, types, or other attributes; although suited to locating filenames recursively in Linux, it is not sufficient for reassigning Linux file ownership.

D:

Df shows available and used space for mounted filesystems, with human-readable units using -h; the requirement is to reassign Linux file ownership; this alternative is primarily used to check free space for mounted Linux filesystems.

Question 119

A Debian-based desktop must install an application from configured distribution repositories. Which package tool applies?

  1. dnf
  2. apt
  3. top
  4. sudo

Explanation

Correct Answer

B:

Apt manages packages and dependencies on Debian-family systems. It uses configured repositories and should be run with authorized privileges.

Incorrect Answers

A:

Dnf handles package transactions on Fedora and related distributions; this technique can help to update packages on Fedora Linux, but it does not directly install a repository package on Debian-based Linux.

C:

Top continually displays processes and system resource use; to install a repository package on Debian-based Linux, the relevant control is apt; this option addresses observing changing Linux process resource usage.

D:

Sudo runs authorized commands with elevated privileges based on policy; the evidence favors apt for installing a repository package on Debian-based Linux, rather than applying sudo to elevate one authorized Linux command.

Question 120

A Fedora workstation needs a managed package update from its repositories. Which package manager is expected?

  1. dnf
  2. apt
  3. pwd
  4. df -h

Explanation

Correct Answer

A:

Dnf handles package transactions on Fedora and related distributions. It is distinct from Debian's apt command family.

Incorrect Answers

B:

Apt manages packages and dependencies on Debian-family systems; the evidence favors dnf for updating packages on Fedora Linux, rather than applying apt to install a repository package on Debian-based Linux.

C:

Pwd prints the present working directory's path; pwd is used to show the current Linux working directory, whereas the case calls for updating packages on Fedora Linux.

D:

Df shows available and used space for mounted filesystems, with human-readable units using -h; the reported need is to update packages on Fedora Linux; df -h is oriented toward checking free space for mounted Linux filesystems.

CompTIA A+ Certification Exam: Core 2 (220-1202) Practice Tests