Variables and instructions Flashcards

1
Q

Which of the following are most likely to be variables?

a) getUmbrella()

b) isFound

c) customer.firstName

d) True

e) 2018

f) “cake”

g) apple

A

a) No, this is a function.

b) Yes (isFound = True)

c) No, this is a field within a record.

d) No, this is a Boolean value.

e) No, this is an integer.

f) No, this is a string.

g) Yes (apple = “Fruit”)

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