
AP CS Principles Exam
Quiz by Praise Apata
Feel free to use or edit a copy
includes Teacher and Student dashboards
Measure skillsfrom any curriculum
Measure skills
from any curriculum
Tag the questions with any skills you have. Your dashboard will track each student's mastery of each skill.
With a free account, teachers can
- edit the questions
- save a copy for later
- start a class game
- automatically assign follow-up activities based on students’ scores
- assign as homework
- share a link with colleagues
- print as a bubble sheet
25 questions
Show answers
- Q1Which of the following is an example of a computing innovation?BicycleRefrigeratorPencilSmartphone30s
- Q2How can diverse collaborative teams help reduce or eliminate bias?By excluding individuals with different backgrounds to maintain consistency.By bringing different perspectives and experiences, increasing objectivity and challenging groupthink.By encouraging conformity and discouraging dissenting opinions.By creating a hierarchical structure that ensures equal representation.30s
- Q3Why is it important to address bias in collaborative teams?To reinforce existing biases and discriminatory practices.To limit diversity and discourage different perspectives.To ensure fairness, equity, and inclusion in decision-making processes.To promote hierarchy and power dynamics within the team.30s
- Q4What is the purpose of code comments?To document and explain the code.To make the code harder to read.To fix bugs in the code.To slow down the execution of the code.30s
- Q5What is the purpose of collaboration in coding?To win a coding competition.To create a messy and unreadable code.To work together and enhance the quality of code.To slow down the coding process.30s
- Q6What is the purpose of debugging code?To add unnecessary complexity to code.To identify and fix errors in code.To slow down the execution of code.To intentionally introduce errors in code.30s
- Q7What does the term 'debugging' refer to in software development?The process of speeding up the execution of code.The process of intentionally introducing errors in code.The process of identifying and fixing errors in code.The process of adding unnecessary complexity to code.30s
- Q8Which of the following is the correct way to define a function in Python?my_function() =create my_function():def my_function()function my_function():def my_function():30s
- Q9What is the correct way to declare a variable in Python?10 x =x =10 = xx = 10variable x = 1030s
- Q10Which statement correctly describes a Python while loop?A while loop will only execute a block of code if a certain condition is true.A while loop is used for defining a finite number of iterations.A while loop executes a block of code at least once, regardless of the condition.A while loop is used for iterating over a sequence of elements.A while loop continues to execute a block of code as long as a certain condition is true.30s
- Q11Which operator is used to increment a variable in a Python while loop?The '+=' operator.The '/=' operator.The '*=' operator.The '==' operator.The '-=' operator.30s
- Q12What is the purpose of the 'while' keyword in a Python while loop?To execute a block of code once before entering the loop.To indicate the end of the while loop.To define the number of iterations in the loop.To check a specific condition within the loop.To indicate the start of the while loop and the condition that needs to be satisfied.30s
- Q13What is the syntax for an if statement in Python?if condition then:if condition;if condition {if condition:30s
- Q14What is the purpose of the 'elif' keyword in an if-elif-else statement?To define a block of code to execute regardless of any conditions.To define the code to execute when the preceding conditions are met.To control the flow of execution in a loop.To define additional conditions to check if the preceding conditions in the statement are not met.To define the initial condition in the statement.30s
- Q15Which symbol is used to denote 'not equal to' in Python?!=<>>===<=30s