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
15 questions
Python Basics Quiz 1

Quiz
•
8th Grade - University
10 questions
Python Basics

Quiz
•
8th - 10th Grade
10 questions
Basic Python Programming_Class VIII

Quiz
•
8th Grade
11 questions
Python Basics Quiz

Quiz
•
8th Grade
10 questions
CLASS 8 CODING

Quiz
•
8th Grade
10 questions
Python - Printing, Variables and Syntax

Quiz
•
8th Grade
10 questions
python grade 7

Quiz
•
7th Grade
13 questions
G6 Final third term

Quiz
•
6th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
8 questions
Time Management

Quiz
•
6th Grade
15 questions
Acceptable Use Policy (Quiz)

Quiz
•
6th - 8th Grade
25 questions
Career Vs. Job

Quiz
•
6th - 8th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
30 questions
Introduction to Computers

Quiz
•
8th - 9th Grade
20 questions
Copyright and Fair Use

Quiz
•
6th - 8th Grade
15 questions
Computer Components Video

Interactive video
•
8th Grade