PYTHON APTITUDE
Quiz
•
Information Technology (IT)
•
University
•
Practice Problem
•
Hard
vanitha lawrance
Used 8+ times
FREE Resource
Enhance your content in a minute
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Find the output of the following program:
a = {i: i * i for i in range(6)} print (a)
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following program :
print 0.1 + 0.2 == 0.3
0.3
False
Error
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of this program?
Runtime Error
16
Indentation Error
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the expression : 3*1**3
1
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following program :
0
1
2
3
0
0
1
2
0
0
1
2
Error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which line of code produces an error?
Which line of code produces an error?
(a) “one” + “2”
(b) ‘5’ + 6
(c) 3 + 4
(d) “7” + ‘eight’
(a)
(b)
(c)
(d)
Answer explanation
The correct answer is (b) '5' + 6.
In Python, you cannot concatenate (add) a string and an integer directly. '5' is a string and 6 is an integer, so attempting to add them together will result in a TypeError.
Here's a breakdown of the other options:
(a) "one" + "2" is a valid string concatenation.
(c) 3 + 4 is a valid integer addition.
(d) "7" + 'eight' is a valid string concatenation.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Identify the invalid variable name in python?
Identify the invalid variable name in python?
(a) this_is_a_variable = 7
(b) abc = 10.22
(c) ThisBook = “python”
(d) %name = “xyz”
(a)
(b)
(c)
(d)
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
12 questions
TEST 5
Quiz
•
University
15 questions
SAS informatika kelas 8 S2
Quiz
•
8th Grade - University
12 questions
Review loops
Quiz
•
8th Grade - University
10 questions
Latsol
Quiz
•
10th Grade - University
15 questions
PPL 223 - (QUIZ 3) Data Types and Structures
Quiz
•
University
10 questions
高二資訊課補考題目
Quiz
•
11th Grade - University
15 questions
Use Cases and Domain Classes
Quiz
•
University
10 questions
แบบทดสอบซัพพลายเชนเบื้องต้น
Quiz
•
6th Grade - University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
Discover more resources for Information Technology (IT)
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
7 questions
Different Types of Energy
Interactive video
•
4th Grade - University
20 questions
Slopes and Slope-Intercept Form
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Biomolecules (Updated)
Interactive video
•
11th Grade - University
20 questions
Winter/Holiday Trivia
Quiz
•
KG - University
10 questions
WINTER WIN Time - ELA - 12/9/2025
Quiz
•
KG - University
7 questions
Human Impact on Resources
Interactive video
•
4th Grade - University
