N5 Computing Science: Standard Algorithms

Quiz
•
Computers
•
9th Grade
•
Medium
Calum Gordon
Used 9+ times
FREE Resource
26 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Which are the standard algorithms you need to know about for N5 Computing Science? Choose all that apply ...
Input validation
Traversing 1D array
Running total in a loop
Linear search
Counting occurrences of an item
Answer explanation
These are the only 3 algorithms you will have questions about in the exam.
2.
MULTIPLE SELECT QUESTION
45 sec • 5 pts
Choose all the valid methods of input validation ...
Range check
Length check
Presence check
Type check
Restricted choice
Answer explanation
Therere various ways of carrying out input validation - but they all try to make sure that the input data makes 'sense'.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which would be the best choice of loop for an input validation algorithm?
conditional loop
fixed loop over a range of integers
fixed loop over a data structure
Answer explanation
A conditional loop would be the best choice because it is impossible to predict how many attempts the user might take before entering 'sensible' data.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which would be the best choice of loop for an algorithm to traverse a 1-D array?
conditional loop
fixed loop over a range of integers
fixed loop over a data structure
Answer explanation
Because the loop should process ALL the items in the 1-D array then a loop over each item in the data structures would be the best option.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which would be the best choice of loop for an algorithm to keep a running total?
conditional loop
fixed loop over a range of integers
fixed loop over a data structure
could be any of these loops - none is better than thge others
Answer explanation
Keeping a running total could equally be achieved using any type of loop.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which N5 standard algorithm is this loop from?
Iterating over a 1-D array
Keeping a running total
Input validation
Answer explanation
This loop prints the square of each item in the array.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which N5 standard algorithm is this loop from?
Iterating over a 1-D array
Keeping a running total
Input validation
Answer explanation
This loop increments a total variable until the input is 0.
Create a free account and access millions of resources
Similar Resources on Wayground
25 questions
Introduction to Programming

Quiz
•
9th - 12th Grade
22 questions
Year 9 computing mixed questions

Quiz
•
9th - 11th Grade
23 questions
Intro to Algorithms

Quiz
•
9th - 12th Grade
21 questions
Programming Basics

Quiz
•
9th - 12th Grade
25 questions
Java Review

Quiz
•
9th Grade - University
27 questions
Python Loops

Quiz
•
9th - 12th Grade
25 questions
CS8 Final Review #1

Quiz
•
6th Grade - University
22 questions
BJC Unit 1 Practice Quizizz

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
24 questions
Scientific method and variables review

Quiz
•
9th Grade
10 questions
Characteristics of Life

Quiz
•
9th - 10th Grade
19 questions
Mental Health Vocabulary Pre-test

Quiz
•
9th Grade
14 questions
Points, Lines, Planes

Quiz
•
9th Grade