Search Header Logo

PYTHON ASSESSMENT_PRT_1

Authored by Alayande Olajide

others

Used 4+ times

PYTHON ASSESSMENT_PRT_1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

44 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a variable in Python?

A number
A letter
A container for storing data
A type of function

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is a correct variable name?

5var
variable_name
!var
Python

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the type of x after 'x = 10'?

String
Float
Integer
Boolean

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the type of x after 'x = "Hello"'?

Integer
Float
String
Boolean

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is NOT a valid data type in Python?

int
bool
word
float

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the function to check the type of a variable?

typeof()
getType()
type()
varType()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these can hold multiple values?

Integer
String
Tuple
Boolean

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?