Python and PseudoCode Quiz

Quiz
•
Computers
•
10th Grade
•
Medium
Colin Smethurst
Used 2+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a mutable data type in Python?
Tuple
List
String
Integer
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following Python code snippet? ```python print(type(3.14)) ```
`
`
`
`
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a control structure used to repeat a block of code in Python?
If-else
For loop
Function
Class
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following pseudo code? ``` IF temperature > 30 THEN PRINT "Hot" ELSE PRINT "Cold" ``` Assume `temperature = 25`.
Hot
Cold
Error
Nothing
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a correct way to define a function in Python?
`def myFunction:`
`function myFunction()`
`def myFunction():`
`myFunction()`
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the `return` statement in a Python function?
To exit the function
To return a value to the caller
To print a value
To define a function
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is an example of a Boolean data type in Python?
`True`
`1`
`"True"`
`None`
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Control Statements in Python

Quiz
•
11th Grade
16 questions
Python basics

Quiz
•
9th - 12th Grade
12 questions
Python Print Statement

Quiz
•
6th - 10th Grade
20 questions
Procedures and Functions

Quiz
•
10th Grade
16 questions
Python programming

Quiz
•
6th - 12th Grade
20 questions
Python Basics & Syntax

Quiz
•
10th - 12th Grade
20 questions
Python Basics Review (TSK)

Quiz
•
9th - 12th Grade
18 questions
Foundations of Programming

Quiz
•
9th - 10th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade