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
Week 5: Test your understanding part 1
Quiz
•
University
20 questions
Microsoft Excel
Quiz
•
KG - Professional Dev...
15 questions
Herramientas de Google
Quiz
•
12th Grade - University
12 questions
Javascript
Quiz
•
University
20 questions
kollekvium 3
Quiz
•
University
20 questions
data structures1
Quiz
•
University
16 questions
Quiz on List and Tuples
Quiz
•
University
20 questions
Sistem Informasi Manajemen
Quiz
•
University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th 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
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
20 questions
christmas songs
Quiz
•
KG - University
20 questions
Holiday Trivia
Quiz
•
9th Grade - University
15 questions
Holiday Movies
Quiz
•
University
14 questions
Christmas Trivia
Quiz
•
3rd Grade - University
20 questions
Christmas Trivia
Quiz
•
University
8 questions
5th, Unit 4, Lesson 8
Lesson
•
KG - Professional Dev...
20 questions
Disney Trivia
Quiz
•
University
