0
0
R Programmingprogramming~5 mins

Arithmetic operators in R Programming - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What does the '+' operator do in R?
The '+' operator adds two numbers together. For example, 3 + 2 equals 5.
Click to reveal answer
beginner
How do you subtract numbers in R?
Use the '-' operator to subtract one number from another. For example, 5 - 2 equals 3.
Click to reveal answer
beginner
What is the symbol for multiplication in R?
The '*' symbol is used for multiplication. For example, 4 * 3 equals 12.
Click to reveal answer
beginner
How do you divide numbers in R?
Use the '/' operator to divide one number by another. For example, 10 / 2 equals 5.
Click to reveal answer
beginner
What does the '^' operator do in R?
The '^' operator raises a number to the power of another. For example, 2 ^ 3 equals 8 (2 multiplied by itself 3 times).
Click to reveal answer
What is the result of 7 + 3 in R?
A73
B10
C4
D1
Which operator is used for multiplication in R?
A*
B-
C/
D+
What does 9 / 3 equal in R?
A3
B6
C27
D0
How do you write '2 to the power of 4' in R?
A2 ^^ 4
B2 ** 4
C4 ^^ 2
D2 ^ 4
What is the result of 5 - 8 in R?
A13
B3
C-3
D0
Explain how to perform basic arithmetic operations in R using operators.
Think about how you add, subtract, multiply, divide, and raise numbers to powers.
You got /5 concepts.
    What operator would you use to multiply two numbers in R? Give an example.
    Multiplication uses a symbol that looks like a star.
    You got /3 concepts.