S3 Exam Revision Page3

S3 Exam Revision Page3

Assessment

Flashcard

Created by

H Gillani

Computers

9th Grade

Hard

Student preview

quiz-placeholder

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!")

Explore all questions with a free account

or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?