Bird
Raised Fist0
Intro to Computingfundamentals~10 mins

Privacy settings and data protection in Intro to Computing - Interactive Code Practice

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

Complete the code to set a privacy setting to 'private'.

Intro to Computing
user_profile['privacy'] = '[1]'
Drag options to blanks, or click blank then click option'
Aopen
Bpublic
Cprivate
Dshared
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing 'public' exposes data to everyone.
2fill in blank
medium

Complete the code to check if data encryption is enabled.

Intro to Computing
if settings['encryption'] == [1]:
    print('Data is secure')
Drag options to blanks, or click blank then click option'
A'disabled'
B'unknown'
C'pending'
D'enabled'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'disabled' will not secure the data.
3fill in blank
hard

Fix the error in the code to properly delete user data.

Intro to Computing
if user_consent == [1]:
    delete_data(user_id)
Drag options to blanks, or click blank then click option'
ATrue
BNone
CFalse
D0
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'False' deletes data without consent.
4fill in blank
hard

Fill both blanks to filter data for users with consent and encrypt it.

Intro to Computing
filtered_data = {user: data for user, data in all_data.items() if data['consent'] == [1]
encrypted_data = encrypt([2])
Drag options to blanks, or click blank then click option'
ATrue
BFalse
Cfiltered_data
Dall_data
Attempts:
3 left
💡 Hint
Common Mistakes
Encrypting all data instead of filtered data.
5fill in blank
hard

Fill both blanks to create a dictionary of users with encrypted emails who consented.

Intro to Computing
secure_users = {user: [1] for user, info in users.items() if info['consent'] == [2] }
Drag options to blanks, or click blank then click option'
A{
Bencrypt(info['email'])
CTrue
D[
Attempts:
3 left
💡 Hint
Common Mistakes
Using square brackets instead of braces for dictionary.

Practice

(1/5)
1.

What is the main purpose of privacy settings on a social media account?

easy
A. To control who can see your personal information
B. To speed up your internet connection
C. To delete your account automatically
D. To change the color of the website

Solution

  1. Step 1: Understand what privacy settings do

    Privacy settings allow users to decide who can view their personal details and posts.
  2. Step 2: Compare options to the purpose

    Only To control who can see your personal information matches the purpose of controlling visibility of personal information.
  3. Final Answer:

    To control who can see your personal information -> Option A
  4. Quick Check:

    Privacy settings = control visibility [OK]
Hint: Privacy settings control visibility of your info [OK]
Common Mistakes:
  • Confusing privacy settings with performance features
  • Thinking privacy settings delete accounts
  • Assuming privacy settings change website appearance
2.

Which of the following is the correct way to create a strong password?

Options:
A) 123456
B) password
C) abcdefg
D) P@ssw0rd!2024
easy
A. P@ssw0rd!2024
B. password
C. abcdefg
D. 123456

Solution

  1. Step 1: Identify characteristics of a strong password

    A strong password uses a mix of letters, numbers, and symbols to be hard to guess.
  2. Step 2: Evaluate each option

    P@ssw0rd!2024 contains uppercase, lowercase, numbers, and symbols, making it strong; others are simple and easy to guess.
  3. Final Answer:

    P@ssw0rd!2024 -> Option A
  4. Quick Check:

    Strong password = mix of characters [OK]
Hint: Strong passwords mix letters, numbers, symbols [OK]
Common Mistakes:
  • Using simple or common words as passwords
  • Ignoring the use of symbols or numbers
  • Choosing passwords that are easy to guess
3.

Consider this flowchart for data protection steps:

What is the correct order of actions to protect your data according to the flowchart?

medium
A. Update Privacy Settings, Set Password, Enable 2FA
B. Enable 2FA, Set Password, Update Privacy Settings
C. Set Password, Enable 2FA, Update Privacy Settings
D. Set Password, Update Privacy Settings, Enable 2FA

Solution

  1. Step 1: Read the flowchart steps in order

    The flowchart shows the sequence: Start -> Set Password -> Enable 2FA -> Update Privacy Settings -> End.
  2. Step 2: Match the sequence to options

    Only Set Password, Enable 2FA, Update Privacy Settings matches the exact order from the flowchart.
  3. Final Answer:

    Set Password, Enable 2FA, Update Privacy Settings -> Option C
  4. Quick Check:

    Flowchart order = A [OK]
Hint: Follow flowchart arrows step-by-step [OK]
Common Mistakes:
  • Mixing up the order of steps
  • Ignoring the flowchart direction
  • Assuming steps can be done in any order
4.

Look at this code snippet for setting a password and enabling privacy:

password = "mypassword"
if len(password) >= 8:
    privacy_enabled = True
else
    privacy_enabled = False
print(privacy_enabled)

What is the error in this code?

medium
A. Password length check is incorrect
B. Print statement syntax is wrong
C. Variable privacy_enabled is not defined
D. Missing colon after else statement

Solution

  1. Step 1: Check syntax of if-else statements

    In Python, the else statement must end with a colon (:).
  2. Step 2: Identify the missing colon

    The else line is missing the colon, causing a syntax error.
  3. Final Answer:

    Missing colon after else statement -> Option D
  4. Quick Check:

    Else needs colon (:) [OK]
Hint: Check colons after if and else lines [OK]
Common Mistakes:
  • Forgetting colons after else
  • Thinking variable is undefined
  • Misreading print statement syntax
5.

You want to protect your online account data. Which combination of actions below best improves your data protection?

  • 1. Use a strong password
  • 2. Share your password with friends
  • 3. Enable two-factor authentication (2FA)
  • 4. Keep your privacy settings public
  • 5. Regularly update your password
hard
A. 1, 2, and 4 only
B. 1, 3, and 5 only
C. 2 and 4 only
D. 3 and 4 only

Solution

  1. Step 1: Identify actions that protect data

    Using strong passwords, enabling 2FA, and updating passwords regularly improve security.
  2. Step 2: Exclude risky actions

    Sharing passwords and keeping privacy settings public reduce protection and increase risk.
  3. Final Answer:

    1, 3, and 5 only -> Option B
  4. Quick Check:

    Safe actions = 1, 3, 5 [OK]
Hint: Choose actions that increase security, avoid sharing info [OK]
Common Mistakes:
  • Including sharing passwords as safe
  • Thinking public privacy settings protect data
  • Ignoring the importance of updating passwords
Recommended

Ready to prove it?

Pass the test and this pattern moves unknown strong while earning +1 Grip toward your certificate.

10 questions~5 mineasy hard