Week 4 Unit 5: Self-test

18. June 2024

Question 1

What is the output of the following statements?

week4 unit5 f1

Week 4 Unit 5 Question 1
Week 4, Unit 5, Question 1
Week 4
Unit 5
Question 1
Week 4

Question 2

Which of the following statements about the print() function are correct?

Note: There are 3 correct answers to this question.


The default value for "sep" is the tab "\t".
Expressions within a "print()" are first calculated. The result is then given as output.
"print()" can take several parameters to be output. These parameters can be of different data types.
The two parameters "sep" and "end" have default parameters, so it is not necessary to specify these parameters explicitly.
It is not possible to put the result of two subsequent "print()" statements into one line.


< Previous unit | Next unit > | Course Overview