
python quiz 1

Quiz
•
Computers
•
Professional Development
•
Medium
KEERTHI BADUGU
Used 7+ 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
30 questions
C BASICS

Quiz
•
Professional Development
25 questions
python if-elif-else

Quiz
•
Professional Development
25 questions
PROGRESS AND OPENEDGE QUIZ

Quiz
•
Professional Development
25 questions
Тест остаточных знаний

Quiz
•
Professional Development
30 questions
Quiz 3.4

Quiz
•
Professional Development
30 questions
Blind Coding Round 1

Quiz
•
Professional Development
35 questions
Python

Quiz
•
Professional Development
27 questions
Python Quiz

Quiz
•
Professional Development
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