Python Quiz-1

Quiz
•
Computers
•
University
•
Hard
K Hemant Reddy
Used 4+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
13 questions
C programming-1

Quiz
•
University
20 questions
C Programming

Quiz
•
University
15 questions
CIS1101-programming practice

Quiz
•
University
15 questions
BASIC C QUIZ

Quiz
•
University
20 questions
BS TEST2

Quiz
•
University
15 questions
Exam 1 Practice

Quiz
•
University
15 questions
Java Quiz based on array

Quiz
•
University
15 questions
Python Basics

Quiz
•
KG - University
Popular Resources on Wayground
10 questions
SR&R 2025-2026 Practice Quiz

Quiz
•
6th - 8th Grade
30 questions
Review of Grade Level Rules WJH

Quiz
•
6th - 8th Grade
6 questions
PRIDE in the Hallways and Bathrooms

Lesson
•
12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
15 questions
Subtracting Integers

Quiz
•
7th Grade
Discover more resources for Computers
15 questions
Let's Take a Poll...

Quiz
•
9th Grade - University
2 questions
Pronouncing Names Correctly

Quiz
•
University
34 questions
WH - Unit 2 Exam Review -B

Quiz
•
10th Grade - University
21 questions
Mapa países hispanohablantes

Quiz
•
1st Grade - University
10 questions
Transition Words

Quiz
•
University
5 questions
Theme

Interactive video
•
4th Grade - University
25 questions
Identifying Parts of Speech

Quiz
•
8th Grade - University
10 questions
Spanish Greetings and Goodbyes!

Lesson
•
6th Grade - University