
Python Selection Programming Test
Quiz
•
Science
•
University
•
Hard
152236035100 -242
FREE Resource
Enhance your content
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code: `x = 10; if x > 5: print('Greater')`?
Greater
Less
Equal
Not Greater
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used to start a conditional statement in Python?
unless
if
case
when
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of this code: `x = 3; if x == 3: print('Equal'); else: print('Not Equal')`?
Equal
Equal to 4
Equal to 2
Not Equal
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In Python, which of the following is NOT a valid comparison operator?
=<
>>
<=
==
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the `elif` statement in Python?
The `elif` statement is a way to end a program in Python.
The `elif` statement is used to define a loop in Python.
The purpose of the `elif` statement is to provide additional conditional checks in an if-else structure.
The `elif` statement is used to declare variables in Python.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code: `x = 5; if x < 5: print('Less'); elif x == 5: print('Equal'); else: print('Greater')`?
Equal
Greater
Less
None
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements correctly checks if a variable `a` is not equal to 10?
a == 10
a = 10
a <> 10
a != 10
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple

Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
15 questions
2.1 Qualitative vs. Quantitative
Quiz
•
11th Grade - University
15 questions
Scientific Theories vs Laws
Quiz
•
7th Grade - University
15 questions
AP Evidence of Evolution
Quiz
•
7th Grade - University
10 questions
Avaliação Pensamento Computacional - Prático
Quiz
•
1st Grade - Professio...
15 questions
Unit 4 Magnets Science
Quiz
•
3rd Grade - University
15 questions
Cell Unit Review
Quiz
•
7th Grade - University
15 questions
Radioactivity and Half-Life
Quiz
•
9th Grade - University
15 questions
211 Multiple Sclerosis
Quiz
•
University
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
ELA Advisory Review
Quiz
•
7th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
Discover more resources for Science
11 questions
NFL Football logos
Quiz
•
KG - Professional Dev...
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms
Quiz
•
11th Grade - University
38 questions
Unit 6 Key Terms
Quiz
•
11th Grade - University
20 questions
La Hora
Quiz
•
9th Grade - University
7 questions
Cell Transport
Interactive video
•
11th Grade - University
7 questions
What Is Narrative Writing?
Interactive video
•
4th Grade - University