Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
229 views2 pages

Beginner Coding Quiz

Worksheet for children to determine the output of simple if/else statements, using the Python programming language. Multiple choice answers.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
229 views2 pages

Beginner Coding Quiz

Worksheet for children to determine the output of simple if/else statements, using the Python programming language. Multiple choice answers.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Here is the code.

i f True :
print ( ” Hi ” )
else :
print ( ”Bye” )

What will the code above print?

”Hi” ”Bye”

Here is the code.

i f 4==4:
print ( ” Hi ” )
else :
print ( ”Bye” )

What will the code above print?

”Hi” ”Bye”

Here is the code.

i f 4==3:
print ( ” Hi ” )
else :
print ( ”Bye” )

What will the code above print?

”Hi” ”Bye”
Here is the code.

i f ” c a t ”==” c a t ” :
print ( ”Up” )
else :
print ( ”Down” )

What will the code above print?

”Up” ”Down”

Here is the code.

i f 4==1 + 1 :
print ( ”Cat” )
else :
print ( ”Dog” )

What will the code above print?

”Cat” ”Dog”

Here is the code.

i f True==F a l s e :
print ( 5 )
else :
print ( 4 )

What will the code above print?

5 4

You might also like