
Python Programming Quiz - 2
Quiz
•
Engineering
•
12th Grade
•
Hard
Krishnesh G P
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a correct variable declaration in Python?
int x = 5
var x = 5
x = 5
declare x = 5
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What data type is returned by the expression 3 + 2.5 in Python?
Integer
Float
String
Boolean
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which operator is used for exponentiation in Python?
^
**
%
//
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a mutable data type in Python?
String
Tuple
List
Integer
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code? python Copy code a = 10 b = 20 a, b = b, a print(a, b)
10 10
10 20
20 10
20 20
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is used to create a conditional statement in Python?
if
for
while
switch
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code? python Copy code x = 5 if x > 2: print("A") elif x > 4: print("B") else: print("C")
A
B
C
No output
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
PIF-Quiz 4
Quiz
•
9th - 12th Grade
20 questions
Electronic Devices Quiz
Quiz
•
12th Grade
18 questions
Vex Block Programming
Quiz
•
8th Grade - University
20 questions
SENA BD CIA
Quiz
•
3rd Grade - University
11 questions
Ring Leader: Lesson 2
Quiz
•
9th Grade - University
15 questions
Bachelor of Science in Electrical Engineering Quiz
Quiz
•
12th Grade
10 questions
Exploring Python Data Types and Control
Quiz
•
12th Grade
15 questions
Python Functions and File Handling Quiz
Quiz
•
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
Discover more resources for Engineering
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
