Python and PseudoCode Quiz

Python and PseudoCode Quiz

10th Grade

15 Qs

quiz-placeholder

Similar activities

Python Loops

Python Loops

9th - 11th Grade

12 Qs

Foundations of Programming

Foundations of Programming

9th - 10th Grade

18 Qs

Python Syntax

Python Syntax

10th Grade

16 Qs

Python - lists,loops,basics

Python - lists,loops,basics

9th - 11th Grade

20 Qs

Python (Selection)

Python (Selection)

8th - 10th Grade

13 Qs

Python Basics

Python Basics

8th - 10th Grade

10 Qs

Procedures and Functions

Procedures and Functions

10th Grade

20 Qs

Python Functions

Python Functions

12th Grade

15 Qs

Python and PseudoCode Quiz

Python and PseudoCode Quiz

Assessment

Quiz

Computers

10th Grade

Medium

Created by

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?