Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

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

Rating
-
Sold
-
Pages
11
Grade
A
Uploaded on
05-03-2024
Written in
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

Show more Read less
Institution
Course

Content preview

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

, Geolocation refers to the use of location technologies such as GPS or IP addresses to
identify and track the whereabouts of connected electronic devices. Geotagging is the
process of appending geographic coordinates to media based on the location of a
mobile device.
cookies
Computer cookies are small files, often including unique identifiers that web servers
send to browsers. These cookies then can be sent back to the server each time your
browser requests a new page. It's a way for a website to remember you, your
preferences, and your habits online.
infinite loop
is when a program keeps repeating the same thing and does not ever stop.
code segment
an executable portion of computer memory allocated to a particular process
Big Idea 2
Abstraction
predicate
is a hexagon-shaped reporter that asks a true/false (Boolean)
global variable
is a variable that is visible & usable by all scripts in the program.
Index
In a list, the position number for an item in that list is called the index of the item
conditionals
Another term for if statements -- statements that only run under certain conditions.
Initialize
Setting the starting value of a variable is known as initializing the variable.
element
is another name for an item in a list. (If the same value is in the list twice, that counts as
two different elements.) Each element has a unique index (position) in the list.
data type
is what kind of data something is (number, text string, list, Boolean, etc.
primitive data type
is a data type that is built-in to a programming language.
abstract data type (ADT)
is a custom data type that's meaningful to your program, but isn't built into a
programming language. YOU create these as code, just like when you create
procedural abstraction custom blocks!
Traversing a list
performing the same operation on each item of the list, sequentially
constructor
a special method of a class or structure in object-oriented programming that initializes a
newly created object of that type.
selectors
they each select one piece of the data structure.
Data abstraction
is the creation and use of abstract data types in a program.
table

Written for

Course

Document information

Uploaded on
March 5, 2024
File latest updated on
March 5, 2024
Number of pages
11
Written in
2023/2024
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$8.99
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
joynjoki63

Get to know the seller

Seller avatar
joynjoki63 Chamberlain College Of Nursing
Follow You need to be logged in order to follow users or courses
Sold
2
Member since
3 year
Number of followers
2
Documents
433
Last sold
2 year ago
joynjoki63

NURSING EXAMS AND STUDY GUIDES(Verified learners) Here, you will find everything you need in NURSING EXAMS AND TESTBANKS.Contact us, to fetch it for you in minutes if we do not have it in this shop.BUY WITHOUT DOUBT!!!!Always leave a review after purchasing any document so as to make sure our customers are 100% satisfied.

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions