Search Header Logo

Day 2 Python quiz Datatypes and variable

Authored by Oshi Maga

Education

University

Used 5+ times

Day 2 Python quiz Datatypes and variable
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the data type of print(type(5))?

int
float
double
integer

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Is Python case sensitive when dealing with identifiers?

Yes
No
Machine dependent
none of the above

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of these in not a core data type?

Class
Lists
Tuples
Dictionary

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the data type of print(type(0xFF))

int
hex
hexint
number

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which statement is correct?

List is immutable && Tuple is mutable
List is mutable && Tuple is immutable
Both are Mutable.
Both are Immutable

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which one of the following is correct way of declaring and initialising a variable, x with value 5?

int x x=5
int x=5
x=5
declare x=5

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

How we can convert the given list into the set ?

A. set.list()
B. list.set()
C. set(list)
D. None of the above

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?