Objective 4.8
220-1202Explain the basics of scripting.
Objective 4.8 sits in Operational Procedures, which carries 21% of the A+ Core 2 exam. The questions below are original, written from the official objective title above, and each explanation cites the CompTIA page it rests on.
Objective title verbatim from the official objectives. CompTIA exam page ↗
A worked example
Shown solved, with the whole explanation open: this is what every question here carries.
Which command-line shell built into Windows can execute both native Windows Commands and PowerShell cmdlets within the same session?
Correct.
Checked against learn.microsoft.com, July 2026Concept
A newer command-line environment meant to replace an older one has to keep understanding the old vocabulary, or every script already in production breaks the day it ships. That compatibility only points one direction. The newer environment absorbs what came before it and adds its own richer syntax on top; the older one knows nothing about anything invented after it and never will. Asked which of two tools is the superset, the later arrival is the safe bet.
Why A
The two shells are documented as one extending the other, so the newer session still parses the legacy syntax while adding the object-based commands introduced with it. The older one predates that syntax entirely and was never retrofitted to read it, which is why the overlap runs in only one direction.
Source
Microsoft Learn: Windows commands, checked July 2026You can run both Windows Commands and PowerShell cmdlets in PowerShell, but the Command shell can only run Windows Commands and not PowerShell cmdlets.
Now you: objective 4.8 questions
No account needed. The explanation opens when you answer.
Sample question 1 of 3
A technician must write a script that returns structured object data instead of plain text, and the same script must run unmodified on a Linux server and a macOS workstation. Which option meets both requirements?
Sample question 2 of 3
A technician's .bat script runs nightly backups using Windows Commands in the Command shell. They want to add a step that calls a PowerShell cmdlet to check disk health, without leaving the cmdlet unreachable. What is the correct action?
Sample question 3 of 3
A technician writes one script locally on a Windows workstation at its default execution policy and downloads another from a vendor site. Which two rules apply? (Choose two.)
Full A+ Core 2 question bank coming
We’re writing the complete bank from the official objectives right now. Leave your email and we’ll tell you when it ships, nothing else, ever.
Read the sources
These are the official pages the questions above cite. Reading them is studying the objective from the primary source, which is what the explanations point you toward anyway.
More objectives in Operational Procedures
- 4.1 Given a scenario, implement best practices associated with documentation and support systems information management.
- 4.2 Given a scenario, apply change management procedures.
- 4.3 Given a scenario, implement workstation backup and recovery methods.
- 4.4 Given a scenario, use common safety procedures.
- 4.5 Summarize environmental impacts and local environment controls.
- 4.6 Explain the importance of prohibited content/activity and privacy, licensing, and policy concepts.
- 4.7 Given a scenario, use proper communication techniques and professionalism.
- 4.9 Given a scenario, use remote access technologies.
- 4.10 Explain basic concepts related to artificial intelligence (AI).