U5 L1: Variables

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/13

flashcard set

Earn XP

Description and Tags

Unit 5: Programming in AP Pseudocode | Created on October 26th

14 Terms

1
New cards

sequencing

one of the 3 basic logic structures in any computer language where all instructions are performed in order and executed one at a time (top to bottom)

2
New cards

selection

one of the 3 basic logic structures in any computer language that uses a boolean condition to determine or select whether to not to run a certain block of statements

ex: if, else statements

3
New cards

iteration

one of the 3 basic logic structures in any computer language where a block of code repeats to achieve or get closer to a desired goal

4
New cards

numbers

made up of digits 0-9

can be decimals or whole #’s

can be + or -

no quotes (“_“)

5
New cards

strings

made up of any character

a string of characters tgt make up words or sentences

the string of characters are inside double quotes

6
New cards

booleans

have 2 options: true or false

no quotes

7
New cards

creating a number

x ← 10

myMoney ← 3.5

value ← -6.78

8
New cards

creating a string

word ← “Hello”

sentence ← “This is fun!”

9
New cards

creating a boolean

flag ← true

otherValue ← false

10
New cards

variable(s)

a way for the computer to store and use data in the program but can only hold one value

11
New cards

standard operators (in programming languages)

addition, subtraction, multiplication, division

12
New cards

new operators

modulus (mod) and logical

13
New cards

the + sign is the only operator that can be used with ___

strings (+ sign)

14
New cards

concatenation

when the + sign comes between 2 stings (or a sting and #) it will push them tgt to for a longer string