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

Programming Basics: Concepts and Exercises

The document consists of a series of programming-related exercises including sentence completion, algorithm sequencing, true/false statements, code functionality identification, and punctuation correction. It covers fundamental programming concepts such as debugging, variables, loops, and comments. The exercises aim to reinforce understanding of basic programming principles and syntax.

Uploaded by

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

Programming Basics: Concepts and Exercises

The document consists of a series of programming-related exercises including sentence completion, algorithm sequencing, true/false statements, code functionality identification, and punctuation correction. It covers fundamental programming concepts such as debugging, variables, loops, and comments. The exercises aim to reinforce understanding of basic programming principles and syntax.

Uploaded by

omarmoataz2500
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

1–5 Complete each sentence

1. A person that writes programs is called a programmer.

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

3. A number is also called an integer.

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

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

/5

6 — Algorithm (fill the missing steps)

Complete sequence to get a drink of milk:

1. get cup

2. C — get milk jug from fridge

3. move the milk jug over cup

4. A — tilt the milk jug

5. stop pouring when the cup is full

6. B — put milk jug back in fridge

(So: 2 = C, 4 = A, 6 = B)
/3

7–9 True / False

7. A comment is a note for the programmer. — True

8. You can run a program without saving the changes. — False

9. Instructions that are part of a loop should be indented. — True

/3

10–12 What does the code do?


10. print('I like to code.') — a. Show the text on the screen, I like
to code.

11. #keep score — b. Tell the programmer about the code in


the program. (a comment)

12. while True: — c. Loop a set of instructions.

/3

13 Correct punctuation

13. print(You are super!) — correct form is a. quotes →


print('You are super!')

/1

You might also like