4.8 Explain 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?
The concept
Windows provides two built-in command-line shells, and only one of them can run both native commands and cmdlets.
Why this answer
PowerShell was built to extend the Command shell's capabilities, so it can run both traditional Windows Commands and its own more extensible cmdlets in the same session.
- AWindows Script Host runs VBScript or JScript through cscript.exe or wscript.exe, not PowerShell cmdlets.
- Correct: PowerShell can run both Windows Commands and cmdlets, unlike the Command shell.
- CThe Command shell can only run Windows Commands; it cannot interpret PowerShell cmdlets at all.
- DThere is no such dual-mode shell in Windows Recovery Environment for running cmdlets.
Now you: objective 4.8 questions
No account needed. The explanation opens when you answer.
Sample question 1 of 2
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 2
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?
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 4.1 Given a scenario, implement best practices associated with documentation and support systems information management.
- 4.3 4.3 Given a scenario, implement workstation backup and recovery methods.
- 4.6 4.6 Explain the importance of prohibited content/activity and privacy, licensing, and policy concepts.
- 4.10 4.10 Explain basic concepts related to artificial intelligence (AI).