Infosys Certified PowerShell Scripting Associate
Practice with real exam-pattern questions for Infosys Certified PowerShell Scripting Associate. Each question includes a detailed explanation to help you understand the concept, not just memorise the answer. Try 10 questions free — no login required.
Full question bank for this exam + 1,357+ others. Cancel anytime.
Join Premium10 Infosys Certified PowerShell Scripting Associate practice questions with answers
Real Lex exam-pattern multiple-choice questions for the Infosys Certified PowerShell Scripting Associate certification. Each question includes the correct answer. The full question bank is available to Premium members.
- Question 1
Identify the cmdlet that displays only the parent files and folders in your current working directory.
- ✓
get-childitem –recurse path d:\
Correct - B
get-childitem –recurse
- C
get-childitem –path d:\
- D
get-childitem
- ✓
- Question 2
Susan wants to create a PowerShell function named “allprocess” which lists the process present in the current machine. Choose the correct syntax which defines the function.
- ✓
function allprocess { get-process }
Correct - B
def allprocess { get-process }
- C
function get-process { allprocess }
- D
create-function allprocess { allprocess = get-process }
- ✓
- Question 3
Which commands will give the same output?
i. (Get-Process).count
ii. Get-Process | measure | select -ExpandProperty count
iii. Get-Process | measure | select count
iv. Get-Process | measure | select sum
- ✓
ii and iv
Correct - B
i and ii
- C
i, ii and iii
- D
i, ii and iv
- ✓
- Question 4
What is the output after executing the following PowerShell script?
for ($i=1; $i -lt 5; $i++)
{
if ($i % 2 -eq 0)
{
continue
}
write-host $i
}- ✓
1,2,3,4,5
Correct - B
1,3
- C
2,4
- D
1,3,5
- ✓
- Question 5
Identify the cmdlet used to retrieve the result of the background jobs.
- ✓
Get-job
Correct - B
Receive-job
- C
Show-job
- D
Retrieve-job
- ✓
- Question 6
Which PowerShell cmdlet is used to change the execution policy for scripts on your system?
- ✓
Set-ExecutionPolicy
Correct - B
Change-ExecutionPolicy
- C
Update-ExecutionPolicy
- D
Modify-ExecutionPolicy
- ✓
- Question 7
What is the file extension typically used for PowerShell scripts?
- ✓
.ps
Correct - B
.ps1
- C
.pss
- D
.psm1
- ✓
- Question 8
Identify the wrong statement/s:
i. The Get-Command cmdlet gets all commands that are installed on the computer, including cmdlets, aliases, functions, filters, scripts, and applications.
ii. The get-command output varies from one system to other.
iii. The get-command output is standard and will display the same output on all systems provided same PowerShell version is running on all systems.- ✓
i only
Correct - B
iii only
- C
ii only
- D
i and ii only
- ✓
- Question 9
Which character specifies a variable?
- ✓
&
Correct - B
$
- C
>
- D
%
- ✓
- Question 10
What will be the output?
$ErrorActionPreference = "stop"
try
{
Get-command -Name start-job,stop-jib
}
catch
{
write-host "Error captured"
}
- ✓
Error captured
Correct - B
Error "Finally block missing!!"
- C
"Get-command: The term 'stop-jib' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:4 char:1
- D
CommandType Name
----------- ----
Cmdlet Start-Job
- ✓
More in IMS Academy
Infosys Certified WebSphere Application Server 8.5 Administrator
Infosys Certified Windows 11 Administrator - Associate
Infosys Certified Windows Server 2022 Administrator – Associate
Pay once. Clear every cert this year.
One subscription, full Telegram channel access, every PDF posted during your membership.
- Full access to all 1,357+ certifications
- Monthly updated question banks
- Telegram private channel access
- Cancel anytime
- Everything in Monthly
- Save ₹2,100 vs monthly billing
- Priority answer key requests
- Best for increasing DQ score fast
- Everything in Quarterly
- Lifetime channel access — no renewals
- All future certifications included
- Priority response from admin team
Common questions, straight answers.
A monthly-updated Telegram channel where we post real exam-pattern question banks and detailed answer keys for 1,357+ Infosys Lex certifications. You join once, you get every PDF posted during your membership.
Right after payment on our Graphy page, you'll receive a private invite link to the Telegram channel. Access is instant — usually under 30 seconds.
We compile question banks from the actual Lex test pattern, sourced and verified by 180K+ community members who've recently cleared these exams. Match rate is consistently 85–95%.
Every single month. When Infosys rolls out new versions of certifications, we post updated dumps within 7–10 days. You'll see channel activity weekly.
Clearing certifications is one of the highest-weighted DQ factors. Members typically clear 3–5 certifications in their first 3 months, which moves DQ scores up by a full band.