Quiz#2

Quiz
•
Computers
•
6th - 8th Grade
•
Easy
Eman Shatnawe
Used 1+ times
FREE Resource
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
Similar Resources on Wayground
10 questions
Python Basics

Quiz
•
8th - 10th Grade
14 questions
Python Syntax

Quiz
•
6th - 12th Grade
16 questions
Python Basics

Quiz
•
KG - University
13 questions
Python

Quiz
•
7th - 8th Grade
10 questions
Python Variables

Quiz
•
6th Grade
10 questions
Basic Python Programming_Class VIII

Quiz
•
8th Grade
10 questions
Class VIII_Basic Python Programming Quiz

Quiz
•
8th Grade
14 questions
year 8 lesson 2 quiz - python

Quiz
•
8th - 10th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade
Discover more resources for Computers
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
13 questions
Primary and Secondary Sources

Quiz
•
6th Grade
15 questions
Decimal Operations

Quiz
•
6th Grade
10 questions
Plotting Points on the Coordinate Plane

Quiz
•
7th - 8th Grade