
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
20 questions
Banco de Dados - Modelo Entidade Relacionamento
Quiz
•
Professional Development
20 questions
MS Excel Basics
Quiz
•
5th Grade - Professio...
20 questions
Python
Quiz
•
Professional Development
20 questions
CodeMonkey
Quiz
•
1st Grade - Professio...
17 questions
SC-900_Módulo 2
Quiz
•
Professional Development
15 questions
Kelas X 28 Spreadsheet 2020
Quiz
•
Professional Development
15 questions
Pretest Latihan Soal Excel
Quiz
•
Professional Development
20 questions
Advanced JavaScript
Quiz
•
Professional Development
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Computers
10 questions
How to Email your Teacher
Quiz
•
Professional Development
6 questions
3RD GRADE DECLARATION OF INDEPENDENCE EXIT TICKET
Quiz
•
Professional Development
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
22 questions
Multiplying Exponents with the Same Base
Quiz
•
9th Grade - Professio...
40 questions
Flags of the World
Quiz
•
KG - Professional Dev...
