
Python practice
Quiz
•
Computers
•
Professional Development
•
Practice Problem
•
Easy
Shashi Weerasooriya
Used 1+ times
FREE Resource
Enhance your content in a minute
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a correct syntax to output "hello world" in python
p("hello world")
print ("hello world")
echo "hello world"
echo("hello world")
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you insert COMMENTS in Python code?
#thi is a comment
/*this is a comment*/
//this is a comment
@this is a comment
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which one is not a legal variable name?
my_var
Myvar
_myvar
My-var
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you create a variable with the numerical value 5?
Both the other answers are correct
X=int(5)
X=5
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct file extension for python file
.py
.pt
.pyt
.pyth
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you create a variable with the floating number 2.8?
Both the other answers are correct
X=2.8
X=float(2.8)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax to output the type of a variable or object in Python?
print (type(x))
print(typeOf (x))
print (typeof(X))
print (typeof X)
Access all questions and much more by creating a free account
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
15 questions
JavaScript
Quiz
•
Professional Development
18 questions
OT K2 L3 tin hoc
Quiz
•
Professional Development
20 questions
Ch.8 - Introducing Python
Quiz
•
6th Grade - Professio...
20 questions
2. Ayo Main Quiz Lagi
Quiz
•
University - Professi...
20 questions
BIMTEK INFORMATIKA
Quiz
•
Professional Development
20 questions
Revisão Informática Básica
Quiz
•
Professional Development
20 questions
Evaluacion Final - 2024
Quiz
•
Professional Development
20 questions
Module 2 Quiz Preparation
Quiz
•
Professional Development
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade
