Fundamentals of programming Flashcards

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

What data type only holds whole numbers?

A

Integer

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

What data type can hold decimal numbers?

A

Real/Float

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

What data type only holds true or false?

A

Boolean

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

What data type only holds one letter strings?

A

Character

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

What does ‘const’ do when declaring a variable?

A

Makes it so that it cant be changed

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

What loop is an example of definite iteration?

A

For loop

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

What loop is an example of indefinite iteration?

A

While loop

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

What is the difference between a local and a global variable?

A

Local variables are declared inside the function, global variables are declared outside the function.

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

What is the difference between a function and a procedure?

A

Functions return values but procedures do not

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