0
0
PowerShellscripting~5 mins

Arithmetic operators in PowerShell - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What does the '+' operator do in PowerShell?
The '+' operator adds two numbers together. For example, 3 + 2 equals 5.
Click to reveal answer
beginner
How do you perform multiplication in PowerShell?
Use the '*' operator to multiply numbers. For example, 4 * 5 equals 20.
Click to reveal answer
beginner
What is the result of 10 % 3 in PowerShell?
The '%' operator gives the remainder of division. 10 % 3 equals 1 because 3 goes into 10 three times with 1 left over.
Click to reveal answer
beginner
How do you subtract numbers in PowerShell?
Use the '-' operator to subtract. For example, 7 - 4 equals 3.
Click to reveal answer
beginner
What operator divides numbers in PowerShell?
The '/' operator divides numbers. For example, 20 / 4 equals 5.
Click to reveal answer
Which operator in PowerShell gives the remainder after division?
A%
B/
C*
D-
What is the result of 8 + 5 in PowerShell?
A2
B13
C40
D3
How do you multiply 6 by 7 in PowerShell?
A6 * 7
B6 + 7
C6 / 7
D6 - 7
What does the '/' operator do in PowerShell?
ASubtracts numbers
BAdds numbers
CDivides numbers
DFinds remainder
What is the result of 15 - 9 in PowerShell?
A1
B24
C3
D6
Explain how to use the basic arithmetic operators in PowerShell with examples.
Think about simple math operations you do every day.
You got /5 concepts.
    Describe what the modulus operator (%) does and give a real-life example.
    Imagine sharing candies equally and seeing how many are left.
    You got /3 concepts.