Python

Quiz
•
Computers
•
6th - 10th Grade
•
Hard

Rafael Diolatzis
Used 130+ times
FREE Resource
17 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What will this python code do?
print("Hello, World")
Display Hello, World
Sent a message to our printer to print Hello, World in a paper
Display "Hello, World"
Nothing its syntax is wrong
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
how do we assign to the variable x a value of 5?
var x = 5;
var x = 5
x = 5
(x) == 5
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Whats wrong with the script below?
print(a+b)
a = 5
b = 10
The program doesn' t now what a and b is.
The print function should be print("a+b")
The print function should be print(a + b)
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
click the correct if function:
if x = 5:
if x = num(5):
if x == 5:
if x = float(num(5)):
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Whats the correct boolean type:
x == 5
x = 5
x = condition(True)
x = True
x == True
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
why will the following script won't work?
user_input1 = input("Enter a number: ")
user_input2 = input("Enter a second number: ")
print(user_input1 + user_input2)
Because variables cannot be longer than 1 word
Because user_input1 and user_input2 is a string
Because input is an invalid function
Because python will always thing that it has to add 1+2
It will work
7.
MULTIPLE SELECT QUESTION
2 mins • 1 pt
Click all the functions that exist in python:
elif
function
if
float()
key_input
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Python Programming Quiz

Quiz
•
9th Grade - University
15 questions
Year 9 Homework Quiz 1 - Python

Quiz
•
8th Grade
16 questions
Variables

Quiz
•
7th - 10th Grade
19 questions
ProA Desarrollo de Software 3° año

Quiz
•
1st - 12th Grade
21 questions
Python Test 1.0 - 2.0

Quiz
•
9th - 12th Grade
14 questions
Programming Quiz 5

Quiz
•
10th Grade
16 questions
Python basics

Quiz
•
9th - 12th Grade
14 questions
Computing Revision JCG

Quiz
•
KG - University
Popular Resources on Wayground
15 questions
Hersheys' Travels Quiz (AM)

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
30 questions
Lufkin Road Middle School Student Handbook & Policies Assessment

Quiz
•
7th Grade
20 questions
Multiplication Facts

Quiz
•
3rd Grade
17 questions
MIXED Factoring Review

Quiz
•
KG - University
10 questions
Laws of Exponents

Quiz
•
9th Grade
10 questions
Characterization

Quiz
•
3rd - 7th Grade
10 questions
Multiply Fractions

Quiz
•
6th Grade
Discover more resources for Computers
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
15 questions
Hersheys' Travels Quiz (AM)

Quiz
•
6th - 8th Grade
30 questions
Lufkin Road Middle School Student Handbook & Policies Assessment

Quiz
•
7th Grade
17 questions
MIXED Factoring Review

Quiz
•
KG - University
10 questions
Laws of Exponents

Quiz
•
9th Grade
10 questions
Characterization

Quiz
•
3rd - 7th Grade
10 questions
Multiply Fractions

Quiz
•
6th Grade
20 questions
Guess The Cartoon!

Quiz
•
7th Grade