Python Basics

Quiz
•
Computers
•
11th Grade
•
Hard
KK Singh
Used 175+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Python uses
Blocks
Braces
Indentation
Parentheses
2.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Pyhton uses which of the following as translator?
Interpreter
Compiler
Both
Assembler
3.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
In which language is the Python programming created?
C
C++
Pyhton
All of the above
4.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
When a string does not fit in single line, one can use the following quotes for multiple line string?
Single Quotes
Double Quotes
Triple Quotes
Quadruple
5.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
a=True; b=True; c=False
if a or b and c:
print('True')
else:
print('False')
False
True
False or True
No Output
Answer explanation
As per the precedence of operator the precedence of and is higher then or and therefore b and c will be evaluated first and gives False output and a is True and b and c is False so True or False will give True
6.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
The output -12%5 is
-3
-2
3
2
Answer explanation
R = N-Q*D
= -12-(-12//5*5)
=-12 + 15
= 3
7.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
a=500;b=300
print(a*bool(a//b) + b*bool(b//a))
will print?
b
a
500
300
Answer explanation
a*bool(a//b) + b*bool(b//a)
a=500 and b = 300
500*bool(500//300) + 300*bool(300//500)
500*bool(1) + 300 *bool(0)
500 + 0
So it print 500 as the greater value
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Chapter 10 AS Level Review

Quiz
•
11th Grade
10 questions
Programming - Arrays

Quiz
•
2nd - 12th Grade
10 questions
Programming Concepts - Algorithms with array

Quiz
•
7th Grade - University
13 questions
Dimensioning Practice test 1

Quiz
•
9th - 12th Grade
12 questions
Chapitre 6 - Application concept réseau

Quiz
•
11th Grade
10 questions
Functions

Quiz
•
8th Grade - University
13 questions
computer science

Quiz
•
11th Grade
15 questions
CSE_CodeHS_intro_python_unit_3_5

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade