

S3 Exam Revision Page3
Flashcard
•
Computers
•
9th Grade
•
Practice Problem
•
Hard
H Gillani
FREE Resource
Student preview

10 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Python print statement
Back
print("Hello World")
2.
FLASHCARD QUESTION
Front
Python input example
Back
x = input('Enter your name:') print('Hello, ' + x)
3.
FLASHCARD QUESTION
Front
Basic if statement
Back
a = 33
b = 200
if b > a:
print("b is greater than a")
4.
FLASHCARD QUESTION
Front
Using elif in Python
Back
a = 33
b = 33
if b > a:
print("b is greater than a")
elif a == b:
print("a and b are equal")
5.
FLASHCARD QUESTION
Front
Using else in Python
Back
a = 200
b = 33
if b > a:
print("b is greater than a")
elif a == b:
print("a and b are equal")
else:
print("a is greater than b")
6.
FLASHCARD QUESTION
Front
Nested if statement
Back
x = 41 if x > 10:
print("Above ten,") if x > 20:
print("and also above 20!")
else:
print("but not above 20.")
7.
FLASHCARD QUESTION
Front
Fixed loop example
Back
for x in range(6):
print("I love Computing Science!")
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Microsoft
or continue with
%20(1).png)
Apple
Others
Already have an account?