
Python Quiz for Class 7 CBSE Board

Quiz
•
Computers
•
7th Grade
•
Hard
Rakesh Kurakula
Used 1+ times
FREE Resource
13 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the main purpose of Python programming language?
To increase the cost of program maintenance
To provide a clear and simple syntax that emphasizes readability and reduces the cost of program maintenance.
To prioritize complex syntax over readability
To make programming more difficult and confusing
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a valid data type in Python? A) String B) Float C) Character D) Boolean
B
A
C
D
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code? print(3 + 5 * 2)
10
16
13
7
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct way to start a Python for loop? A) for i in range(5): B) for i = 0; i < 5; i++: C) for i = 1 to 5: D) for i = 1; i < 5; i++
D) for i = 1; i < 5; i++
B) for i = 0; i < 5; i++:
A) for i in range(5):
C) for i = 1 to 5:
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to define a function in Python? A) define my_function(): B) function my_function(): C) def my_function(): D) func my_function():
C) def my_function():
B) function my_function():
D) func my_function():
A) define my_function():
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code? def my_function(x, y): return x + y print(my_function(3, 4))
12
7
34
3
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct way to check if a number is even in Python? A) if num % 2 == 0: B) if num.is_even(): C) if is_even(num): D) if num.even():
A) if num % 2 == 0:
B) if num.is_even():
D) if num.even():
C) if is_even(num):
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Computer Software

Quiz
•
7th - 8th Grade
12 questions
Python Programming Basics

Quiz
•
7th - 11th Grade
10 questions
Banana Tales Part I (1-40)

Quiz
•
6th - 8th Grade
12 questions
IH RECODE Gr-7

Quiz
•
7th Grade
12 questions
python 1112

Quiz
•
6th - 8th Grade
15 questions
Аян и Сабыржан

Quiz
•
6th - 8th Grade
12 questions
Functions Review (codeHS Tracy Python)

Quiz
•
6th - 8th Grade
10 questions
python quiz

Quiz
•
6th Grade - Professio...
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
10 questions
"LAST STOP ON MARKET STREET" Vocabulary Quiz

Quiz
•
3rd Grade
19 questions
Fractions to Decimals and Decimals to Fractions

Quiz
•
6th Grade
16 questions
Logic and Venn Diagrams

Quiz
•
12th Grade
15 questions
Compare and Order Decimals

Quiz
•
4th - 5th Grade
20 questions
Simplifying Fractions

Quiz
•
6th Grade
20 questions
Multiplication facts 1-12

Quiz
•
2nd - 3rd Grade