Sequence and selection

Sequence and selection

9th - 10th Grade

11 Qs

quiz-placeholder

Similar activities

ENCRYPTION AND CYBERCRIME

ENCRYPTION AND CYBERCRIME

7th - 10th Grade

15 Qs

IC3 GS6 Level 1 Domain 2 Lesson 1

IC3 GS6 Level 1 Domain 2 Lesson 1

6th Grade - University

15 Qs

Edexcel GCSE CS Topic 1  - Pseudocode

Edexcel GCSE CS Topic 1 - Pseudocode

10th Grade

16 Qs

Internet Safety - South High

Internet Safety - South High

3rd - 12th Grade

8 Qs

Passwords

Passwords

8th - 11th Grade

14 Qs

String manipulation

String manipulation

10th Grade

16 Qs

Algorithm

Algorithm

10th - 11th Grade

15 Qs

Code.org - Unit 6 Review

Code.org - Unit 6 Review

9th - 12th Grade

15 Qs

Sequence and selection

Sequence and selection

Assessment

Quiz

Computers

9th - 10th Grade

Hard

Created by

Ed Smith

Used 2+ times

FREE Resource

11 questions

Show all answers

1.

FILL IN THE BLANK QUESTION

2 mins • 1 pt

Media Image

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

Media Image

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

Media Image

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

Media Image

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

Media Image

e) What does line 16 do?

6.

FILL IN THE BLANK QUESTION

3 mins • 3 pts

Media Image

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

Media Image

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?