Feel free to use or edit a copy
includes Teacher and Student dashboards
Measures 2 skills from
Measures 2 skills from
With a free account, teachers can
- edit the questions
- save a copy for later
- start a class game
- automatically assign follow-up activities based on students’ scores
- assign as homework
- share a link with colleagues
- print as a bubble sheet
13 questions
Show answers
- Q1What is an array?A large amount of data stored separately relating to each otherA large amount of data stored together relating to each other and it will be different data typesA large amount of data stored together relating to each other and it will be the same data typeA collection of variables separately storing data45s3.2.6.b
- Q2What is the correct line of code to create an array of coin flips?coin == ["heads", "heads", "tails", "heads", "tails", "tails"]coin =<["heads", "heads", "tails", "heads", "tails", "tails"]coin <-- ["heads", "heads", "tails", "heads", "tails", "tails"]coin[0]45s3.2.6.b
- Q3What is the difference between an array and 2d array?An array can only store one data type, whereas a 2D array can store multiple data typesAn array is a list of lists and be organised in a grid with rows and columns. Whereas, a 2D array is a list of data and it can be organised in a rowAn array is a list of data and it can be organised in a row, whereas a 2d array is a list of lists and be organised in a grid with rows and columnsAn array can store multiple data types, whereas a 2D array can only store one data type60s3.2.6.b
- Q4Which line of code will output the first element in the array?OUTPUT names-[1]OUTPUT names[0]OUTPUT names[1]OUTPUT names45s3.2.6.b
- Q5Which line of code will output the last element in the array?OUTPUT names[last]OUTPUT namesOUTPUT names[8]OUTPUT names[-1]45s3.2.6.b
- Q6What is the correct line of code to add True to the array?coinFlip[0] <-- FALSEcoinFlip[0] FALSEcoinFlip[0] <-- TRUEcoinFlip[] <-- FALSE45s3.2.6.b
- Q7What is the purpose of this code?This program is using a for loop to add all of the times together which are stored in an arrayThis program is using a for loop to add all of the times together which are stored in an variableThis program is using a while loop to add all of the times together which are stored in an arrayThis will output every element in the array60s3.2.6.b
- Q8What is the correct piece of a code to complete the program?averageScore <-- averageScore + studentScores[i]averageScore <-- averageScore + studentScores[0]averageScore <-- averageScore - studentScores[i]averageScore <-- studentScores[i] - studentScores[i]60s3.2.6.b
- Q9Which line of code will successfully create this 2D array in pseudocode?runners <-- [ 1.8, 2.0, 5.0, 2.5, 1.0, 3.0, 6.4, 0.5, 1.2]runners <-- [ [1.8, 2.5, 6.4], [2.0, 1.0, 0.5], [5.0, 3.0, 1.2] ]runners <-- [ [1.8, 2.0, 5.0], [2.5, 1.0, 3.0], [6.4, 0.5, 1.2]]runners <-- [ 1.8, 2.0, 5.0], [2.5, 1.0, 3.0], [6.4, 0.5, 1.2]60s3.2.6.b
- Q10Which time is going to be outputted with runners[0,1] ?2.51.22.06.460s3.2.6.b
- Q11Which time is going to be outputted with runners[2,1] ?6.40.53.01.260s3.2.6.b
- Q12Which line of code will replace runner 1, lap 1 with a new time of 1.5?runners[0,1] <-- 1.5runners[1,1] <-- 1.5runners[1,0] <-- 1.5runners[0,0] <-- 1.560s3.2.6.b
- Q13What is the correct line of code to complete this program?totalTime <-- totalTime + runners[j]totalTime <-- totalTime + runners[i]totalTime <-- totalTime + runners[i][j]totalTime <-- runners[i][j]60s3.2.6.a