Constants, variables and data types Flashcards

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

What are “real” values

A

These contain numerical data in decimal form

If possible integer is used for processing speed and storage

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

What is Boolean

A

Logical operator, resents value true or false

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

What is a string

A

Text data type and can hold alphanumeric characters, can’t do math when stored in a string

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

What is source code

A

Original instruction

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

What does a compiler do

A

Reads the source code and outputs it to machine code

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

What are variables

A

In computer programming variables are data entities whose values can be altered when program is compiled

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

When do we use arrays

A

We can use an array which can store as many items as your acquire using a single variable. all the items must be of the same data type

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

What are constants

A

Constants are data entities the value of which cannot change during a programmes execution.

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

What are integers

A

Whole numbers, positive, negative and zero

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