Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions quizzes/04-quiz-powershell-rubric.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
## PowerShell Commands Quiz

**Question 1:** Which PowerShell command displays the list of files and folders in the current directory?
[X] `Show-Files`
[ ] `Get-Item`
[ ] `List-Contents`
[X] `Get-ChildItem`

**Question 2:** How can you create a new empty file using PowerShell?
[ ] `New-EmptyFile`
[ ] `Create-File -Empty`
[X] `New-Item -ItemType File`
[ ] `Make-File -Type Empty`

**Question 3:** Which PowerShell command is used to start a service?
[X] `Start-Service`
[ ] `Run-Service`
[ ] `Begin-Service`
[ ] `Launch-Service`

**Question 4:** How do you delete a folder and its contents using PowerShell?
[ ] `Delete-Folder`
[ ] `Remove-Directory`
[ ] `Erase-Item`
[X] `Remove-Item -Recurse`

**Question 5:** Which PowerShell command displays detailed information about a specific process?
[ ] `Show-ProcessInfo`
[ ] `Get-TaskInfo`
[ ] `Get-ProcessDetails`
[X] `Get-Process -Name`

**Question 6:** How can you rename a file using PowerShell?
[ ] `Set-FileName`
[ ] `Change-ItemName`
[X] `Rename-File`
[ ] `Modify-Item -Name`

**Question 7:** Which PowerShell command displays the size of folders and files in a directory?
[ ] `Get-Size`
[ ] `Measure-Item`
[ ] `Calculate-Size`
[X] `Get-ChildItem | Measure-Object -Property Length -Sum`

**Question 8:** How do you display detailed help for a PowerShell command?
[ ] `Help-Command`
[X] `Get-Help`
[ ] `Show-CommandInfo`
[ ] `Info-Command`
49 changes: 49 additions & 0 deletions quizzes/04-quiz-powershell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
## PowerShell Commands Quiz

**Question 1:** Which PowerShell command displays the list of files and folders in the current directory?
[ ] `Show-Files`
[ ] `Get-Item`
[ ] `List-Contents`
[ ] `Get-ChildItem`

**Question 2:** How can you create a new empty file using PowerShell?
[ ] `New-EmptyFile`
[ ] `Create-File -Empty`
[ ] `New-Item -ItemType File`
[ ] `Make-File -Type Empty`

**Question 3:** Which PowerShell command is used to start a service?
[ ] `Start-Service`
[ ] `Run-Service`
[ ] `Begin-Service`
[ ] `Launch-Service`

**Question 4:** How do you delete a folder and its contents using PowerShell?
[ ] `Delete-Folder`
[ ] `Remove-Directory`
[ ] `Erase-Item`
[ ] `Remove-Item -Recurse`

**Question 5:** Which PowerShell command displays detailed information about a specific process?
[ ] `Show-ProcessInfo`
[ ] `Get-TaskInfo`
[ ] `Get-ProcessDetails`
[ ] `Get-Process -Name`

**Question 6:** How can you rename a file using PowerShell?
[ ] `Set-FileName`
[ ] `Change-ItemName`
[ ] `Rename-File`
[ ] `Modify-Item -Name`

**Question 7:** Which PowerShell command displays the size of folders and files in a directory?
[ ] `Get-Size`
[ ] `Measure-Item`
[ ] `Calculate-Size`
[ ] `Get-ChildItem | Measure-Object -Property Length -Sum`

**Question 8:** How do you display detailed help for a PowerShell command?
[ ] `Help-Command`
[ ] `Get-Help`
[ ] `Show-CommandInfo`
[ ] `Info-Command`