-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWeek 4 Chapter 2- quiz answers
50 lines (27 loc) · 1.21 KB
/
Week 4 Chapter 2- quiz answers
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
Week 4
Chapter 2
Quiz answers:-
1.) In the following code, print 98.6. What is “98.6”?
answer- A constant
In the following code, x = 42. What is “x”?
A variable
Which of the following variables is the “most mnemonic”?
hours
Which of the following is not a Python reserved word?
speed
Assume the variable x has been initialized to an integer value (e.g., x = 3). What does the following statement do? x = x + 2
Retrieve the current value for x, add two to it and put the sum back into x
Which of the following elements of a mathematical expression in Python is evaluated first?
–Parenthesis()
What is the value of the following expression
2
What will be the value of x after the following statement executes: x = 1 + 2 * 3 – 8 / 4
5
What will be the value of x when the following statement is executed: x = int(98.6)
98
What does the Python raw_input() function do?
Pause the program and read data from the user
// if you score 100% ..please rate this repository file
Studying can feel like an enormous challenge, especially when tests and exams are looming. I will help you to find studying easier than perhaps it has been to this point.
for any other query/help:-
contact- [email protected]