What is the result of the following expression?
x = 5
y = 2
z = x % y
print(z)
python q1

Quiz
•
Computers
•
12th Grade
•
Hard

rancho labs
Used 3+ times
FREE Resource
28 questions
Show all answers
1.
FILL IN THE BLANK QUESTION
20 sec • 1 pt
2.
MULTIPLE SELECT QUESTION
20 sec • 1 pt
Which of the following is a data type in Python? Select multiple answers.
int
words
string
decimals
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following is not a core data type in Python programming?
a) Tuples
b) Lists
c) Class
d) Dictionary
4.
FILL IN THE BLANK QUESTION
20 sec • 1 pt
Find output of this code-
age=15
if age < 18:
print("Cannot vote")
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Mention the other name for Iterative statements.
Loops
Algorithm
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
i = 1
while True:
if i%7 == 0:
break
print(i)
i += 1
123456
1234567
error
none
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Name the two types of loops.
For,While
While,if
For,if
if,if else
Create a free account and access millions of resources
Similar Resources on Wayground
30 questions
Python Beginner

Quiz
•
6th - 12th Grade
28 questions
Python List

Quiz
•
12th Grade
26 questions
Python set 1

Quiz
•
9th - 12th Grade
25 questions
PYTHON QUIZ 1

Quiz
•
11th - 12th Grade
30 questions
Python Operators

Quiz
•
11th - 12th Grade
25 questions
Java Programming Quizz-GX

Quiz
•
9th - 12th Grade
25 questions
Microsoft Word 2016 - March 12, 2020

Quiz
•
9th - 12th Grade
25 questions
CSP Python Review

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade