
Python Programming Multiple Choice Quiz

Quiz
•
Computers
•
9th Grade
•
Hard
Wayne Vaughan
Used 1+ times
FREE Resource
90 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to assign the integer value 10 to a variable named x?
x == 10
x = 10
10 = x
assign x to 10
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid Python variable name?
2my_variable
my-variable
my_variable
my variable
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code?
21
11
17
13
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used to start an if statement in Python?
if
then
check
when
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the input() function return in Python?
An integer
A float
A string
A boolean
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you convert a string s to an integer in Python?
int(s)
str_to_int(s)
s.to_int()
integer(s)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which symbol is used for single-line comments in Python?
//
/* */
#
Create a free account and access millions of resources
Similar Resources on Wayground
86 questions
N5 Database Development (full)

Quiz
•
9th - 10th Grade
92 questions
big computing quiz

Quiz
•
9th - 12th Grade
89 questions
Problem Solving and Flowcharts Quiz

Quiz
•
9th Grade
88 questions
Programming Quiz based on Teach ICT - all topics AQA GCSE

Quiz
•
9th Grade
93 questions
J277-01 Parts 1.1, 1.2 & 1.6

Quiz
•
8th - 10th Grade
95 questions
Exploring Computer Science Quiz

Quiz
•
9th Grade
90 questions
Mid Assessment Benchmark

Quiz
•
9th - 12th Grade
85 questions
QUIZ AKHIR

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
12 questions
Unit Zero lesson 2 cafeteria

Lesson
•
9th - 12th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
20 questions
Lab Safety and Equipment

Quiz
•
8th Grade
13 questions
25-26 Behavior Expectations Matrix

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

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Introduction to Desktop Computer Systems

Quiz
•
9th - 12th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Computer Hardware and Input/Output Devices

Interactive video
•
6th - 10th Grade