Lego Spike & Python - Challenge 3 Quiz
Quiz
•
Information Technology (IT)
•
6th - 8th Grade
•
Practice Problem
•
Hard
JML- TARQUINO
Used 11+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
What is the output of the code shown?
"5.0"
7.0
7
TypeError
Answer explanation
In Python, when an arithmetic operator has operands of different numeric types, such as int and float, the integer operand is widened to a floating point type to perform the operation.
Therefore, the result of an operation between int and float is always float.
2.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
In the code shown, what type of data is the result?
int
str
float
bool
Answer explanation
In Python, when an arithmetic operator has operands of different numeric types, such as int and float, the integer operand is widened to a floating point type to perform the operation.
Therefore, the result of an operation between int and float is always float.
3.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
Which of the following statements correctly declares or initializes a variable in Python?
int a = 10
a: int = 10
var a = 10
a = 10
4.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
What will be the output of the code shown?
3.33
3
4.5
10.3
Answer explanation
In Python, the integer division (also referred as floor division), consists in discarding the fractional part (or decimals) of the quotient.
So the result, is rounded to the nearest whole number. In this case, 10 // 3 = 3.
5.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
In Python, Which is the basic data type for numbers with decimals or fractional parts?
float
bool
str
int
6.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
In Python, Which is the basic data type for numbers without decimals or fractional parts?
float
bool
str
int
7.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
In Python, Which is the basic data type for letters, words, sentences or paragraphs?
float
bool
str
int
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
11 questions
ESTRUTURAS DE REPETIÇÃO
Quiz
•
6th - 8th Grade
10 questions
ict quiz
Quiz
•
7th Grade
15 questions
Quiz sobre el ornitorrinco y la programación
Quiz
•
8th Grade - University
9 questions
Увлекательный мир Python
Quiz
•
6th Grade - University
15 questions
Lesson 3.2: Race to the Finish, Part 1
Quiz
•
8th Grade
11 questions
C++ sveikųjų skaičių dalyba
Quiz
•
8th Grade
15 questions
SNLT-HP1-B5
Quiz
•
6th - 8th Grade
10 questions
Q1_Quiz1_CS2
Quiz
•
8th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd 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
Discover more resources for Information Technology (IT)
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
15 questions
Solving Equations with Variables on Both Sides Review
Quiz
•
8th Grade
15 questions
scatter plots and trend lines
Quiz
•
8th Grade
23 questions
Academic Vocabulary Pre-assessmsent
Quiz
•
6th Grade
21 questions
Convert Fractions, Decimals, and Percents
Quiz
•
6th Grade
20 questions
Solving Systems of Equations by Graphing
Quiz
•
8th Grade
20 questions
Exponents
Quiz
•
6th Grade
