0% found this document useful (0 votes)
6 views2 pages

Python S1R

This document is a review session about Python programming concepts. It includes fill-in-the-blank exercises, true/false statements, and code interpretation questions. The focus is on understanding basic programming terminology and syntax in Python.

Uploaded by

biji
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views2 pages

Python S1R

This document is a review session about Python programming concepts. It includes fill-in-the-blank exercises, true/false statements, and code interpretation questions. The focus is on understanding basic programming terminology and syntax in Python.

Uploaded by

biji
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Session 1

Session 1 Review: About Python

Complete each sentence with the correct word.

variable loop debug integer programmer

1. A person that writes programs is called a .

2. To is to find and fix mistakes in the code.

3. A number is also called an .

4. A is a stored value that can change in a program.

5. A set of instructions that repeat are part of a .

/5

6. Before making a program, a programmer will often write a description that lists each step.
This is called an algorithm.

Think like a programmer!

Complete the steps in the algorithm to get a drink of milk:

1 get cup MISSING STEPS


A – tilt the milk jug
2

B – put milk jug back in fridge


3 move the milk jug over cup

C – get milk jug from fridge


4

5 stop pouring when the cup is full

/3

Copyright © TechnoKids Inc. 16 TechnoPython | Python


Session 1

Check if a statement is true or false.

7. A comment is a note for the programmer.  true  false

8. You can run a program without saving the changes.  true  false

9. Instructions that are part of a loop should be indented.  true  false


/3

Read each line of Python code. What does it do?

10. print('I like to code.')

a. Show on the screen the text, I like to code.

b. Send a document to the printer.

c. Nothing. This is not real code.

11. #keep score

a. Add a point to the player's score.

b. Tell the programmer about the code in the program.

c. Show the text keep score on the screen.

12. while True:

a. Import the True library.

b. Run instructions if a value is less than 10.

c. Loop a set of instructions.


/3

The code has the wrong punctuation. Which is correct?

13. print(You are super!)

a. quotes print('You are super!')

b. double brackets print((You are super!))


/1
TOTAL: /15

Copyright © TechnoKids Inc. 17 TechnoPython | Python

You might also like