Python - Operators and Conditional Statement

Quiz
•
Computers
•
3rd - 10th Grade
•
Hard
Aditya Sharma
Used 29+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In the given expression find out the operator :
x - y
Arithmetic Operators
Bitwise Operators
Assignment Operators
Logical Operators
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
what will be the output of the given code:
x = 400
if (X % 2 == 0):
print(" You are a good Programmer")
else :
print("You are Pro Level Programmer")
You are a good Programmer
You are Pro Level Programmer
Nothing will be Printed
Error Message
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
To assign a value to a variable which operator is used ?
x = 5
Arithmetic
Logical
Assignment
Equality
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Find out the output of the given code :
a = 20
b = 15
c = 15.0
if( b == c ):
print("Equal")
else :
print("Not Equal")
Equal
Not Equal
Error
Nothing Will be printed
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Find out the output of the given code :
x = 20
y = 15
if (x != y):
print("False")
else :
print("True")
True
False
Error
Nothing Will be Printed
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Find Out the output of the given code :
a = 5
b = 3
if ( a > 4 and b > 2):
print(" Good Morning! ")
else :
print(" Good Evening!")
Error
Nothing will be printed
Good Evening!
Good Morning!
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
which type of data is this :
Odd = [ 1, 3, 5, 7, 9]
Int
Set
List
Tuple
Create a free account and access millions of resources
Similar Resources on Wayground
12 questions
Year 7 Python

Quiz
•
7th Grade
14 questions
Python Basics - Year 8

Quiz
•
7th - 9th Grade
15 questions
Python Casting and Input

Quiz
•
8th - 11th Grade
11 questions
while and do while Loop

Quiz
•
10th Grade
15 questions
Python : Codeathon Competition

Quiz
•
5th - 8th Grade
12 questions
9.1.6 - Starter Quiz

Quiz
•
8th - 9th Grade
10 questions
Python: Functions and Parameters

Quiz
•
9th - 12th Grade
15 questions
Year 8 | Intro to Python | Quiz 1

Quiz
•
7th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
typing

Quiz
•
6th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
20 questions
Input, Output, Processing or Storage

Quiz
•
5th - 6th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade