AP Computer Science Unit 1

studied byStudied by 991 people
5.0(12)
learn
LearnA personalized and smart learning plan
exam
Practice TestTake a test on your terms and definitions
spaced repetition
Spaced RepetitionScientifically backed study method
heart puzzle
Matching GameHow quick can you match all your cards?
flashcards
FlashcardsStudy terms and definitions

1 / 27

28 Terms

1

Program

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

New cards
2

Programming language

Structural language that allows the programmer to communicate with the computer

New cards
3

Machine Code

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

New cards
4

Long Comment

Comments that go beyond one line of code

denoted with :

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

New cards
5

Short Comment

Comment that is only one line of code

denoted with:

//

New cards
6

Identifiers

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

New cards
7

Compiling

the process of an interpreter converting a programmers code into binary

New cards
8

Compiling error (Syntax Error)

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

New cards
9

Runtime Error

errors that happen while the program is running

New cards
10

Logic Error

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

New cards
11

Structure for creating an identifier

type identifier = data

New cards
12

Do assignment statements print output?

NO

they simply assign data to the identifier

New cards
13

Variable

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

New cards
14

Can a variable type change?

NO

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

New cards
15

Primitive Data

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

New cards
16

int (data type)

any number that is an integer

cannot be decimals

New cards
17

double (data type)

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

New cards
18

boolean (data type)

a value that is true or false

True = 1 False = 0

New cards
19

char (data type)

represents a single character that can be seen on a keyboard

  • letters, numbers, spaces, and special characters

New cards
20

Casting

treating a value as another type

New cards
21

Concatenation

When a string value is joined to another piece of data

New cards
22

Literals

basic value that can be interpreted in only one way

New cards
23

What does the “+” do?

addition

New cards
24

What does the “-” do?

Subtraction

New cards
25

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

modulus

does the division of the variables then returns the remainder

New cards
26

What does the “/” do?

division

New cards
27

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

increment operator

it increases the value of a number by one

New cards
28

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

decrement operator

decreases the value of a number by one

New cards

Explore top notes

note Note
studied byStudied by 22 people
712 days ago
5.0(1)
note Note
studied byStudied by 40 people
827 days ago
5.0(1)
note Note
studied byStudied by 27 people
875 days ago
5.0(1)
note Note
studied byStudied by 32 people
898 days ago
5.0(2)
note Note
studied byStudied by 4 people
661 days ago
5.0(1)
note Note
studied byStudied by 35 people
645 days ago
4.0(1)
note Note
studied byStudied by 35 people
349 days ago
5.0(1)
note Note
studied byStudied by 15448 people
658 days ago
4.8(60)

Explore top flashcards

flashcards Flashcard (84)
studied byStudied by 20 people
417 days ago
5.0(2)
flashcards Flashcard (82)
studied byStudied by 10 people
744 days ago
5.0(3)
flashcards Flashcard (115)
studied byStudied by 93 people
640 days ago
5.0(1)
flashcards Flashcard (153)
studied byStudied by 10 people
49 days ago
5.0(1)
flashcards Flashcard (55)
studied byStudied by 156 people
418 days ago
5.0(1)
flashcards Flashcard (29)
studied byStudied by 3 people
113 days ago
5.0(1)
flashcards Flashcard (60)
studied byStudied by 76 people
269 days ago
5.0(1)
flashcards Flashcard (34)
studied byStudied by 55 people
308 days ago
5.0(2)
robot