
Coding 5th Grade #1
Flashcard
•
Mathematics
•
5th Grade
•
Practice Problem
•
Hard
Kimberly Gowan
FREE Resource
Student preview

10 questions
Show all answers
1.
FLASHCARD QUESTION
Front
What will be the output of the following code?
number1 = 5
number2 = 10
sum = number1 + number2
print(sum)
Back
15
Answer explanation
The code adds number1 (5) and number2 (10) together. The sum is calculated as 5 + 10, which equals 15. Therefore, the output of the code will be 15.
2.
FLASHCARD QUESTION
Front
What will be printed when the following code is executed?
```
temperature = 25
if temperature > 20:
print("It's warm")
else:
print("It's cold")
```
Back
It's warm
Answer explanation
The code checks if the temperature (25) is greater than 20. Since this condition is true, it executes the first print statement, which outputs "It's warm". Therefore, the correct answer is "It's warm".
3.
FLASHCARD QUESTION
Front
What will be the output of the modified code?
number = 8
if number > 10:
print("Small number")
else:
print("Large number")
Back
Large number
Answer explanation
In the modified code, the condition checks if number (8) is greater than 10, which is false. Therefore, the else block executes, resulting in the output 'Large number'.
4.
FLASHCARD QUESTION
Front
What is the purpose of a conditional statement in a code?
Back
To make decisions based on certain conditions
Answer explanation
A conditional statement allows the code to execute different actions based on whether a specified condition is true or false. This is essential for decision-making in programming, making 'To make decisions based on certain conditions' the correct choice.
5.
FLASHCARD QUESTION
Front
What will be the new output if the condition is changed to `age > 10` and age is 12?
Back
Teenager
Answer explanation
With the condition changed to 'age > 10', and age being 12, the condition evaluates to true. Therefore, the output will be 'Teenager'.
6.
FLASHCARD QUESTION
Front
Which of the following is a control structure in programming? Variable, Loop, Function, String
Back
Loop
Answer explanation
A loop is a control structure that allows repeated execution of a block of code based on a condition. Variables, functions, and strings are fundamental programming concepts but do not control the flow of execution like loops do.
7.
FLASHCARD QUESTION
Front
What will be printed when the following code is executed?
```
score = 85
if score >= 90:
print("Excellent")
elif score >= 75:
print("Good")
else:
print("Needs Improvement")
```
Back
Good
Answer explanation
The score is 85, which is not >= 90, so the first condition fails. The second condition, score >= 75, is true, so 'Good' is printed. Thus, the output is 'Good'.
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Types of Triangles
Flashcard
•
5th Grade
9 questions
Number Flashcards
Flashcard
•
6th Grade
6 questions
Fun Facts About Ireland
Flashcard
•
5th Grade
6 questions
Vocabulary Flashcard
Flashcard
•
4th Grade
10 questions
Family and Living Conditions
Flashcard
•
4th - 5th Grade
8 questions
Untitled FlashcardsSchool flashcards
Flashcard
•
4th Grade
11 questions
H Chem: Chemical Analysis
Flashcard
•
KG
10 questions
6th Unit 4 Lessons 1-2
Flashcard
•
6th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Mathematics
25 questions
Multiplication Facts
Quiz
•
5th Grade
11 questions
Single Digit Divisor Long Division
Quiz
•
5th Grade
22 questions
Christmas Math Fun--5th grade
Quiz
•
4th - 6th Grade
12 questions
Adding and subtracting Fractions with Unlike Denominators
Quiz
•
5th Grade
10 questions
Adding & Subtracting Fractions with Unlike Denominators
Quiz
•
5th Grade
10 questions
Exploring Christmas Math Word Problems
Interactive video
•
1st - 5th Grade
15 questions
Add and subtract fractions unlike denominators
Quiz
•
5th Grade
10 questions
Adding and Subtracting Decimals
Quiz
•
5th Grade