
Python Basics Quiz

Quiz
•
Information Technology (IT)
•
1st Grade
•
Hard

Amira Abd El-aziz
Used 2+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to declare a variable in Python?
a) x : int = 5
b) int x = 5
c) x = 5
d) declare x = 5
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a valid variable name?
a) student_name
b) 3score
c) _age
d) price$
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the data type of the following variable? num = 10.5
a) int
b) float
c) str
d) bool
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code? x = "10" y = 5 print(x + y)
a) 15
b) 105
c) Error
d) "10 5"
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following data types can store decimal numbers?
a) int
b) bool
c) float
d) str
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code? print("Hello", "World", sep="-")
a) Hello-World
b) Hello World
c) Hello, World
d) Hello- World
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of print(5, 10, 15, end="!")?
a) 5 10 15
b) 5 10 15!
c) 5, 10, 15
d) Error
Create a free account and access millions of resources
Similar Resources on Wayground
21 questions
ICT 3rd QT

Quiz
•
1st Grade
16 questions
4.1 Kod Arahan

Quiz
•
1st Grade - University
15 questions
Pointers V2

Quiz
•
1st Grade
20 questions
PAT SEMESTER II Informatika kelas X

Quiz
•
1st Grade
15 questions
Kuis Perakitan Komputer

Quiz
•
1st Grade
20 questions
Library Python Pert-12

Quiz
•
1st Grade
15 questions
Bab 3 Bagian A-D Pengenalan Komputer

Quiz
•
1st Grade
20 questions
Revisão de conteúdo

Quiz
•
1st 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