Class-XI_IP_Python

Quiz
•
Computers
•
11th Grade
•
Medium
Preeti Vig
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used for conditional branching in Python?
select
case
if
choose
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of the following code?
x = 4
while x < 6:
print(x)
x += 1
4
4 5
Infinite loop
5 6
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output for the following code-
for i in range(2):
print(i, end=" ")
0 1
1 2
0 1 2
1
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is output of the following code-
for i in range(1, 10, 3):
print(i, end=" ")
1 2 3 4 5 6 7 8 9
1 3 5 7 9
1 4 7
3 6 9
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output for the following code-
x = 7
if x % 2 == 0:
print("Even")
else:
print("Odd")
Even
Odd
Error
None
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What is the output of the following loop-
for i in range(3):
print("Hello", i)
Hello Hello Hello
Hello 1 Hello 2 Hello 3
Hello 0 Hello 1 Hello 2
Error
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following will print numbers from 10 to 1?
range(10, 1)
range(1, 10, -1)
range(10, 0, -1)
range(0, 10, -1)
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
ASK F2 -KOD ARAHAN (PYTHON)

Quiz
•
1st Grade - University
15 questions
Basic Python Coding

Quiz
•
11th - 12th Grade
15 questions
Intermediate Python

Quiz
•
9th - 11th Grade
13 questions
Fundamentals of Python

Quiz
•
9th - 12th Grade
7 questions
java podstawy

Quiz
•
9th Grade - University
10 questions
python (loops)

Quiz
•
11th Grade
15 questions
Looping Review

Quiz
•
10th - 12th Grade
10 questions
Cấu trúc lặp - Python

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
Appointment Passes Review

Quiz
•
6th - 8th 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
20 questions
Grammar Review

Quiz
•
6th - 9th Grade