AP Computer Science Unit 1

studied byStudied by 871 people
5.0(10)
Get a hint
Hint

Program

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 8 people
... ago
5.0(1)
note Note
studied byStudied by 21 people
... ago
5.0(1)
note Note
studied byStudied by 8 people
... ago
5.0(1)
note Note
studied byStudied by 16 people
... ago
5.0(2)
note Note
studied byStudied by 23 people
... ago
5.0(1)
note Note
studied byStudied by 34 people
... ago
5.0(1)
note Note
studied byStudied by 5 people
... ago
5.0(1)
note Note
studied byStudied by 20 people
... ago
5.0(1)

Explore top flashcards

flashcards Flashcard (846)
studied byStudied by 20 people
... ago
4.0(1)
flashcards Flashcard (234)
studied byStudied by 31 people
... ago
5.0(1)
flashcards Flashcard (49)
studied byStudied by 74 people
... ago
5.0(1)
flashcards Flashcard (73)
studied byStudied by 10 people
... ago
5.0(2)
flashcards Flashcard (20)
studied byStudied by 4 people
... ago
4.5(2)
flashcards Flashcard (51)
studied byStudied by 9 people
... ago
5.0(1)
flashcards Flashcard (27)
studied byStudied by 16 people
... ago
4.0(1)
flashcards Flashcard (248)
studied byStudied by 41 people
... ago
5.0(1)
robot