LOOPS AND FLOW CONTROL STATEMENTS

LOOPS AND FLOW CONTROL STATEMENTS

8th Grade

10 Qs

quiz-placeholder

Similar activities

Mengenal perintah di Word

Mengenal perintah di Word

5th Grade - University

10 Qs

App Inventor HelloCodi App Worksheet

App Inventor HelloCodi App Worksheet

8th Grade

15 Qs

Computer Internet

Computer Internet

4th Grade - University

10 Qs

Osnove programiranja u C++

Osnove programiranja u C++

8th Grade

15 Qs

Quizz1

Quizz1

6th - 8th Grade

13 Qs

Database Concepts and MS Access Assessment

Database Concepts and MS Access Assessment

8th Grade - University

10 Qs

pengenalan pemprograman prosedural2

pengenalan pemprograman prosedural2

8th Grade - University

5 Qs

Основы языка программирования Python

Основы языка программирования Python

8th Grade

10 Qs

LOOPS AND FLOW CONTROL STATEMENTS

LOOPS AND FLOW CONTROL STATEMENTS

Assessment

Quiz

Information Technology (IT)

8th Grade

Hard

Used 3+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Code for

Five is greater than two!

if 5 > 2:

print("Five is greater than two!")

if 5 = 2:

print("Five is greater than two!")

if 5 > 2: Print("Five is greater than two!")

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Code for

257

Hello, World!

x = 257

y = "Hello, World!"


print(y)

print(x)

x = 257

y = "Hello, World!"


print(x)

print(y)

x = 257

y = Hello, World!


print x

print y

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will the output be from the following code?
print("Hello" + "world" + "today")
Helloworldtoday
Hello world today
"Hello" "world" "today"
SyntaxError

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The result of this program:

Friday = False

if Friday:

print "Jeans day!"

else:

print "Uniform day"

Jeans day

Today is Friday

Uniform day

Not Friday

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which statement will check to see if a is equal to b?
if a == b
if a = b:
if a != b:
if a == b:

6.

MULTIPLE CHOICE QUESTION

30 sec • 12 pts

An empty/null statement in python is ____________

go

pass

over

;

7.

MULTIPLE CHOICE QUESTION

2 mins • 12 pts

Media Image

What is the output of the above program ?

Am I here?

Or here ?

Am I here ? Or here ?

Or here ? Or over here ?

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?