Programming For Everybody (Getting Started With Python) - Home - Coursera - 2 PDF
Programming For Everybody (Getting Started With Python) - Home - Coursera - 2 PDF
1/1
point
1.
Which of the following is a comment in Python?
1/1
point
2.
In the following code,
1 x = 42
What is "x"?
1/1
point
3.
Which of the following variables is the "most mnemonic"?
1/1
point
4.
Which of the following is not a Python reserved word?
1/1
point
5.
https://www.coursera.org/learn/python/exam/TlsQ7/chapter-2 1/3
03/05/2019 Programming for Everybody (Getting Started with Python) - Home | Coursera
Assume the variable x has been initialized to an integer value (e.g., x = 3). What does the following
Chapter 2 do?
statement
10/10 points (100%)
Quiz, 10 questions
1 x = x + 2
1/1
point
6.
Which of the following elements of a mathematical expression in Python is evaluated rst?
1/1
point
7.
What is the value of the following expression
1 42 % 10
1/1
point
8.
What will be the value of x after the following statement executes:
1 x = 1 + 2 * 3 - 8 / 4
1/1
point
9.
What will be the value of x when the following statement is executed:
1 x = int(98.6)
https://www.coursera.org/learn/python/exam/TlsQ7/chapter-2 2/3
03/05/2019 Programming for Everybody (Getting Started with Python) - Home | Coursera
1/1
Chapter 2
Quiz, 10 questions
point 10/10 points (100%)
10.
What does the Python input() function do?
https://www.coursera.org/learn/python/exam/TlsQ7/chapter-2 3/3