
PYTHON APTITUDE
Authored by vanitha lawrance
Information Technology (IT)
University
Used 8+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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)
Access all questions and much more by creating a free account
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
15 questions
ViewSonic LCD Training
Quiz
•
12th Grade - University
15 questions
INFORMATIKA KELAS 7A DAN TB
Quiz
•
7th Grade - University
10 questions
Ice Breaking Informatika
Quiz
•
10th Grade - University
10 questions
Chapter 8: Developing Business IT Solutions
Quiz
•
University
10 questions
SBD QUIZ#13
Quiz
•
University
10 questions
15-JS Методы массивов (продолжение)
Quiz
•
University
12 questions
QUIZ KEJAHATAN DUNIA MAYA
Quiz
•
University
10 questions
Aislamiento Eléctrico en Hospitales
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
5 questions
Poetry Interpretation
Interactive video
•
4th Grade - University
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
15 questions
Review1
Quiz
•
University
15 questions
Pre1
Quiz
•
University