NEW
Font size
Worksheets12 CSC ATAR - programming skills and concepts
Total questions: 20
Worksheet time: 10mins
for i in range(5):
print(i)
This is an example of...
Sequence
Selection
Iteration (pre-test)
Iteration (post-test)
loop = 0
while True:
print("Hi there")
loop += 1
if loop > 5:
break
This is an example of...
Sequence
Selection
Iteration (pre-test)
Iteration (post-test)
greeting = f"Hi there, {name}."
Variable 'greeting' holds data of type...
String
Integer
Float
Boolean
thinking_clearly = True
Variable 'thinking_clearly' holds data of type...
String
Integer
Float
Boolean
The elements in a 2D array are accessed using the row and column indices, whereas in a 1D array, only a single index is used.
True
False
A 2D array is an array of arrays.
True
False
my_friends = ['Tim', 'Sally', 'Ahnold']
This data structure is a ...
List
Tuple
Dictionary
Struct
my_friends = ('Tim', 'Sally', 'Ahnold')
This data structure is a ...
List
Tuple
Dictionary
Struct
my_friends = {'Tim': 'hiker', 'Sally': 'swimmer', 'Ahnold': 'ranger'}
This data structure is a ...
List
Tuple
Dictionary
Struct
Variables with global scope are accessible ...
From all code blocks
Within a single code block
Variables with local scope are accessible ...
From all code blocks
Within a single code block
print(True AND False)
This code would output...
Nothing
True
False
False
This code would output...
Nothing
True
False
print(True OR False)
This code would output...
Nothing
True
False
print(NOT(True OR False))
This code would output...
Nothing
True
False
print(True == False)
This code would output...
Nothing
True
False
Attempting division by zero is a ...
Syntax error
Logic error
Runtime error
An integer overflowing is a ...
Syntax error
Logic error
Runtime error
Misspelling a Python keyword is a ...
Syntax error
Logic error
Runtime error
When your program does not operate as expected, you have a ...
Syntax error
Logic error
Runtime error
