Search Header Logo

Python Fundamentals Assessment

Authored by Samuel Okon

Professional Development

Professional Development

Used 1+ times

Python Fundamentals Assessment
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

22 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 10 pts

What is the correct way to declare a variable in Python?

x : 10

x = 10

let x = 10;

var x = 10;

2.

MULTIPLE CHOICE QUESTION

30 sec • 15 pts

Which of the following is not a data type in Python?

string

boolean

float

character

3.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What data structure is used to store multiple items in a single variable?

Set

Queue

List

Map

4.

MULTIPLE CHOICE QUESTION

30 sec • 17 pts

What is the output of the following code: print(type(5))?

<class str>

<class int>

<class float>

<class bool>

5.

MULTIPLE CHOICE QUESTION

30 sec • 15 pts

Which keyword is used to define a function in Python?

method

def

function

define

6.

MULTIPLE CHOICE QUESTION

30 sec • 20 pts

What will be the output of the following code: print(3 * 'Python')?

PythonPython

3PythonPython

PythonPythonPython

Python3Python

7.

MULTIPLE CHOICE QUESTION

30 sec • 20 pts

Which of the following is a mutable data type in Python?

tuple

list

set

frozenset

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Professional Development