
Python Selection Programming Test

Quiz
•
Science
•
University
•
Hard
152236035100 -242
FREE Resource
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
Similar Resources on Wayground
10 questions
Understanding If Else in C Programming

Quiz
•
University
10 questions
python

Quiz
•
University
10 questions
Q8 - FundComp - Python Básico (En)

Quiz
•
University
15 questions
Understanding Structures in Python

Quiz
•
University
10 questions
Python_IISem_IA1_quiz

Quiz
•
University
12 questions
判斷式

Quiz
•
1st Grade - Professio...
6 questions
Python Training Module Quiz

Quiz
•
KG - University
10 questions
Nursing Process

Quiz
•
University
Popular Resources on Wayground
55 questions
CHS Student Handbook 25-26

Quiz
•
9th Grade
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
10 questions
Chaffey

Quiz
•
9th - 12th Grade
15 questions
PRIDE

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
22 questions
6-8 Digital Citizenship Review

Quiz
•
6th - 8th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade