OS function: managing user accounts

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

OS function: managing user accounts

Name:
Date:
Class:

Quick Questions

Shade in the A or B circle for each question.

1. Which statement best describes the OS function of managing user accounts?
A The OS creates, stores and controls accounts so each user logs in and gets their own settings and files
B The OS lets all users share one login so they see the same settings and files
2. Which person normally creates and deletes user accounts on a computer?
A A standard user
B An administrator
3. A student logs in with their own username and password. What does the OS do next?
A It loads that student's own settings and files
B It loads the settings and files of the last person who used the computer
4. Why does the OS ask for a username and a password at login?
A To make the computer start up faster
B To identify the user and check they are allowed to use that account
5. Which user can usually install new software and change system settings?
A An administrator
B A standard user

Match the Pairs

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

Left columnRight column
1Create account: username = "sam_k", password set AThe OS sets up a new user account so a person can log in with their own username and password.
2Delete account: username = "old_user" BIF username = stored_name AND password = stored_pass THEN open_account()
3The OS checks a username and password at login before letting the user in to their own account. CMost users should be standard users. Giving all users administrator rights lets anyone change settings, delete accounts or harm the system.
4A standard user has limited rights, while an administrator can change settings and manage other accounts. DEach user should have their own account. Sharing one account means no separate settings, files or access rights, and no privacy.
5Two students share one account called "student" so their files are kept together EIF account_type = "administrator" THEN allow_manage_accounts()
6Give every user administrator rights so nobody is blocked from anything FThe OS removes a user account, so that person can no longer log in and their access ends.

Definitions

user account management

Fill in the Blanks

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

1.
OS._____________("maya", "Pa55word")
2.
OS._____________("maya")
3.
IF username = savedUser ___ password = savedPass THEN OS.openDesktop(username)
4.
IF accountType = _____ THEN allowInstallSoftware() ENDIF
5.
username = input("Username: ") OS.loadSettings(________) OS.openFiles(username)

Spot the Error

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

Question 1
A INPUT username
B INPUT password
C IF password = username THEN
D LOAD userSettings
E ENDIF
Question 2
A INPUT newName
B INPUT newPassword
C CREATE account(newName)
D DELETE account(newName)
Question 3
A CREATE account(oldUser)
B REMOVE oldUser settings
C REMOVE oldUser files
D UPDATE account list
Question 4
A INPUT user
B IF type = 'standard' THEN
C ALLOW installing software
D ELSE
E DENY installing software
F ENDIF
Question 5
A INPUT username
B LOAD settings OF username
C LOAD files OF previousUser
D SHOW desktop

Answer Key

OS function: managing user accounts
Section A: Quick Questions
Q1
A — The OS creates, stores and controls accounts so each user logs in and gets their own settings and files
Q2
B — An administrator
Q3
A — It loads that student's own settings and files
Q4
B — To identify the user and check they are allowed to use that account
Q5
A — An administrator
Section B: Match the Pairs
Q1
Create account: username = "sam_k", password set → The OS sets up a new user account so a person can log in with their own username and password.
Q2
Delete account: username = "old_user" → The OS removes a user account, so that person can no longer log in and their access ends.
Q3
The OS checks a username and password at login before letting the user in to their own account. → IF username = stored_name AND password = stored_pass THEN open_account()
Q4
A standard user has limited rights, while an administrator can change settings and manage other accounts. → IF account_type = "administrator" THEN allow_manage_accounts()
Q5
Two students share one account called "student" so their files are kept together → Each user should have their own account. Sharing one account means no separate settings, files or access rights, and no privacy.
Q6
Give every user administrator rights so nobody is blocked from anything → Most users should be standard users. Giving all users administrator rights lets anyone change settings, delete accounts or harm the system.
Section C: Definitions
Q1
user account management — An OS function that creates, stores and controls user accounts, so each user logs in with a username and password and gets their own settings, files and access rights.
Section D: Fill in the Blanks
Q1
OS.createAccount("maya", "Pa55word")
Q2
OS.deleteAccount("maya")
Q3
IF username = savedUser AND password = savedPass THEN OS.openDesktop(username)
Q4
IF accountType = ADMIN THEN allowInstallSoftware() ENDIF
Q5
username = input("Username: ") OS.loadSettings(username) OS.openFiles(username)
Section E: Spot the Error
Q1
C — The OS must compare the typed password with the password stored for the account, not with the username. It should be IF password = storedPass THEN.
Q2
D — The program has just created the account, so it must store the password in it. Deleting the account removes it. Line 4 should be STORE newPassword IN account.
Q3
A — The program is removing an old user, so the first step is to delete the account, not create it. It should be DELETE account(oldUser).
Q4
B — Only an administrator account should be allowed to install software. The test must check for 'admin', not 'standard'. It should be IF type = 'admin' THEN.
Q5
C — Each user gets their own files. The OS must load the files of the user who has just logged in, not those of a previous user. It should be LOAD files OF username.