Check yourself

Which of the following are acceptable variables names for Python?
(a) xyzzy
(b) 2ndVar
(c) rich&bill
(d) long_name
(f) good2go
Which of the following statement(s) best describe a Python namespace?
(a) A list of acceptable names to use with Python
(b) A place where objects are stored in Python
(c) A list of Python names and the values with which they are associated
(d) All of the above
(e) None of the above
Give the values printed by the following program for each of the labeled line
 
int_a = 27
int_b = 5
int_a = 6
 
print(int_a)               # Line 1
print(int_b + 5)         # Line 2
print(int_b)               # Line 3
 
(a) What is printed by Line 1?
(b) What is printed by Line 2?
(c) What is printed by Line 3?
{"name":"Check yourself", "url":"https://www.supersurvey.com/QPREVIEW","txt":"Which of the following are acceptable variables names for Python?, Which of the following statement(s) best describe a Python namespace?, Give the values printed by the following program for each of the labeled line   int_a = 27 int_b = 5 int_a = 6   print(int_a)               # Line 1 print(int_b + 5)         # Line 2 print(int_b)               # Line 3   (a) What is printed by Line 1? (b) What is printed by Line 2? (c) What is printed by Line 3?","img":"https://www.supersurvey.com/3012/images/ogquiz.png"}
Make your own Survey
- it's free to start.