
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
Similar Resources on Wayground
25 questions
Aplikasi Perkantoran

Quiz
•
9th Grade
25 questions
Quizizz JavaScript Attempt 2 Review

Quiz
•
9th - 12th Grade
30 questions
Kiểm Tra Giữa Kỳ Lập Trình Python

Quiz
•
9th Grade
30 questions
Java Code Output Quiz

Quiz
•
9th - 12th Grade
30 questions
Python Programming Quiz

Quiz
•
9th - 12th Grade
30 questions
KUIZ SAINS KOMPUTER - Tingkatan 4

Quiz
•
9th - 12th Grade
25 questions
Ujian Kompetensi Skakes Airlangga

Quiz
•
9th - 12th Grade
30 questions
Kelas 8 - Halaman 31 (PTS)

Quiz
•
8th Grade - University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Information Technology (IT)
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
24 questions
Scientific method and variables review

Quiz
•
9th Grade
20 questions
Biomolecules

Quiz
•
9th Grade
6 questions
Rule of Law

Quiz
•
6th - 12th Grade
15 questions
ACT Math Practice Test

Quiz
•
9th - 12th Grade