Data Types in Python

Data Types in Python

10th - 11th Grade

16 Qs

quiz-placeholder

Similar activities

Exploring Python Data Structures Quiz

Exploring Python Data Structures Quiz

10th Grade

15 Qs

Season 1 #Spaic Python Weekly Quiz

Season 1 #Spaic Python Weekly Quiz

KG - Professional Development

20 Qs

Python Tuple

Python Tuple

11th Grade

15 Qs

J7-Revison

J7-Revison

11th Grade

17 Qs

AP Final Review

AP Final Review

9th - 12th Grade

21 Qs

Artificial Intelligence, Python and Chatbots

Artificial Intelligence, Python and Chatbots

8th - 12th Grade

15 Qs

Recuparacion 10 CP

Recuparacion 10 CP

10th Grade

16 Qs

파이썬 기초 #3

파이썬 기초 #3

11th Grade - University

13 Qs

Data Types in Python

Data Types in Python

Assessment

Quiz

Computers

10th - 11th Grade

Hard

Created by

Sandeep Arora

Used 16+ times

FREE Resource

16 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which if the values below is an integer data type?

1

1.0

1/2

"1"

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a String?

A data type that contains whole numbers. eg: 3, 45, 124

Numbers with decimal point. eg: 0.5, 2.45, 56.04

Group of characters between quotation marks. eg: "dog"

Data type that can only be True or False.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is an Integer?

A data type that contains whole numbers. eg: 3, 45, 124

Numbers with decimal point. eg: 0.5, 2.45, 56.04

Group of characters between quotation marks. eg: "dog"

Data type that can only be True or False.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which statement is correct?

List is immutable && Tuple is mutable

List is mutable && Tuple is immutable

Both are Mutable

Both are Immutable

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Suppose a list with name arr, contains 5 elements. You can get the 2nd element from the list using:

arr[-2]

arr[2]

arr[-1]

arr[1]

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is correct with respect to above Python code?

d={"a":3,"b":7}

a dictionary d is created.

a and b are the keys of dictionary d.

3 and 7 are the values of dictionary d

All of the above.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the result of above Python code?

dict={"Joey":1,"Rachel":2}


dict.update({"Phoebe":2})


print(dict)

{"Joey":1,"Rachel":2,"Phoebe":2}

{"Joey":1,"Rachel":2}

{"Joey":1,"Phoebe":2}

Error

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?