diff --git a/quizzes/04-quiz-powershell-rubric.md b/quizzes/04-quiz-powershell-rubric.md new file mode 100644 index 0000000..937264c --- /dev/null +++ b/quizzes/04-quiz-powershell-rubric.md @@ -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` diff --git a/quizzes/04-quiz-powershell.md b/quizzes/04-quiz-powershell.md new file mode 100644 index 0000000..4e5bdb8 --- /dev/null +++ b/quizzes/04-quiz-powershell.md @@ -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`