if statment

if statment

10th Grade

6 Qs

quiz-placeholder

Similar activities

TIK Kelas X

TIK Kelas X

10th Grade

10 Qs

loop while/do while

loop while/do while

7th - 12th Grade

10 Qs

Input and Output Device Combo Meal!

Input and Output Device Combo Meal!

10th Grade

10 Qs

TLE Q3 MODULE 4 G16

TLE Q3 MODULE 4 G16

10th Grade

10 Qs

DRILL AND REVIEW

DRILL AND REVIEW

10th Grade

10 Qs

QBASIC Programming

QBASIC Programming

5th - 10th Grade

10 Qs

Computer Security:Encryption

Computer Security:Encryption

10th Grade - University

10 Qs

Social Engineering

Social Engineering

10th Grade

11 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?