Computer Programming Practice Tests

These Grade 10 Additional Subjects practice tests introduce algorithms, variables, data types, input and output, conditionals, loops, functions, collections, debugging, testing, efficiency, cybersecurity, privacy, accessibility, and ethical programming.

Skills covered

  • Explaining algorithms, variables, data types, syntax, input, output, comments, abstraction, and operators
  • Tracing conditionals, for loops, while loops, Boolean expressions, nesting, and stopping conditions
  • Using functions, parameters, arguments, return values, lists, indexes, dictionaries, strings, and scope
  • Distinguishing syntax, runtime, and logic errors and applying testing, decomposition, pseudocode, readability, and efficiency
  • Understanding personal data, encryption, authentication, authorization, algorithmic bias, accessibility, open-source software, and phishing

How to use these practice tests

Trace the program one step at a time. Identify the data type and control structure, then check the expected output, edge cases, and security or ethical effects when the question involves real users.

For more Grade 10 Additional Subjects practice, return to the Grade 10 Additional Subjects category.

5. Test

Grade 10 Computer Programming Practice Tests

Practice Grade 10 Additional Subjects questions about algorithms, variables, data types, control flow, functions, data structures, debugging, efficiency, security, privacy, and ethical programming.

Choose the best answer. Trace program logic, distinguish errors, identify data and control structures, and consider security, privacy, accessibility, and ethical impact.

10 Questions
0/10 Questions0 %
Correct 0
Incorrect 0
Unanswered 10
1. QuestionMultiple choice

What is personal data?

Please select an answer first.

Correct answer: A

The correct answer is Information that can identify or describe an individual.

  1. Identify the programming concept: Determine whether the question asks about an algorithm, data, control flow, a function, debugging, efficiency, security, or ethics.
  2. Trace the logic: Personal data can include names, identifiers, locations, contact details, or other information connected to a person.
  3. Check the conclusion: The correct answer is Information that can identify or describe an individual.

Personal data can include names, identifiers, locations, contact details, or other information connected to a person.

2. QuestionMultiple choice

Why is encryption used?

Please select an answer first.

Correct answer: B

The correct answer is To transform information so unauthorized people cannot easily read it..

  1. Identify the programming concept: Determine whether the question asks about an algorithm, data, control flow, a function, debugging, efficiency, security, or ethics.
  2. Trace the logic: Encryption protects data by encoding it so that only someone with the appropriate key or method can read it.
  3. Check the conclusion: The correct answer is To transform information so unauthorized people cannot easily read it..

Encryption protects data by encoding it so that only someone with the appropriate key or method can read it.

3. QuestionMultiple choice

What is authentication?

Please select an answer first.

Correct answer: C

The correct answer is Verifying who a user or system is.

  1. Identify the programming concept: Determine whether the question asks about an algorithm, data, control flow, a function, debugging, efficiency, security, or ethics.
  2. Trace the logic: Authentication checks identity, often with a password, token, biometric, or multiple factors.
  3. Check the conclusion: The correct answer is Verifying who a user or system is.

Authentication checks identity, often with a password, token, biometric, or multiple factors.

4. QuestionMultiple choice

What is authorization?

Please select an answer first.

Correct answer: D

The correct answer is Determining what an authenticated user or system is allowed to do.

  1. Identify the programming concept: Determine whether the question asks about an algorithm, data, control flow, a function, debugging, efficiency, security, or ethics.
  2. Trace the logic: Authorization assigns permissions after identity has been established.
  3. Check the conclusion: The correct answer is Determining what an authenticated user or system is allowed to do.

Authorization assigns permissions after identity has been established.

5. QuestionMultiple choice

What is algorithmic bias?

Please select an answer first.

Correct answer: A

The correct answer is A systematic unfair pattern in an automated system's results.

  1. Identify the programming concept: Determine whether the question asks about an algorithm, data, control flow, a function, debugging, efficiency, security, or ethics.
  2. Trace the logic: Bias can arise from data, design choices, assumptions, or unequal impacts on different groups.
  3. Check the conclusion: The correct answer is A systematic unfair pattern in an automated system's results.

Bias can arise from data, design choices, assumptions, or unequal impacts on different groups.

6. QuestionMultiple choice

Why is accessibility important in software design?

Please select an answer first.

Correct answer: B

The correct answer is It helps people with different abilities use and understand the technology..

  1. Identify the programming concept: Determine whether the question asks about an algorithm, data, control flow, a function, debugging, efficiency, security, or ethics.
  2. Trace the logic: Accessible design can include keyboard support, captions, readable contrast, alternative text, and clear interaction.
  3. Check the conclusion: The correct answer is It helps people with different abilities use and understand the technology..

Accessible design can include keyboard support, captions, readable contrast, alternative text, and clear interaction.

7. QuestionMultiple choice

What is open-source software?

Please select an answer first.

Correct answer: C

The correct answer is Software whose source code is available under terms that permit inspection or modification.

  1. Identify the programming concept: Determine whether the question asks about an algorithm, data, control flow, a function, debugging, efficiency, security, or ethics.
  2. Trace the logic: Open-source projects allow use, study, modification, or redistribution according to the project's license.
  3. Check the conclusion: The correct answer is Software whose source code is available under terms that permit inspection or modification.

Open-source projects allow use, study, modification, or redistribution according to the project's license.

8. QuestionMultiple choice

What is phishing?

Please select an answer first.

Correct answer: D

The correct answer is A deceptive attempt to obtain sensitive information by pretending to be a trusted source.

  1. Identify the programming concept: Determine whether the question asks about an algorithm, data, control flow, a function, debugging, efficiency, security, or ethics.
  2. Trace the logic: Phishing messages use social engineering to trick people into revealing passwords, payment details, or other information.
  3. Check the conclusion: The correct answer is A deceptive attempt to obtain sensitive information by pretending to be a trusted source.

Phishing messages use social engineering to trick people into revealing passwords, payment details, or other information.

9. QuestionMultiple choice

Why should programmers protect user privacy?

Please select an answer first.

Correct answer: A

The correct answer is Users should have control and reasonable protection over information collected about them..

  1. Identify the programming concept: Determine whether the question asks about an algorithm, data, control flow, a function, debugging, efficiency, security, or ethics.
  2. Trace the logic: Privacy-aware design limits unnecessary collection, explains use, protects data, and respects user rights and expectations.
  3. Check the conclusion: The correct answer is Users should have control and reasonable protection over information collected about them..

Privacy-aware design limits unnecessary collection, explains use, protects data, and respects user rights and expectations.

10. QuestionMultiple choice

What is a responsible programming practice?

Please select an answer first.

Correct answer: B

The correct answer is Test for security, protect data, document assumptions, and consider how different users may be affected..

  1. Identify the programming concept: Determine whether the question asks about an algorithm, data, control flow, a function, debugging, efficiency, security, or ethics.
  2. Trace the logic: Responsible software development combines technical quality with security, privacy, fairness, accessibility, and accountability.
  3. Check the conclusion: The correct answer is Test for security, protect data, document assumptions, and consider how different users may be affected..

Responsible software development combines technical quality with security, privacy, fairness, accessibility, and accountability.

Previous testNext test