Week 3 Unit 1: Self-test

05. December 2024

Question 1

Which of the following statements about tuples are correct?

Note: There are 2 correct answers to this question.


All elements of a tuple must have the same data type.
Tuples can be changed, for example, a new element can be added to a tuple.
The elements of a tuple are separated by semicolons.
Tuples are immutable, in other words, they are not changeable.
Tuples can contain several elements.

Question 2

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


Error
101
(101)
Oxford Street

< Previous unit | Next unit > | Course Overview