Python Programming L1 Quiz

Quiz
•
Other
•
12th Grade
•
Medium
Dina Chanthan
Used 9+ times
FREE Resource
14 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to create a variable in Python?
var x = 5
x = 5
int x = 5
x := 5
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What data type is the result of 3 / 2 in Python?
int
float
str
bool
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you convert a string s = "123" to an integer?
int(s)
str(s)
float(s)
bool(s)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of float(5)?
5
5.0
"5"
None
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you add an element 5 to a list lst in Python?
lst.append(5)
lst.add(5)
lst.insert(5)
lst.extend(5)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of len([1, 2, 3])?
2
3
4
None
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a tuple in Python?
[1, 2, 3]
{1, 2, 3}
(1, 2, 3)
1, 2, 3
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Kitchen Math

Quiz
•
9th - 12th Grade
10 questions
Fundamentos da Robótica Avançada

Quiz
•
12th Grade
10 questions
Python armenia

Quiz
•
1st Grade - University
15 questions
Quiz de Programação e Robótica

Quiz
•
9th Grade - University
15 questions
Programming basics

Quiz
•
12th Grade
15 questions
4.1 PANGKALAN DATA DAN SQL

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

Quiz
•
9th - 12th Grade
10 questions
Quiz sobre Scratch y Tinkercad

Quiz
•
11th Grade - University
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
Discover more resources for Other
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Video Games

Quiz
•
6th - 12th Grade
28 questions
Ser vs estar

Quiz
•
9th - 12th Grade
13 questions
BizInnovator Startup - Experience and Overview

Quiz
•
9th - 12th Grade
16 questions
AP Biology: Unit 1 Review (CED)

Quiz
•
9th - 12th Grade
20 questions
Parallel lines and transversals

Quiz
•
9th - 12th Grade
9 questions
Geometry and Trigonometry Concepts

Interactive video
•
9th - 12th Grade
10 questions
Angle Relationships with Parallel Lines and a Transversal

Quiz
•
9th - 12th Grade