Mod 10.3 Flashcards

1
Q

What is a variable in a computer program?

A

A container that holds data for use later

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

Which of the following is an example of a character variable?

A

‘7’

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

What is a floating-point number?

A

A number that can have decimal fractions

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

Which of the following is an example of an integer?

A

23

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

What happens when you enter a number as a character?

A

You cannot perform math operations with it.

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

Which of the following is an example of a string?

A

Hello world

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

Which Boolean operation returns True only if both conditions are True?

A

AND

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

In pseudocode, what does the symbol || represent?

A

Logical OR

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

What is an array?

A

A special type of variable that holds many values at once

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

What does it mean for an array to be multidimensional?

A

It can hold arrays within arrays.

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