Python and PseudoCode Quiz
Quiz
•
Computers
•
10th Grade
•
Practice Problem
•
Hard
Colin Smethurst
Used 5+ times
FREE Resource
Enhance your content in a minute
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
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
20 questions
CSS 10 - QUIZ
Quiz
•
10th Grade
16 questions
Quiz on List and Tuples
Quiz
•
University
10 questions
Grade 11 Term 4 Practice 2
Quiz
•
11th Grade
10 questions
Quiz CodeIgniter 4
Quiz
•
University
15 questions
PROBLEM SOLVING USING R UNIT I MCQS
Quiz
•
University
17 questions
Week #7 - Time Machine
Quiz
•
8th Grade - University
15 questions
Tekper Bab3
Quiz
•
10th Grade
10 questions
Internet
Quiz
•
7th - 10th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
