Python Data Types and Lists ( level easy )

Quiz
•
Computers
•
12th Grade
•
Medium
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
Similar Resources on Wayground
14 questions
Christmas Programming Quiz

Quiz
•
12th Grade
15 questions
list in python

Quiz
•
10th - 12th Grade
10 questions
H466 - Arrays, Records, Tuples and Lists

Quiz
•
11th Grade - University
15 questions
Section 3A: Collect and process data using lists

Quiz
•
12th Grade
10 questions
Vocabulary Do Now 1

Quiz
•
9th - 12th Grade
10 questions
CS Python Fundamentals Test 12 PRACTICE

Quiz
•
9th - 12th Grade
10 questions
Python Object Types - Numbers

Quiz
•
9th - 12th Grade
10 questions
Python Math

Quiz
•
1st - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade