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

printable version

Final

[1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15]

Problem XF.1.

[6 pts] If nums is [112753], what is the value of each of the following expressions?

a. nums[1] + nums[-1]

b. sum(nums[1:4])

c. nums[min(nums)]