Python Quiz-1
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard
K Hemant Reddy
Used 4+ times
FREE Resource
Enhance your content in a minute
16 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What will be the value of the following Python expression?
print(4 + 3 % 5)
7
5
2
1
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is used to define a block of code in Python language?
Indentation
Key
Brackets
All of the mentioned
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following Python code?
a) 1 2 3
b) SyntaxError
c) 1 2
d) none of the mentioned
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following Python code snippet if x=1?
x<<2
a) 4
b) 2
c) 1
d) 8
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
char = ‘E’
ascii_value = ord(char)
next_char = chr(ord(char) + 1)
print(chr(ascii_value+(ord(next_char)-ord(char))))
D
H
E
F
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the truncation division operator in Python?
a) |
b) //
c) /
d) %
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Find the correct output of the following code
0
1
2
3
4
5
1
2
3
4
5
0
1
4
5
0
1
2
3
4
5
6
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
20 questions
Spreadsheet Fundamentals - Quiz2
Quiz
•
University
20 questions
Skill Competition Quiz 2024
Quiz
•
10th Grade - University
11 questions
Types of Mass Media
Quiz
•
10th Grade - Professi...
15 questions
[CEH4H3] Sistem Tertanam Ganjil 1819 Kuis Online 2
Quiz
•
University
15 questions
Introducción Redes Tele1 IB
Quiz
•
10th Grade - University
20 questions
2. Ayo Main Quiz Lagi
Quiz
•
University - Professi...
20 questions
SOFTWARE 7I
Quiz
•
7th Grade - University
15 questions
Teknik dalam Pemikiran Komputasional
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
