Practice for the CompTIA A+ Core 2 exam with 17 exam-style practice questions, instant answer reveals, and concise explanations of every correct answer. Topics include: A programmer is writing a script to display all the numbers from 1 to 100 to the screen. Which of the following should t. Follow @CertPunch and visit certpunch.com for more certification practice exams and study content.
Prefer hands-on? Take this round as an interactive practice test — answer every question, get instant feedback, and see your score: Start the CompTIA A+ Core 2 practice test →
What you will practice
- A programmer is writing a script to display all the numbers from 1 to 100 to the screen. Which of the followi…
- You are configuring a SOHO network and only allowing specific IP addresses to access the network while blocki…
- Which of the following wireless technologies allows a wireless device to automatically be configured for a SO…
- Sagar is planning to patch a production system to correct a detected vulnerability during his most recent net…
- During its busiest sales season, a company's management instructs the IT department to temporarily halt all n…
- Which command-line tool is used on a Windows system to display a list of the files and directories within the…
Answers and explanations
Tap a question to expand the answer and the exam reasoning. Try to commit to your own pick first.
Q1. A programmer is writing a script to display all the numbers from 1 to 100 to the screen. Which of the following should they use in their script?
Answer: A. Loop
A loop is correct because it repeats a block of code until a specific condition is met, making it ideal for displaying numbers one through one hundred. A branch only alters flow based on a condition, while a constant stores a fixed value.
Q2. You are configuring a SOHO network and only allowing specific IP addresses to access the network while blocking any IP addresses that are not on the list. Which of the following should be implemented?
Answer: C. Allow list
An allow list explicitly permits only identified items and denies everything else by default. A blocklist takes the opposite approach by explicitly denying specific items, while MAC filtering applies this concept to hardware addresses rather than IP addresses.
Q3. Which of the following wireless technologies allows a wireless device to automatically be configured for a SOHO wireless network with the push of a button?
Answer: C. WPS
Wi-Fi Protected Setup uses a push button or PIN method to automate wireless network configuration. The other options are encryption standards like WEP or WPA2, which secure the data transmission but do not provide an automated setup mechanism.
Q4. Sagar is planning to patch a production system to correct a detected vulnerability during his most recent network vulnerability scan. What process should he follow to minimize the risk of a system failure while patching this vulnerability?
Answer: D. Deploy the patch in a sandbox environment to test it before patching the production system
Testing patches in a sandbox or staging environment isolates potential issues before they impact live operations. Deploying directly to production risks unplanned downtime, and waiting exposes the system to active exploitation.
Q5. During its busiest sales season, a company's management instructs the IT department to temporarily halt all non-essential system changes including updates, patches, and new feature rollouts until the high traffic period is over. Which of t…
Answer: A. Change freeze
A change freeze prevents non-essential updates during critical business periods to maintain system stability. A maintenance window is scheduled downtime for applying changes, whereas an emergency change addresses unforeseen critical issues.
Q6. Which command-line tool is used on a Windows system to display a list of the files and directories within the current directory or path?
Answer: A. dir
The dir command lists files and directories in the Windows Command Prompt. While ls performs the same function, it is primarily a Linux command and only works in PowerShell on Windows.
Q7. Which of the following types of software CANNOT be updated via the Windows Update program?
Answer: D. Firmware updates
Firmware updates cannot be deployed through standard Windows Update because they must be flashed before the operating system loads. Windows Update only handles security patches, critical fixes, and driver updates.
Q8. You are trying to copy a 4.7 GB file from your Windows laptop to an external hard drive using USB 3. The external hard drive is formatted with FAT32. Every time you attempt this copy, you receive an error. What is MOST likely the issue?
Answer: C. Files over 4 GB cannot be stored on a FAT32 formatted drive
The FAT32 file system limits individual file sizes to a maximum of four gigabytes. Since the file is larger, it will fail to copy, regardless of connection speed or free disk space available.
Q9. You are working on a customer's computer when your cellphone begins to ring. What should you do?
Answer: A. Apologize to the customer and send the call to voicemail
Maintaining focus and avoiding personal distractions is a core aspect of professional communication. Sending the call to voicemail and apologizing acknowledges the interruption without neglecting the active customer.
Q10. A user receives an 'Unable to install update' error when attempting a major Android system update. The device has 25 GB free storage and strong Wi-Fi connection. What should the user check FIRST?
Answer: A. Verify the device has sufficient battery charge or is connected to power
Mobile devices require a minimum battery level to install updates, preventing critical failures during the process. The prompt indicates storage and connectivity are already adequate, making power the primary check.
Q11. Which of the following describes the security method used when users enter their username and password only once and can access multiple applications?
Answer: A. SSO
Single sign-on allows a user to authenticate once and access multiple independent applications without re-entering credentials. Multifactor authentication verifies identity but does not inherently prevent repeated logins across applications.
Q12. A laptop lost internet connectivity despite being connected to Wi-Fi. Other devices work fine. The user reports having clicked a link in an email, but it was from their internet provider. After the connection issue began, they noticed an u…
Answer: C. Remove the browser extension and scan the system for malware
Removing the unfamiliar browser extension and scanning for malware directly addresses the suspected browser hijacker. Manually setting a static IP or restarting the router will not resolve malicious traffic redirection.
Q13. A user's personal settings are not showing up on their computer. You suspect that their profile has become corrupted within Windows. You attempt to look at their profile file but cannot find it in their profile directory. Which of the foll…
Answer: C. Folder Options
Folder Options is the correct choice because it lets you show hidden files and protected operating system files like NTUSER.DAT. Internet Options only manages browser settings, while User Accounts manages login credentials and types.
Q14. Which of the following macOS features is used to backup and restore files to an external hard disk?
Answer: C. Time Machine
Time Machine is the built-in macOS backup utility used to automatically back up files, system settings, and apps to an external hard drive. Boot Camp allows dual-booting Windows on Mac hardware, while Snapshot is a virtual machine feature.
Q15. Which of the following tools in Windows 10 allows a technician to add different utilities, such as disk management, computer management, performance monitor, print management, and others to create a modular and customized tool kit for the…
Answer: B. MMC
The Microsoft Management Console (MMC) is correct because it provides a customizable framework where technicians can add various administrative snap-ins like Disk Management into one console. PerfMon strictly monitors performance metrics, and UAC handles permissions.
Q16. Which of the following macOS features allows the user to create a user account that is used to sign in to the App Store, iCloud, and iTunes?
Answer: C. Apple ID
An Apple ID is the single sign-on account used to access Apple services like the App Store and iCloud. Keychain manages saved passwords locally, while Spotlight is the system-wide search utility built into macOS.
Q17. Which of the following commands would a technician use to find the comprehensive documentation for any command from the Linux terminal?
Answer: A. man
The man command is correct because it formats and displays the official manual pages for any terminal command. Apt-get and yum are package managers used for installing software, while grep searches text patterns within files.
More CompTIA A+ Core 2 drills and other practice exams are on @CertPunch. New rounds drop every few days at certpunch.com.