AP Computer Science Unit 1

studied byStudied by 622 people
5.0(5)
get a hint
hint

Program

1 / 27

Studying Progress

0%
New cards
28
Still learning
0
Almost done
0
Mastered
0
28 Terms
1
New cards

Program

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

New cards
2
New cards

Programming language

Structural language that allows the programmer to communicate with the computer

New cards
3
New cards

Machine Code

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

New cards
4
New cards

Long Comment

Comments that go beyond one line of code

denoted with :

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

New cards
5
New cards

Short Comment

Comment that is only one line of code

denoted with:

//

New cards
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

New cards
7
New cards

Compiling

the process of an interpreter converting a programmers code into binary

New cards
8
New cards

Compiling error (Syntax Error)

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

New cards
9
New cards

Runtime Error

errors that happen while the program is running

New cards
10
New cards

Logic Error

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

New cards
11
New cards

Structure for creating an identifier

type identifier = data

New cards
12
New cards

Do assignment statements print output?

NO

they simply assign data to the identifier

New cards
13
New cards

Variable

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

New cards
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)

New cards
15
New cards

Primitive Data

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

New cards
16
New cards

int (data type)

any number that is an integer

cannot be decimals

New cards
17
New cards

double (data type)

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

New cards
18
New cards

boolean (data type)

a value that is true or false

True = 1 False = 0

New cards
19
New cards

char (data type)

represents a single character that can be seen on a keyboard

  • letters, numbers, spaces, and special characters

New cards
20
New cards

Casting

treating a value as another type

New cards
21
New cards

Concatenation

When a string value is joined to another piece of data

New cards
22
New cards

Literals

basic value that can be interpreted in only one way

New cards
23
New cards

What does the “+” do?

addition

New cards
24
New cards

What does the “-” do?

Subtraction

New cards
25
New cards

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

modulus

does the division of the variables then returns the remainder

New cards
26
New cards

What does the “/” do?

division

New cards
27
New cards

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

increment operator

it increases the value of a number by one

New cards
28
New cards

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 11 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 3 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 3 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 7 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 3 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 11 people
Updated ... ago
5.0 Stars(2)
note Note
studied byStudied by 9 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 503 people
Updated ... ago
5.0 Stars(3)

Explore top flashcards

flashcards Flashcard50 terms
studied byStudied by 3 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard84 terms
studied byStudied by 1 person
Updated ... ago
5.0 Stars(1)
flashcards Flashcard76 terms
studied byStudied by 3 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard79 terms
studied byStudied by 57 people
Updated ... ago
5.0 Stars(2)
flashcards Flashcard47 terms
studied byStudied by 11 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard144 terms
studied byStudied by 25 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard50 terms
studied byStudied by 22 people
Updated ... ago
5.0 Stars(2)
flashcards Flashcard38 terms
studied byStudied by 4 people
Updated ... ago
5.0 Stars(1)