Grade 9 Coding Worksheet: Plants (Fill in the Blank)
Plants Fill in the Blank
Grade 9CodingPlantsFill in the BlankAdvanced5 Questions7 Views
Worksheet Ready
Click Print / Save as PDF. In print settings, turn off Headers and footers.
Grade 9 Coding Worksheet: Plants (Fill in the Blank)
Classroom Worksheet
Grade 9 Coding Worksheet: Plants (Fill in the Blank)
Plants Fill in the Blank
Name____________________________
Date________________
Score______ / 5
Grade: Grade 9
Subject: Coding
Topic: Plants
Time: 20 Minutes
Difficulty: Advanced
Questions: 5
Instructions: Instructions: Complete each coding statement by filling in the blank with the correct term, symbol, or code. The questions get harder as you go. Read each item carefully and use your knowledge of coding and plant-related examples.
Skills Practiced:
Plants
Coding
Critical Thinking
Problem Solving
1Question
In a Python program, a plant name should be stored in a ______ variable if it may change later.
2Question
A loop that checks a plant's height and repeats until it reaches 50 cm is called a ______ loop.
3Question
To keep code organized, a function that returns the number of petals on a flower should use a ______ statement.
4Question
In object-oriented programming, a class named Plant can use a method called grow() to change the plant's height. The code that creates this change is inside the method's ______.
5Question
A programmer wants to store each plant in a garden with its name, species, and water needs. The best data structure for keeping these key-value pairs together is a ______.