Fiveable
⌨️AP Computer Science Principles
​

⌨️AP Computer Science Principles

Written Response 2
​
Unit 3: Unit 3 – Algorithms & Programming Fundamentals
FRQ Types & Units

Each FRQ type tests specific skills taught in particular units. Here's why certain units appear for each question type:

This mapping reflects College Board's exam structure - each FRQ type tests specific skills that are taught in particular units.

Practice FRQ 1 of 1221/122

2. Refer to your Personalized Project Reference when answering this question.

A.

Consider the first iteration statement appearing in the Procedure section of your Personalized Project Reference. Identify the specific number of times the body of this iteration statement executes. Describe a condition that would prevent the loop from terminating, resulting in an infinite loop. If the current code cannot result in an infinite loop, explain a modification to the loop structure that would cause one.

B.

Consider the procedure identified in part (i) of the Procedure section of your Personalized Project Reference. Suppose another programmer makes a change to the code inside this procedure. Describe a specific modification that would result in a logic error. Explain specifically how the behavior of the procedure would differ from the intended behavior as a result of this error.

C.

Consider the list identified in the List section of your Personalized Project Reference. Suppose you are provided with a procedure called isEqual(value1, value2) that returns true if value1 and value2 are equal in value and returns false otherwise. Write a detailed description of an algorithm that uses isEqual to count the number of times a specific value appears in your list. Your description must be detailed enough that another programmer could implement the algorithm.

Your Program Code

For the AP CSP Create Performance Task, you need to submit your program code along with your written responses. Generate sample code to practice with, or paste your own code here.

Timed

00:00

Response auto-saves






Pep

essential ap study content awaits..

Features
Testimonials
Testimonials
start studying →
FRQ Directions
Free Response Question Practice

This practice environment simulates the AP AP Computer Science Principles Free Response Questions section. Here are some guidelines:

  • Read each question carefullybefore responding. Pay attention to command verbs like "identify," "explain," "analyze," or "evaluate."
  • Use the timer to practice time management. You can pause, restart, or hide the timer as needed.
  • Mark for Review if you want to come back to a question later.
  • Your responses are saved automatically as you type. You can also use the drawing tool for questions that require diagrams or graphs.
  • Use the toolbar for formatting options like bold, italic, subscript, and superscript.
  • Navigate between questions using the Previous and Next buttons at the bottom of the screen.

Tip: Answer all parts of each question. Partial credit is often available, so even if you are unsure, provide what you know.