
Python2
Authored by Opuere Falabi
Computers
8th Grade - University
Used 12+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Change the following line of code to a comment.
print("Hello World")
+print("Hello World")
#print("Hello World")
&print("Hello World")
print("Hello World")
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following Python operators is used for variable assignment?
=
+
/
*
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a data type in Python?
Integer
String
Float
Figures
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What do we use the float() function for?
To change a value to float
To change a value to a string
To change a value to an integer
None of the Above
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code on the Python Shell?
a = 10
b = 2
c = a/b
print(c)
2
4
1
5
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code on the python shell 5+3-5?
3
-3
5
-5
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What type of comment can you see below?
#This is a comment
#written in
#more than just one line
Line comment
commenters
comment
Multi Line comment
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
10 questions
computer Networks
Quiz
•
University
20 questions
DPS Jorhat - Robotics Skill Assessment
Quiz
•
6th - 8th Grade
15 questions
LA1.C1: Introduction to Small Basic
Quiz
•
9th Grade
13 questions
WJEC GCSE ICT Unit 1 E-Mail
Quiz
•
9th - 10th Grade
10 questions
Scratch
Quiz
•
KG - Professional Dev...
12 questions
Adventure game project
Quiz
•
7th - 8th Grade
16 questions
E-Commerce
Quiz
•
University - Professi...
15 questions
Cyber Security KS4
Quiz
•
8th - 12th Grade
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