Search Header Logo

Conditionals and Loops

Authored by Filzah Amjad

Computers

6th - 8th Grade

Used 2+ times

Conditionals and Loops
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Which is the most appropriate data type for: "13th December"

String

Boolean

Float

Integer

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

x = 5

y = 6

print(x*y)


The code above displays the following:

11

x*y

Syntax Error

30

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Operators used in python:


divide, multiply, add, subtract

/, *, +, -

div, mul, +, -

\, x, +, -

~, *, +, -

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output from the following code?
print(17%5)

3
3.4
2
12

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which symbol means "not equal"?

>=
!=
==
+=

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

This operator means that one value is the same as the other value

==
!=
>
<

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The result of this program:
Friday = False
if Friday:

    print "Jeans day!"
else:
    print "Dress code"

Jeans Day
Jeans day
Dress code
Dress Code

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?