AP Computer Science Unit 1

studied byStudied by 838 people
5.0(9)
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 6 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 6 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 14 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 9 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 13198 people
Updated ... ago
4.8 Stars(50)
note Note
studied byStudied by 15 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 6 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 34 people
Updated ... ago
4.0 Stars(4)

Explore top flashcards

flashcards Flashcard138 terms
studied byStudied by 51 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard40 terms
studied byStudied by 483 people
Updated ... ago
4.9 Stars(27)
flashcards Flashcard21 terms
studied byStudied by 11 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard29 terms
studied byStudied by 6 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard37 terms
studied byStudied by 7 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard24 terms
studied byStudied by 18 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard96 terms
studied byStudied by 22 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard20 terms
studied byStudied by 19 people
Updated ... ago
5.0 Stars(1)