Week 2 Unit 4: Self-test

18. June 2024

Question 1

What is the value of the variable x after the following statements have been executed?

week2 unit4 f1

0
10
4
1

Question 2

What is the value of variable list1 after the following statements have been executed?

week2 unit4 f2

1, 4, 3, 2
1, 2, 3, 4
[1, 4, 3, 2]
[1, 2, 3, 4]

< Previous unit | Next unit > | Course Overview