← Back to Course

Lesson 6: Overflow Due to Exponentiation

Practice Questions

Question 1: Let z = x ** y and all the variables are of type uint16. x = 40. What is the largest value y can hold?

Question 2: Let z = x ** y and all the variables are of type uint32. x = 10. What is the largest value y can hold?

Question 3: Let z = x ** y and all the variables are of type uint32. x = 2. What is the largest value y can hold?

Question 4: Let z = x ** y and all the variables are of type uint64. x = 2. What is the largest value y can hold?

Question 5: Let z = x ** y and all the variables are of type uint256. x = 2. What is the largest value y can hold?