Feel free to use or edit a copy
includes Teacher and Student dashboards
Measures 1 skill from
Measures 1 skill from
Track each student's skills and progress in your Mastery dashboards
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
10 questions
Show answers
- Q1What is meant by record?A record is an example of an arrayRecords are the same as table namesRecords store the value of all variablesRecords are a way to put together different items of data45s3.2.6.c
- Q2How would you create a new record for books?NEW Book title author yearPublished genreBook title author yearPublished genreRECORD Book title author yearPublished genre ENDRECORDtitle = [] author = [] yearPublished = [] genre = []60s3.2.6.c
- Q3How can you create a new record for a book?book1 <-- Book("Computer Science", "Bloggs", "2012", "Computer Science")book1 <-- new BookBook <-- Book("Computer Science", "Bloggs", "2012", "Computer Science")Book("Computer Science", "Bloggs", "2012", "Computer Science")60s3.2.6.c
- Q4How would you output the title of the record below? book1 <-- Book("Computer Science", "Bloggs", "2012", "Computer Science")OUTPUT book1.titlebook1.title <-- USERINPUTbook1.titleOUTPUI book160s3.2.6.c
- Q5What is the purpose of this program?It will check to see whether a book exists.If book 1 is published sooner, then it will output book 1 is older.It will compare the titles for both books.If book 1 is published sooner, then it will output book 2 is older.60s3.2.6.c
- Q6Which code would be used to create separate records be held in arrays?Book("Computer Science", "Bloggs", "2012", "Computer Science")myBooks[0] ← Book()myBooks ← Book("Computer Science", "Bloggs", "2012", "Computer Science")myBooks[0] ← Book("Computer Science", "Bloggs", "2012", "Computer Science")60s3.2.6.c
- Q7Why do we used records?It's more efficient because you don't need to create multiple arraysIt is slower to execute than an arrayIt does not use any additional space to store informationIt is more secure than using an array45s3.2.6.c
- Q8How would you set up a new record for a board game?boardGame <-- title numOfPlayers minAge genreRECORD boardGame title numOfPlayers minAge genre ENDRECORDARRAY boardGame title numOfPlayers minAge genreRECORD boardGame ENDRECORD60s3.2.6.c
- Q9Which program will create a new board game called "Monopoly"?game1 <--("Monopoly")boardGame("Monopoly", 4, 5, "family")game1 <-- boardGame("Monopoly", 4, 5, "family")boardGame(")60s3.2.6.c
- Q10Which code will create a program that will check if game1 needs at least 4 players. If it needs 4 players, output to the user that more people are needed?IF game1.numOfPlayers >= 4 THEN OUTPUT "You need to find more players ELSE OUTPUT "You can start the game"IF game1.numOfPlayers <= 4 THEN OUTPUT "You need to find more players ELSE OUTPUT "You can start the game"IF game1 >= 4 THEN OUTPUT "You need to find more players ELSE OUTPUT "You can start the game"IF game1 <= 4 THEN OUTPUT "You need to find more players ELSE OUTPUT "You can start the game"120s3.2.6.c
