Python Data Types and Lists ( level easy )

Python Data Types and Lists ( level easy )

12th Grade

10 Qs

quiz-placeholder

Similar activities

Python - Abstractions, Comments, Data Types, Variables

Python - Abstractions, Comments, Data Types, Variables

9th - 12th Grade

12 Qs

Python Arrays

Python Arrays

9th - 12th Grade

13 Qs

Python Quiz

Python Quiz

12th Grade

15 Qs

Code.org Unit 8

Code.org Unit 8

10th - 12th Grade

12 Qs

Unit 8 CodeHS Computer Science Essentials

Unit 8 CodeHS Computer Science Essentials

10th - 12th Grade

12 Qs

Unit 5: Lists and Dictionaries

Unit 5: Lists and Dictionaries

9th - 12th Grade

10 Qs

Problem Solving using Python and R - UNIT II - List

Problem Solving using Python and R - UNIT II - List

12th Grade

10 Qs

Python-list,tuple,Dictionary

Python-list,tuple,Dictionary

11th - 12th Grade

7 Qs

Python Data Types and Lists ( level easy )

Python Data Types and Lists ( level easy )

Assessment

Quiz

Computers

12th Grade

Medium

Created by

Saranya S

Used 8+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the data type used to represent whole numbers in Python?

bool

str

int

float

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The answer for the following code is

print(" 27+43= ")

70

"27+43=70"

"27+43"

73

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of '5 + 3' in Python?

10

7

2

8

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Explain the difference between 'float' and 'integer' methods in Python lists.

both has decimal numbers

float has decimal numbers and integers are whole numbers

both has whole numbers

float has text and integers has decimal numbers

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the data type used to represent text in Python?

integer

character

string

boolean

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you check the length of a list in Python?

count(your_list_name)

size(your_list_name)

length(your_list_name)

len(your_list_name)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the 'in' keyword do when used with lists in Python?

Adds a value to the end of a list

Removes a value from a list

Sorts the list in descending order

Checks if a value exists in a list

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?