AP Computer Science Unit 1

4.7(19)
studied byStudied by 1860 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/27

Last updated 11:56 PM on 10/28/23
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

28 Terms

1
New cards

Program

A set of commands written in a programming language to perform a task

2
New cards

Programming language

Structural language that allows the programmer to communicate with the computer

3
New cards

Machine Code

A language a computer understands that consists of commands written only in binary (0’s and 1’s)

4
New cards

Long Comment

Comments that go beyond one line of code

denoted with :

/* (to open the comment) and */ (to close)

5
New cards

Short Comment

Comment that is only one line of code

denoted with:

//

6
New cards

Identifiers

names that are given to show data that are stored in the memory of a computer when a program is being executed

7
New cards

Compiling

the process of an interpreter converting a programmers code into binary

8
New cards

Compiling error (Syntax Error)

a program is unable to compile due to errors in the programs code

9
New cards

Runtime Error

errors that happen while the program is running

10
New cards

Logic Error

When a program produces the incorrect output due to a flaw in the program

11
New cards

Structure for creating an identifier

type identifier = data

12
New cards

Do assignment statements print output?

NO

they simply assign data to the identifier

13
New cards

Variable

When data is associated with an identifier it is referred to as a .

14
New cards

Can a variable type change?

NO

once a variable is assigned and given a type it can NEVER be changed (for now)

15
New cards

Primitive Data

basic type of data; built in data types that hold a limited amount of data

16
New cards

int (data type)

any number that is an integer

cannot be decimals

17
New cards

double (data type)

any number that can be positive or negative and can be a fraction or decimal

18
New cards

boolean (data type)

a value that is true or false

True = 1 False = 0

19
New cards

char (data type)

represents a single character that can be seen on a keyboard

  • letters, numbers, spaces, and special characters

20
New cards

Casting

treating a value as another type

21
New cards

Concatenation

When a string value is joined to another piece of data

22
New cards

Literals

basic value that can be interpreted in only one way

23
New cards

What does the “+” do?

addition

24
New cards

What does the “-” do?

Subtraction

25
New cards

What is “%” called and what does it do?

modulus

does the division of the variables then returns the remainder

26
New cards

What does the “/” do?

division

27
New cards

What is “++” called and what does it do?

increment operator

it increases the value of a number by one

28
New cards

What is “- -” called and what does it do?

decrement operator

decreases the value of a number by one

Explore top notes

note
plants__bio_106_
Updated 414d ago
0.0(0)
note
Microbiology Quiz 3 (BIO 210)
Updated 125d ago
0.0(0)
note
Chapter Ten: Helping Others
Updated 1112d ago
0.0(0)
note
Chapter 16- How Genes Work
Updated 1161d ago
0.0(0)
note
chem
Updated 259d ago
0.0(0)
note
Radioactivity
Updated 555d ago
0.0(0)
note
Hyoid Syndrome
Updated 1117d ago
0.0(0)
note
plants__bio_106_
Updated 414d ago
0.0(0)
note
Microbiology Quiz 3 (BIO 210)
Updated 125d ago
0.0(0)
note
Chapter Ten: Helping Others
Updated 1112d ago
0.0(0)
note
Chapter 16- How Genes Work
Updated 1161d ago
0.0(0)
note
chem
Updated 259d ago
0.0(0)
note
Radioactivity
Updated 555d ago
0.0(0)
note
Hyoid Syndrome
Updated 1117d ago
0.0(0)

Explore top flashcards

flashcards
Skeletal System
30
Updated 811d ago
0.0(0)
flashcards
Anthro Final-Vocab
65
Updated 667d ago
0.0(0)
flashcards
health ed nov 2022 (copy)
50
Updated 1191d ago
0.0(0)
flashcards
IntroComp - Midterms
86
Updated 483d ago
0.0(0)
flashcards
American Civil War
79
Updated 357d ago
0.0(0)
flashcards
Climate Variation and Drought
24
Updated 1056d ago
0.0(0)
flashcards
Skeletal System
30
Updated 811d ago
0.0(0)
flashcards
Anthro Final-Vocab
65
Updated 667d ago
0.0(0)
flashcards
health ed nov 2022 (copy)
50
Updated 1191d ago
0.0(0)
flashcards
IntroComp - Midterms
86
Updated 483d ago
0.0(0)
flashcards
American Civil War
79
Updated 357d ago
0.0(0)
flashcards
Climate Variation and Drought
24
Updated 1056d ago
0.0(0)