0
0
Intro to Computingfundamentals~10 mins

Why cybersecurity is everyone's responsibility in Intro to Computing - Test Your Understanding

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to print a simple cybersecurity reminder.

Intro to Computing
print('Cybersecurity is [1] responsibility!')
Drag options to blanks, or click blank then click option'
Ano one's
Beveryone's
Conly IT's
Djust hackers'
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing 'only IT's' assumes only IT staff are responsible.
2fill in blank
medium

Complete the code to check if a password is strong enough.

Intro to Computing
if len(password) [1] 8:
    print('Password is strong enough')
Drag options to blanks, or click blank then click option'
A<
B==
C>=
D!=
Attempts:
3 left
💡 Hint
Common Mistakes
Using '<' would accept too short passwords.
3fill in blank
hard

Fix the error in the code that warns about suspicious emails.

Intro to Computing
if email_subject [1] 'Urgent action required':
    print('Be careful! This might be a phishing attempt.')
Drag options to blanks, or click blank then click option'
A==
B=
C!=
D=>
Attempts:
3 left
💡 Hint
Common Mistakes
Using '=' instead of '==' causes syntax errors.
4fill in blank
hard

Fill both blanks to create a dictionary comprehension that maps users to their password lengths if length is at least 8.

Intro to Computing
{user: len(password) for user, password in user_passwords.items() if len(password) [1] 8 and user [2] 'admin'}
Drag options to blanks, or click blank then click option'
A>=
B!=
C==
D<
Attempts:
3 left
💡 Hint
Common Mistakes
Using '==' instead of '!=' includes 'admin' user.
5fill in blank
hard

Fill all three blanks to create a dictionary comprehension that maps usernames in uppercase to their passwords if password length is greater than 10.

Intro to Computing
{ [1]: [2] for user, password in credentials.items() if len(password) [3] 10 }
Drag options to blanks, or click blank then click option'
Auser.upper()
Bpassword
C>
Duser.lower()
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'user.lower()' instead of 'user.upper()' changes the key format.