Locking a device screen

Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.

Locking a device screen

Name:
Date:
Class:

Quick Questions

Shade in the A or B circle for each question.

1. You put your tablet down to get a snack. What should you do first?
A Leave it open so it is ready when you get back
B Lock the screen so no one else can use it
2. Which statement about a screen lock is true?
A It needs a passcode, passphrase or fingerprint to open the device
B It lets anyone open the device by tapping the screen
3. Your friend asks for your passcode so they can play a game on your phone. What is the safe choice?
A Keep your passcode private and say no politely
B Tell them, because they are your friend
4. Which one is a screen lock that uses your body?
A Wallpaper picture
B Fingerprint or face unlock
5. Which passcode is the better choice for a screen lock?
A A passcode that is hard to guess and that you keep to yourself
B 1234 because it is easy to remember

Match the Pairs

Draw a line connecting each item on the left to its match on the right.

Left columnRight column
1screen lock AThe screen is locked after leaving the desk. It should be locked before you walk away, or someone could use the device first.
2fingerprint unlock BA lock that needs a passcode, passphrase or fingerprint to open your device, so other people cannot use it when you walk away.
3Lock your screen as soon as you walk away from your device Clock_screen() # before leaving the desk
4Keep your passcode secret and do not share it with friends Dpasscode = "private"
5passcode = "1234" share(passcode, "friend") EOpens your device by checking your own fingerprint, so only you can get in.
6leave_desk() lock_screen() FThe passcode is shared with a friend. A screen lock only works if the passcode stays private, so do not share it.

Definitions

screen lock

Fill in the Blanks

Complete each line of code by filling in the missing parts.

1.
IF walkingAway THEN __________() END IF
2.
IF friendAsksForPasscode THEN sharePasscode ← _____
3.
IF fingerprintMatches THEN unlockDevice() ____ keepLocked()
4.
IF fingerprintMatches __ faceMatches THEN unlockDevice()
5.
IF typedCode _ savedPasscode THEN unlockDevice() ELSE keepLocked()

Spot the Error

Shade in the letter of the line that contains an error.

Question 1
A IF I leave my tablet
B press the lock button
C tell my mate my passcode
D END IF
Question 2
A SET unlock TO fingerprint
B SET lock_time TO never
C IF screen idle for lock_time
D lock the screen
Question 3
A SET passcode TO my birthday
B SHOW passcode to nobody
C LOCK screen WITH passcode
Question 4
A SET unlock TO face_or_finger
B IF face matches owner
C unlock the phone
D ELSE unlock the phone anyway
Question 5
A IF I finish using my laptop
B close the lid or press lock
C screen stays open for anyone
D END IF

Answer Key

Locking a device screen
Section A: Quick Questions
Q1
B — Lock the screen so no one else can use it
Q2
A — It needs a passcode, passphrase or fingerprint to open the device
Q3
A — Keep your passcode private and say no politely
Q4
B — Fingerprint or face unlock
Q5
A — A passcode that is hard to guess and that you keep to yourself
Section B: Match the Pairs
Q1
screen lock → A lock that needs a passcode, passphrase or fingerprint to open your device, so other people cannot use it when you walk away.
Q2
fingerprint unlock → Opens your device by checking your own fingerprint, so only you can get in.
Q3
Lock your screen as soon as you walk away from your device → lock_screen() # before leaving the desk
Q4
Keep your passcode secret and do not share it with friends → passcode = "private"
Q5
passcode = "1234" share(passcode, "friend") → The passcode is shared with a friend. A screen lock only works if the passcode stays private, so do not share it.
Q6
leave_desk() lock_screen() → The screen is locked after leaving the desk. It should be locked before you walk away, or someone could use the device first.
Section C: Definitions
Q1
screen lock — A lock that needs a passcode, passphrase or fingerprint to open your device, so other people cannot use it when you walk away from it.
Section D: Fill in the Blanks
Q1
IF walkingAway THEN lockScreen() END IF
Q2
IF friendAsksForPasscode THEN sharePasscode ← FALSE
Q3
IF fingerprintMatches THEN unlockDevice() ELSE keepLocked()
Q4
IF fingerprintMatches OR faceMatches THEN unlockDevice()
Q5
IF typedCode = savedPasscode THEN unlockDevice() ELSE keepLocked()
Section E: Spot the Error
Q1
C — A passcode must stay private. Telling a friend means they could unlock your tablet. It should say to keep my passcode secret.
Q2
B — If the lock time is never, the screen will not lock by itself and anyone can use the device. It should be a short time, like 30 seconds.
Q3
A — A birthday is easy for other people to guess. The passcode should be hard to guess.
Q4
D — If the face does not match the owner, the phone must stay locked. Unlocking it anyway defeats the screen lock.
Q5
C — A screen lock should ask for the passcode so other people cannot use the laptop. It should not stay open for anyone.