TEST 1 topics and review Flashcards

1
Q

print() meaning

A

Prints line in brackets to screen

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

println() meaning

A

prints line in brackets to screen and then jumps a line to continue.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

what do variables do?

A

Storing data in program

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

5 data types

A

Char - characters
float - decimals
int - integers (whole numbers)
string - words
boolean - true or false

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

what are declaration statements? What do they do?

A

declaration statements help to declare a variable. It creates a variable.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

two things need to be identified in a declaration statement

A
  1. Data type (whether its a float, int, char, etc)
  2. Variable identifier (name of variable)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

5 basic math operators

A

+ addition
- subtraction
* multiplication
/ division
% remainder division

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

programming syntax (6)

A

1) all lines must end with semicolon;
2) procedures defined using void name (){…}
3) all programs need a setup procedure
4) all brackets need to be paired
5) all quotation marks need to be paired
6) curly braces define blocks of code.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly