Conditionals and Loops

Conditionals and Loops

6th - 8th Grade

20 Qs

quiz-placeholder

Similar activities

Code.org Express

Code.org Express

8th Grade

25 Qs

Code.org CSD Unit 3 Lessons 1-12

Code.org CSD Unit 3 Lessons 1-12

3rd - 12th Grade

20 Qs

Micro:Bit Homework 1

Micro:Bit Homework 1

6th - 10th Grade

20 Qs

Loops

Loops

6th Grade

16 Qs

Arduino IDE

Arduino IDE

3rd Grade - Professional Development

17 Qs

Python -Iteration (loops)

Python -Iteration (loops)

7th - 12th Grade

20 Qs

Python while loops

Python while loops

8th - 9th Grade

20 Qs

Code.org Vocab

Code.org Vocab

6th - 7th Grade

24 Qs

Conditionals and Loops

Conditionals and Loops

Assessment

Quiz

Computers

6th - 8th Grade

Medium

Created by

Filzah Amjad

Used 2+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?