Quiz#2
Quiz
•
Computers
•
6th - 8th Grade
•
Easy
Eman Shatnawe
Used 1+ times
FREE Resource
Enhance your content in a minute
11 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does Python use to define blocks of code (e.g., in loops, functions, etc.)?
Semicolons ;
Curly braces {}
Indentation
D) Parentheses ()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid comment in Python?
// This is a comment
/* This is a comment */
# This is a comment
<!-- This is a comment -->
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a variable in Python used for?
To create functions
To store data
To print messages on the screen
To create loops
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid variable name in Python?
1stVariable
my-variable
my_variable
my variable
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data type would you use to store the value 3.14?
int
str
bool
float
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a Boolean value in Python?
Yes
1
True
"True"
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following code output?
10
"55"
5
Error
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
12 questions
prep1-revision
Quiz
•
7th Grade
13 questions
Algorytmy
Quiz
•
8th Grade
12 questions
Wee Word Intro
Quiz
•
7th - 12th Grade
12 questions
Creating Webpages
Quiz
•
6th - 8th Grade
10 questions
Check-up Exercise: Buttons
Quiz
•
7th Grade
7 questions
An Introduction to Computers 1
Quiz
•
7th Grade
8 questions
Overview of IT
Quiz
•
6th Grade - University
10 questions
For loop
Quiz
•
8th Grade
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
