
Python syntax 2
Quiz
•
Computers
•
9th - 12th Grade
•
Hard
Albi Smedley
Used 3+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What would this print:
print("Hello","Hello" + "Hello")
HelloHelloHello
Hello Hello Hello
Hello HelloHello
Hello, HelloHello
2.
MULTIPLE SELECT QUESTION
2 mins • 1 pt
Which answers correctly asks the user to type in their name and then saves the answer in to a variable? (2 are correct)
name = input("Type in your name:")
print("Type in your name:")
input()
print("Type in your name:")
input(name)
str(input("Type in your name"))
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
v1 = input()
What data type is stored inside of v1 after this?
integer
float
string
it depends what the user enters
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is it called when you use + to combine strings?
Combining
Stringing
Concatenating
Adding
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function would convert 17.002 to an integer?
str(17.002)
int(17.002)
float(17.002)
type(17.002)
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
age = input()
Fill in the blank to correctly output the sentence:
print("You are " + ________ + " years old")
age
str(age)
int(age)
"age"
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
s = "i love computer SCIENCE"
print(s.title())
What will this output?
i love computer science
I LOVE COMPUTER SCIENCE
I Love Computer Science
i love computer SCIENCE
Create a free account and access millions of resources
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
Abhyudaya coding class - Grade 7
Quiz
•
6th Grade - University
14 questions
Bài 29. Nhận biết lỗi chương trình
Quiz
•
9th - 12th Grade
15 questions
4.6.4 Logic Gates
Quiz
•
10th Grade - Professi...
12 questions
Wee Word Intro
Quiz
•
7th - 12th Grade
11 questions
Basic Python Bug Squashing
Quiz
•
9th Grade
12 questions
GCE AQA CS - 04 Computer Architecture
Quiz
•
10th - 11th Grade
13 questions
PRA-PAS-02
Quiz
•
10th Grade
15 questions
ONLINE Quiz - Computer Hardware Basics (COMSYS 1)
Quiz
•
12th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
