Instructor solution
You may exit out of this review and return later without penalty.
Programming Using Python Day 1 Review
1.What is coding?
2.How would you characterize the popularity of Python?
3.What can you make with Python?
4.What's a variable?
5.What's a function?
6.What are some advantages of Python?
7.What are functions for? When would you want to use a function?
8.What is a growth mindset?
9.Complete the following Mad Lib: The {adjective}, {adjective} dog slept under a {noun}.
10.How can you accept input in Python?
11.If you are playing a computer game, what are some example inputs?
12.What does unplugged mean in the context of computer science education?
13.What is code tracing?
14.What is the output of the following code with the input hairy then chair:
python<br>adj = input()<br>noun = input()<br>print("The " + adj + " dog likes the " + noun)<br>
15.Comment out one line from the following code so that print(c) prints 5.
16.Describe line-by-line what the following code does:
python<br>a = 1<br>b = 2<br>c = a+b<br># d = c*2<br>e = c*b<br>e -= a<br>
17.What does the following code print:
python<br>x = 15<br>y = 10<br>z = 33<br>print(x)<br>print(y)<br>print(z)<br>
18.What's the result of the following code:
python<br>a_var = 10<br># a_var = 20<br>a_var += 1<br>print(a_var)<br>
19.What's the difference between Code A and Code B:
Code A:
python<br>a_var = 15 # this sets a_var to 15<br>
Code B:
python<br>a_var = 15 """this sets a_var to 15"""<br>
20.What's the result of the following code:
python<br>a_var = 10<br># a_var = 20<br>a_var += 1<br>print(a_var)<br>
21.Write code to do as described in the comments.
22.Write code to print the sum of two variables, a and b.
23.Describe line-by-line what the following code does:
python<br>a = 1<br>b = 2<br>c = a+b<br># d = c*2<br>e = c*b<br>e -= a<br>
You may exit out of this review and return later without penalty.