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.Complete the following Mad Lib: The {adjective}, {adjective} dog slept under a {noun}.
5.How can you accept input in Python?
6.If you are playing a computer game, what are some example inputs?
7.What does unplugged mean in the context of computer science education?
8.What is code tracing?
9.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>
10.What's a variable?
11.What's a function?
12.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>
13.Comment out one line from the following code so that print(c) prints 5.
14.Write code to do as described in the comments.
15.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>
16.Write code to print the sum of two variables, a and b.
17.What are some advantages of Python?
18.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>
19.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>
20.What are functions for? When would you want to use a function?
21.What is a growth mindset?
Did you like this question?
Was this helpful?
You may exit out of this review and return later without penalty.