
Python Basics
Quiz
•
Information Technology (IT)
•
9th Grade
•
Easy
Philip Donaldson
Used 2+ times
FREE Resource
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you create a variable named age and assign it the value 15?
a) age = 15
b) var age = 15
c) int age = 15
d) age: 15
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code?
print("Hello, World!")
Hello, World!
hello, world!
Hello World
hello world
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function is used to get input from the user in Python?
input()
get()
read()
scan()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code?
name = input("Enter your name: ")
print("Hello, " + name)
Hello, name
Hello, followed by the user’s input
Enter your name: followed by the user’s input
name
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you add two numbers, a and b, and store the result in a variable sum?
sum = a + b
sum = a - b
sum = a * b
sum = a / b
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the following expression? Python 10 - 3 * 2
4
14
16
20
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct way to print the value of a variable x?
print(x)
print x
echo(x)
echo x
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
28 questions
Giữa HKII lớp 9
Quiz
•
9th Grade
28 questions
Year 8 Kodu Assessment
Quiz
•
7th Grade - University
30 questions
QUIZ Edublock Python
Quiz
•
9th Grade
31 questions
Uji Kompetensi Informatika Kelas 9
Quiz
•
9th Grade
30 questions
PH Aplikasi Scratch
Quiz
•
9th Grade - University
35 questions
untitled
Quiz
•
3rd Grade - University
25 questions
soal uh 9
Quiz
•
9th Grade - University
26 questions
Types and Components of a Computer System
Quiz
•
9th Grade
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
Discover more resources for Information Technology (IT)
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
20 questions
Halloween movies trivia
Quiz
•
7th - 12th Grade
15 questions
Halloween Characters
Quiz
•
7th - 12th Grade
10 questions
Halloween Movies Trivia
Quiz
•
5th Grade - University
10 questions
Halloween Trivia Challenge
Interactive video
•
6th - 10th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
14 questions
Halloween Fun
Quiz
•
2nd - 12th Grade
15 questions
Halloween Trivia
Quiz
•
9th Grade
