100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
AP COMPUTER SCIENCE AND PRINCIPLES EXAM WITH COMPLETE SOLUTION 2023/2024 $10.99   Add to cart

Exam (elaborations)

AP COMPUTER SCIENCE AND PRINCIPLES EXAM WITH COMPLETE SOLUTION 2023/2024

 3 views  0 purchase
  • Course
  • Institution

AP COMPUTER SCIENCE AND PRINCIPLES EXAM WITH COMPLETE SOLUTION 2023/2024 BIG IDEA 1 Unit 1 Intro to Programming event is associated with an action, such as clicking on the sprite, pressing a key, or clicking the green flag button loop in computer programming -- the code inside a loop repeat...

[Show more]

Preview 2 out of 11  pages

  • May 17, 2023
  • 11
  • 2022/2023
  • Exam (elaborations)
  • Questions & answers
avatar-seller
AP COMPUTER SCIENCE AND PRINCIPLES EXAM
WITH COMPLETE SOLUTION 2023/2024
BIG IDEA 1
Unit 1 Intro to Programming
event
is associated with an action, such as clicking on the sprite, pressing a key, or clicking
the green flag button
loop
in computer programming -- the code inside a loop repeats over and over!
algorithm
a step-by-step procedure defines a set of instructions that must be carried out in order
to produce the desired result.
parameters
(or formal parameter) is the input name, such as number of branches. The input name
is set in the block definition. It never changes.
Iteration
it's called "iteration" because the code repeats (iterates) over and over again. Note that
iteration statements have a stopping condition: either some condition becoming true (as
seen in the repeat-until), or code repeating for a designated number of times (as seen in
the repeat).
forever statement
it isn't technically considered an iteration statement because there is no stopping
condition
SELECTION
if and if-else blocks
boolean
true/false or yes/no
Abstraction
a simplified representation of something more complex. Abstractions allow you to hide
details to help you manage complexity, focus on relevant concepts, and reason about
problems at a higher level.
procedural abstraction
a process and allows a procedure to be used only knowing what it does, not how it does
it. Procedural abstraction allows a solution to a large problem to be based on the
solution of smaller subproblems. This is accomplished by creating procedures to solve
each of the subproblems.
reporters
to report a value, they are called reporters.
list
is an ordered set of items.
string
is a sequence of characters (letters, digits, punctuation, etc.).
substring

, is just a piece of some existing string. For example, "Hanna," "anna", and "nnah" are
each substrings of the string "Hannah." (The empty string as well as the original string
are both also substrings.)
concatenate
means to make a bigger string by connecting two or more smaller strings
Debugging
is the process of testing, finding problems, and fixing them.
procedure
is a sequence of instructions
expression
is either a constant value (such as "4" or "winter") or a call to a reporter block with any
input slots filled in
pair programming
a collaborative programming style in which two programmers switch between the roles
of writing code and tracking or planning high level progress
Pseudocode
As mentioned before, an algorithm is a sequence of steps that are usually performed by
a computer. The algorithm doesn't have to be written in any particular programming
language or even in a programming language at all; you can write your algorithm in
English or any other human language. Some people call an algorithm written in human
language pseudocode. Once you know the steps that the computer will take, you can
code your algorithm in the programming language of your choice. A good example of
something we have already done in pseudocode would be your PB&J instructions - it is
a combination of regular English with some compute-like instructions 😊
argument
(or actual argument) is the input value, such as 6 for a hexagonal pinwheel. The input
value is given each time the block is run; it can be different.
called
When a procedure gets executed as part of an algorithm, it's sometimes said that the
procedure gets "called".
abstraction by generalization
looking at chunks of code that are almost the same and writing a single block by using
an input to distinguish among the different cases.
variable
is used to hold a value inside a program, similar to its use in math. It names a piece of
data that we wish to use in our program. Each variable represents one value at a time,
and that value can be a number, text, and even a list (which actually has multiple
values!). The last example, a list, would be considered data abstraction as it holds
multiple values under one name!
Personally identifiable information (PII)
is information that can let others figure out who you are and possibly get more
information like your Social Security number, age, race, phone number(s), medical
information, financial information, or biometric data (such as your thumbprint or face
scan).
geolocation

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller ACADEMICAIDSTORE. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $10.99. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

80364 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling

Recently viewed by you


$10.99
  • (0)
  Add to cart