
PYTHON-02
Quiz
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
Medium
Riya Shakya
Used 18+ times
FREE Resource
Enhance your content in a minute
11 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
What is the correct way to declare a variable in Python?
var x = 5
x = 5
int x = 5
variable x = 5
2.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Which of the following is not a valid Python datatype?
str
list
array
tuple
3.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Which operator is used for exponentiation in Python?
^
*
**
//
4.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
What is the datatype of the result of the expression 5 + 2.5?
int
float
str
bool
5.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Which of the following statements is true about Python variables?
Variables must be declared before use.
Variables cannot be reassigned once a value is assigned.
Variable names are case-insensitive
Variables can hold values of different datatypes
6.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Which of the following is an example of a local variable?
A variable declared inside a function
A variable declared outside any function or block
A variable declared inside a class
A variable declared inside a loop
7.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
What is the output of the following code snippet?
x = 5
y = 2
result = x // y
print(result)
2.5
2
2.0
2.2
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
13 questions
LENGUAJE C
Quiz
•
11th Grade
12 questions
Clase de Computación: Excel
Quiz
•
11th Grade
13 questions
Pengenalan Aplikasi Blender
Quiz
•
11th Grade
10 questions
Visual Basic 2010
Quiz
•
8th Grade - University
12 questions
1.2.4. Types of Programming Language
Quiz
•
12th Grade
10 questions
Trắc nghiệm bài 12 tin học 11
Quiz
•
11th Grade
10 questions
UH Bab 3 XII 3
Quiz
•
12th Grade
15 questions
Introducción Redes Tele1 IB
Quiz
•
10th Grade - University
Popular Resources on Wayground
10 questions
Forest Self-Management
Lesson
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
30 questions
Thanksgiving Trivia
Quiz
•
9th - 12th Grade
30 questions
Thanksgiving Trivia
Quiz
•
6th Grade
11 questions
Would You Rather - Thanksgiving
Lesson
•
KG - 12th Grade
48 questions
The Eagle Way
Quiz
•
6th Grade
10 questions
Identifying equations
Quiz
•
KG - University
10 questions
Thanksgiving
Lesson
•
5th - 7th Grade
Discover more resources for Computers
30 questions
Thanksgiving Trivia
Quiz
•
9th - 12th Grade
11 questions
Would You Rather - Thanksgiving
Lesson
•
KG - 12th Grade
10 questions
Identifying equations
Quiz
•
KG - University
18 questions
Thanksgiving Trivia
Quiz
•
4th - 12th Grade
20 questions
Thanksgiving
Quiz
•
KG - 12th Grade
20 questions
Pythagorean Theorem and Their Converse
Quiz
•
8th - 9th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
10 questions
Thanksgiving Trivia Challenge: Test Your Knowledge!
Interactive video
•
6th - 10th Grade
