
Python operators and conditional statements

Quiz
•
Computers
•
Professional Development
•
Hard
Vimal Kumar
Used 3+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Pick out the correct output of the following python command:
print(0 and 100)
100
True
0
False
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which one of the following is not a valid operator in python?
==
=!
**
//
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following is not a valid operator in python?
<
or
is
=>
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will be the updated value of x if x = 9:
x //= 3
6
9
3
None of the above
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
In python what is the default type of input data taken using input() function?
Integer
Object
Decimal
String
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Is there any limit of statements that can appear under an if block?
Yes, up to 10
No
Yes, up to 5
Can’t say
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What keyword would you use to add an alternative condition to an if statement?
elif
else if
elseif
None of the above
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
BoostHours Python 09/04

Quiz
•
Professional Development
15 questions
Repaso de Python

Quiz
•
5th Grade - Professio...
7 questions
Demo Quiz Ashv

Quiz
•
Professional Development
15 questions
Website Practical Assessment

Quiz
•
Professional Development
13 questions
Тест №2

Quiz
•
Professional Development
8 questions
Basic Python Data Types

Quiz
•
Professional Development
15 questions
Programming - Screening Test

Quiz
•
3rd Grade - Professio...
12 questions
python loop practice

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade