if statment

if statment

10th Grade

6 Qs

quiz-placeholder

Similar activities

Bài 16-Language lập trình cao cấp và Python

Bài 16-Language lập trình cao cấp và Python

10th Grade

10 Qs

Variables and Functions

Variables and Functions

KG - University

10 Qs

Cloud Computing.

Cloud Computing.

10th Grade

10 Qs

Python with DataScience

Python with DataScience

7th Grade - University

10 Qs

Podstawy Pythona

Podstawy Pythona

9th - 12th Grade

10 Qs

Interstate Competition

Interstate Competition

7th - 10th Grade

11 Qs

KISI KISI

KISI KISI

10th Grade

10 Qs

DL Refresher

DL Refresher

KG - Professional Development

10 Qs

if statment

if statment

Assessment

Quiz

Computers

10th Grade

Practice Problem

Medium

Created by

Rania Mustafa

Used 29+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

6 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 2 pts

What will be the result of the following code:

x = 5
y = 8
if x > y:
   print('Hello')

else:
  print('Welcome')

Hello

Welcome

2.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

Media Image


what is the output?

Print "Yes" if a is equal to b, otherwise print "No".


Print "No" if a is equal to b, otherwise print "Yes".

3.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

Media Image

whta is the output?

print "1" if a is greater than b,

Print "2" if a is equal to b,

otherwise print "3".

Print "1" if a is equal to b,

print "2" if a is greater than b,

otherwise print "3".


4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code:

a = 10
b = 5
if a < b:
  print('Greater')
else:
  print('Smaller or Equal')

Greater

Smaller or Equal

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of the following code snippet?

num = 3
if num == 3:
  print('Three')
elif num > 3:
  print('Greater than Three')

Three

Greater than Three

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be printed by this code?

value = 7
if value >= 10:
  print('High')
else:
  print('Low')

High

Low

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?