CSci 150: Foundations of computer science
Home Syllabus Readings Projects Tests

printable version

Test 1

[1] [2] [3] [4] [5] [6] [7] [8] [9] [10]

Problem X1.1.

[6 pts] If x is the integer 50, what is the value of each of the following Python expressions?

a. x % 8

b. (x // 15) * 15

c. x + x ** 2