Page 293 - Data Science class 11
P. 293
b. Explain what happens when you attempt to divide by zero in R.
Ans. It shows the following output (Zero division error)
[1] Inf
20. Relational Operators and Logical Operators
a. 10 > 3 and 20 < 40
Ans. interpret this as 10>3 & 20 < 40
Output
[1] TRUE
b. ! TRUE
Ans. [1] FALSE
c. 25 >=5 or 98 <=45
Ans. Interpret this as 25>=5 | 98<=45
Output
[1] TRUE
d. 25 == 25
Ans. Output
[1] TRUE
Practical Questions 291

