Python and PseudoCode Quiz

Quiz
•
Computers
•
10th Grade
•
Hard
Colin Smethurst
Used 3+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following data types in Python can hold multiple values?
Float
List
String
Integer
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following Python code snippet?
str = "hello"
print(str[2:5])
ello
llo
hel
eo
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
10 questions
Advanced Python Iteration Quiz

Quiz
•
10th Grade
16 questions
Variables and Data Types Knowledge Check

Quiz
•
9th - 12th Grade
10 questions
Python - Functions

Quiz
•
University
20 questions
Mastering Python Loops and Functions

Quiz
•
10th Grade - University
20 questions
Geeks for Geeks PCCOER Info Session CP Quiz

Quiz
•
University
20 questions
Python Basics & Syntax

Quiz
•
10th - 12th Grade
15 questions
Basic Python Coding

Quiz
•
11th - 12th Grade
20 questions
Python year 9

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

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th 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
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade