1
AssignmentMultiple Choice

Course Review: Introduction to Computer Science

Question 1 • 110 CCHS Introduction to Computer Science (Virtual)

What is the value of the variable named result after this code is executed? numA = 3 numB = 2 result = numA ** numB

Answer
A
5
B
6
C
9
D
An error occurred.

Explanation

The ** operator raises the first number to the power of the second. So numA ** numB is 3 ** 2, which means 3 × 3 = 9. The value of result is 9, choice C.

AI-written and checked against the verified answer.