Sequence and selection

Quiz
•
Computers
•
9th - 10th Grade
•
Hard
Ed Smith
Used 2+ times
FREE Resource
11 questions
Show all answers
1.
FILL IN THE BLANK QUESTION
2 mins • 1 pt
1. The following pseudocode tests how quickly a user can type a given sentence without making any mistakes.
The statement time.clockTick() returns the number of seconds elapsed since the program started followed by the number of characters in the sentence typed.
What type of variable is each of the following?
a) mistakeMade
2.
FILL IN THE BLANK QUESTION
2 mins • 1 pt
1. The following pseudocode tests how quickly a user can type a given sentence without making any mistakes.
The statement time.clockTick() returns the number of seconds elapsed since the program started followed by the number of characters in the sentence typed.
What type of variable is each of the following?
b) n
3.
FILL IN THE BLANK QUESTION
2 mins • 1 pt
1. The following pseudocode tests how quickly a user can type a given sentence without making any mistakes.
The statement time.clockTick() returns the number of seconds elapsed since the program started followed by the number of characters in the sentence typed.
What type of variable is each of the following?
c) totalTime
4.
FILL IN THE BLANK QUESTION
2 mins • 1 pt
1. The following pseudocode tests how quickly a user can type a given sentence without making any mistakes.
The statement time.clockTick() returns the number of seconds elapsed since the program started followed by the number of characters in the sentence typed.
What type of variable is each of the following?
d) sentence
5.
FILL IN THE BLANK QUESTION
3 mins • 2 pts
e) What does line 16 do?
6.
FILL IN THE BLANK QUESTION
3 mins • 3 pts
f) Alter the program so that instead of storing the sentence “The quick brown fox jumped over the lazy dog”, the user can enter the sentence on which they will be timed.
7.
FILL IN THE BLANK QUESTION
1 min • 1 pt
2. A customer entering security details when logging in to a bank website is asked to enter three random characters from their password, which must be at least 8 characters long and contain no spaces. Assume that in this case the password is HC&dt2016.
The letters are then compared to those in the password held on file for that customer. Kelly has a first attempt at writing pseudocode for the algorithm.
(a) What value is assigned to numChars at line 2?
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
AQA Computer Science GCSE - 3.1 Fundamentals of algorithms

Quiz
•
10th - 12th Grade
15 questions
DETECTING AND PREVENTING CYBER SECURITY THREATS

Quiz
•
9th - 12th Grade
9 questions
Algorithms 2

Quiz
•
9th - 12th Grade
10 questions
10 CS // Pseudocode

Quiz
•
9th - 11th Grade
12 questions
ICT Terms

Quiz
•
7th - 10th Grade
11 questions
CC 6:14 - 6:19 Terms

Quiz
•
9th Grade
10 questions
CSP 1.3.4 1.3.5 Branching and Input/Strings

Quiz
•
10th - 12th Grade
9 questions
47. Programming 1 : User Input & Display Output

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

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

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Analog vs Digital

Quiz
•
9th - 12th Grade
10 questions
Exploring Cybersecurity Techniques and Threats

Interactive video
•
6th - 10th Grade
10 questions
Understanding the Internet and Data Transmission

Interactive video
•
7th - 12th Grade