0% found this document useful (0 votes)
12 views4 pages

Grade12 ICT Revision Worksheet

This document is an ICT worksheet for a Python unit, containing multiple choice questions, fill-in-the-blank exercises, and open-ended questions. It covers fundamental programming concepts such as loops, functions, conditional statements, and the turtle library. The worksheet is designed to assess students' understanding of Python programming basics.

Uploaded by

Abdallah A.5
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)
12 views4 pages

Grade12 ICT Revision Worksheet

This document is an ICT worksheet for a Python unit, containing multiple choice questions, fill-in-the-blank exercises, and open-ended questions. It covers fundamental programming concepts such as loops, functions, conditional statements, and the turtle library. The worksheet is designed to assess students' understanding of Python programming basics.

Uploaded by

Abdallah A.5
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/ 4

Name: ______________ ICT Worksheet Unit 1 Python Day: ____________

Grade: ______________ Date: ___________

Multiple Choice Questions: Choose the correct answer from the choices for each question.

1. What is the purpose of using a loop in programming?


o A) To make the code longer
o B) To repeat a block of code multiple times
o C) To slow down the program
o D) To delete variables
2. Which function would you use to create a sequence from 0 to 4 in
Python?
o A) input()
o B) sequence()
o C) range(5)
o D) repeat(5)
3. What type of loop would you use if you do NOT know how many
times you need to repeat an action?
o A) for loop
o B) while loop 1. total = 0
o C) print loop 2. for i in range(5):
o D) input loop 3. average = (grade1 +
grade2) / 2
4. In the code besides, what is the variable 4. total += average
“total” used for? 5. class_average = total / 5
o A) To count how many students there are
o B) To store the sum of all student averages
o C) To print student names
o D) To generate random numbers
5. Which statement correctly describes a conditional statement in
Python?
o A) It repeats a block of code
o B) It runs code only if a condition is true
o C) It only works with numbers
o D) It adds two numbers together
6. What does the following code print if number = 7?
if number % 2 == 0:
a) EVEN print("EVEN")
b) ODD else:
c) ERROR print("ODD")
d) 7
7. Which Python command will draw a square using the turtle library?

a) for i in range(4): forward(100); right(90)


b) for i in range(3): forward(100); right(120)
c) for i in range(2): forward(100); right(180)
d) for i in range(5): forward(100); right(72)

8. What does a “function” in Python allow you to do?

a) Repeat code a set number of times


b) Store a random number
c) Reuse code by giving it a name
d) Print output to the screen

9. What is the output of print (9 % 2)?

a) 9
b) 4.5
c) 1
d) 0

10.Which of the following is NOT a real-life example of using random


numbers?

a) Lotteries
b) Daily routines
c) Games
d) Cybersecurity

Fill in the Blank: Fill in the blank with the correct words.
Word bank: range(), while, conditional, float(), for, 0, turtle, loop, if/else, modulo

1. The _____________ loop is best used when you know exactly how many times you
want to repeat a task.
2. A _____________ statement lets the program make decisions based on whether a
condition is true or false.
3. The _____________ function generates a sequence of numbers in Python.
4. The _____________ function is used to convert input values into decimals, allowing
grades like 95.5 or 88.75.
5. A _____________ loop continues as long as a condition remains true.
6. In Python, the _____________ statement lets the program choose what to do based on
a condition.
7. A _____________
is used to repeat actions in a program, such as drawing each side of a shape.
8. The _____________ operator (%) gives the remainder after dividing two numbers.
9. The _____________ library in Python is used to draw shapes and graphics.
10. To check if a number is even, you can use the condition: number % 2 ==
_____________.

Open-Ended Questions: Answer the following questions.

1. What is the main difference between a for loop and a while loop?

______________________________________________________________________________________
______________________________________________________________________________________
______________________________________________________________________________________
______________________________________________________________________________________

2. Describe a real-life situation where you could use a conditional


statement in a program.

______________________________________________________________________________________
______________________________________________________________________________________
______________________________________________________________________________________
______________________________________________________________________________________

3. Explain why using the float() function is important when entering


grades in a program.

______________________________________________________________________________________
______________________________________________________________________________________
______________________________________________________________________________________
______________________________________________________________________________________
4. Explain, in your own words, how the modulo operator (%) helps you
check if a number is even or odd.

______________________________________________________________________________________
______________________________________________________________________________________
______________________________________________________________________________________
______________________________________________________________________________________

5. Describe how you would use a loop to draw a rectangle with the turtle
library in Python.

______________________________________________________________________________________
______________________________________________________________________________________
______________________________________________________________________________________
______________________________________________________________________________________

6. Imagine you are designing a number guessing game in Python. What


steps would your program follow from start to finish?

______________________________________________________________________________________
______________________________________________________________________________________
______________________________________________________________________________________
______________________________________________________________________________________

You might also like