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
14 questions
year 8 lesson 2 quiz - python

Quiz
•
8th - 10th Grade
20 questions
Python Strings

Quiz
•
University
17 questions
Python - Quiz

Quiz
•
9th - 11th Grade
20 questions
Python Recap

Quiz
•
7th Grade - University
15 questions
Exam 1 Practice

Quiz
•
University
15 questions
Python Basics

Quiz
•
KG - University
15 questions
PROGRAMMING IN PYTHON - UNIT II - TEST 1 MCQS

Quiz
•
University
19 questions
Programming Techniques Survey

Quiz
•
8th - 12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

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

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

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

Interactive video
•
6th - 10th Grade
10 questions
1.2 OSI & TCP IP Models Quiz

Quiz
•
10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade