Ap CSP Flashcards (2.1-2.4)

studied byStudied by 18 people
5.0(1)
Get a hint
Hint

Algorithm

1 / 20

encourage image

There's no tags or description

Looks like no one added any tags here yet for you.

21 Terms

1

Algorithm

A process or set of rules to be followed in calculations or other problems solving operations

New cards
2

Sequencing

logic structure where instructions are executed in order, one after another, one at a time. Often called linear (Getting Dressed: put on pant, shoes, shirt)

New cards
3

Flowchart

a simple diagram with symbols showing the "flow" of a process

<p><span style="font-family: Lato Extended, Lato, Helvetica Neue, Helvetica, Arial, sans-serif">a&nbsp;simple diagram with symbols showing the "flow" of a process</span></p>
New cards
4

Flow Pattern

pattern that can emerge when data is transformed using computational logic structures (sequencing, selection, iteration).

New cards
5

Sequencing/Sequential Execution

program instructions that are executed one at a time, in order. (One line at a time from the top to the bottom of your program).

New cards
6

Algorithmic Logic Structures

Sequencing, Selection, Iteration

New cards
7

Code Segment

refers to a collection of program statements that are part of a program.

New cards
8

Program

a collection of program statements that performs a specific task when run by a computer. A program is often referred to as software.

New cards
9

Parameter

a variable that defines a procedure or sets the conditions of an operation 

New cards
10

Procedure

a named collection of steps in an algorithm that can be reused anytime it is needed without restating the detailed procedures (abstraction)

New cards
11

Comments

an annotation in the code of a computer program

New cards
12

Remix

to modify and share a version of an uploaded existing project

New cards
13

Pseudocode

  • an informal method of writing algorithmic instructions that do not necessarily follow grammatical rules and syntax of a particular language. "False" code. 

  • Use it to be concise (basic text language can get wordy) and precise (abbreviations run the risk of leaving out important info)

New cards
14

If Statements

  • Only execute if a specific condition/criteria is met.

  • ex. If it is raining, then I will carry an umbrella.

New cards
15

If Else Statements

  • similar to if statements but focuses on what is to happen when a condition isn’t met.

  • ex. If it is raining outside carry an umbrella, else say “hooray”

New cards
16

Statements with Comparison

  • are if statements used to compare quantities

  • Ex. What is your agre? , IF answer >= 18 say you are eligible to vote, ELSE say you are not eligible to vote. This basically compares the age to the number 18.

<ul><li><p>are if statements used to compare quantities</p></li><li><p>Ex. What is your agre? , IF answer &gt;= 18 say you are eligible to vote, ELSE say you are not eligible to vote. This basically compares the age to the number 18.</p></li></ul>
New cards
17

( Defintion) Operators

Definition : Symbols that imply a comparison in conditional selection statements.

<p>Definition : Symbols that imply a comparison in conditional selection statements.</p>
New cards
18

Operators

  • a = b OR == means equal to

  • a ≠ b OR != means NOT equal to

  • > means greater than

  • < means less than

  • a ≥ b OR >= means greater than OR equal to

  • a ≤ b OR <= means less than OR equal to

<ul><li><p>a = b OR == means equal to</p></li><li><p>a ≠ b OR != means NOT equal to</p></li><li><p>&gt; means greater than</p></li><li><p>&lt; means less than </p></li><li><p>a ≥ b OR &gt;= means greater than OR equal to</p></li><li><p>a <span style="font-family: Google Sans, Roboto, arial, sans-serif; color: rgb(232, 234, 237)">≤ b OR &lt;= means less than OR equal to</span></p></li></ul>
New cards
19

Selection

algorithmic structure that uses "if...then" to tell the computer how to select a step or to tell the sequence that should be executed.

New cards
20

Iteration

a function that repeats a block of code in a specified order, often until a specific result occurs. (x=1, add 1 until x>10)

New cards
21

Reptition

in a program means that lines of code will be run multiple times.

New cards

Explore top notes

note Note
studied byStudied by 7 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 3 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 12 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 21 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 39 people
Updated ... ago
4.5 Stars(2)
note Note
studied byStudied by 113 people
Updated ... ago
4.4 Stars(7)
note Note
studied byStudied by 4 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 335 people
Updated ... ago
5.0 Stars(1)

Explore top flashcards

flashcards Flashcard35 terms
studied byStudied by 1 person
Updated ... ago
5.0 Stars(1)
flashcards Flashcard59 terms
studied byStudied by 18 people
Updated ... ago
5.0 Stars(2)
flashcards Flashcard70 terms
studied byStudied by 89 people
Updated ... ago
5.0 Stars(2)
flashcards Flashcard69 terms
studied byStudied by 11 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard44 terms
studied byStudied by 22 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard53 terms
studied byStudied by 14 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard36 terms
studied byStudied by 21 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard81 terms
studied byStudied by 45 people
Updated ... ago
5.0 Stars(2)