
python quiz 1

Quiz
•
Computers
•
Professional Development
•
Easy
KEERTHI BADUGU
Used 15+ times
FREE Resource
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code?
print(2 ** 3);
a) 5
b) 6
c) 8
d) 9
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid variable name in Python?
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct file extension for Python files?
a) .pyth
b) .pt
c) .py
d) .pyt
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is used to define a function in Python?
a) func
b) define
c) def
d) function.def
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code?
print("Hello" + "World");
a) Hello World
b) HelloWorld
c) Hello+World
d) Error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a core data type in Python?
a) List
b) Dictionary
c) Tuples
d) Class
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you insert comments in Python code?
a) //
b) #
c) /* */
d) --
Create a free account and access millions of resources
Similar Resources on Wayground
26 questions
MİT SON

Quiz
•
Professional Development
30 questions
ML/AI internship Intermediate assessment

Quiz
•
Professional Development
30 questions
Quiz - Functions in C

Quiz
•
Professional Development
25 questions
SDdbC#_Final Quiz

Quiz
•
Professional Development
30 questions
ИНФОРМАТИКА НОВЫЙ ТЕСТ МҰҒАЛІМДЕРГЕ 2023

Quiz
•
Professional Development
25 questions
Final assessment

Quiz
•
Professional Development
30 questions
Garuda_Round-2_Quiz

Quiz
•
Professional Development
35 questions
Python Knowledge Check

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade