Font size
WorksheetsProgramming basics
Total questions: 15
Worksheet time: 13mins
How many basic data types are there?
3
4
as many as you want
data types?
Which is the odd one out?
IF
WHILE
FOR
DO...UNTILL
You want to show some code if the age is over 18, which is the correct command? (c#)
IF (age < 18)
IF (age >= 18)
IF age > 18
IF (age > "18")
IF (age > 18)
This is an array of 6 elements, called scores, which is the correct reference to access the element with -16 in it.
scores[-16]
scores[3]
scores[4]
scores(5)
You need an variable to act as a counter, what would be the best data type to use?
Real/Float
Integer
String
Bool
You are looking for a specific card in a deck of cards, which of the standard algorithms will you use?
Quick search
Binary search
Bubble search
Linear search
i++; is the same as writing:
i = i +1;
i = i * i;
i = i - 1;
GOTOWHILE;
What sort of datatype would you use to store someones name?
String
Int
float
bool
You have been given a problem to write the code for, what do you do?
Use computational thinking to abstract the relevant information, decompose the problem, look for patterns and then design the algorithm.
Go wibble wibble wibble, this is too hard, someone do it for me!!
Have a quick read of the problem, and then code bash a solution out.
look blankly at the teacher, blink a few times, and then turn back to your friend and continue the conversation.
What do you think this bit of Python code does?
Ah-Ha! Its a sort algorithm
I'm not fooled by your tricks, its a search algorithm
I know its a security protocol program
Netcode!
You have a tutorial session, should you attend it?
Nah, we never do anything useful
If i can be bothered
Maybe, see how i feel.
yes.
what will x and y equal?
X is 6, y is 42
X is 42, y is 42
x is 125, y is 100
x is 25, y is 25
Quizziz are better than Kahoots?
sure are
Most definitely
Kahoot? bah we don't want those.
I never want to do Kahoots ever again!!!
No Kahoots are better!!
Test data falling outside the expected range is called?
Normal test data
Abnormal test data
extreme test data
How often should you comment your code?
comment code??
every line
enough that its clear what a section of code should be doing
