deck 1 Flashcards

deck 1

You may prefer our related Brainscape-certified flashcards:
1
Q

Iteration

A

Function that repeats a block of code in a specific order

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

Record

A

a collection of data of mixed data types

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

Boolean operators

A

And, Or, Not

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

Modulus - %

A

The remainder of a number - this can be used to check if numbers are odd or even.

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

If statement

A

Allows you to make decisions based on certain conditions - commonly followed by an else statement

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

def statement

A

a way of defining something

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

Real / Float

A

Converts values into decimal numbers

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

Selection

A

the process of making a decision

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

function

A

something that takes the promt

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

procedure

A

WHAT takes the prompt

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

subprogram

A

a block of code given in a unique name in a program

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

!=

A

not equal to

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

String formatting

A

Width, Alignment, type, precision

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

Powers

A

** = Squared - *** = Cubed

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

//

A

Integer division - divides to nearest integer - no decimal place

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