The use of variables, constants, inputs, outputs and assignments Flashcards

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

What is a variable ?

A
  • A value stored in memory that can change whilst the programmed is still running.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a Constant?

A
  • A value that does not change while the program is running and is assigned when the program is designed.
    `
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is an assignment?

A
  • -+Giving a variable or constant an variable.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is casting?

A
  • Converting a variable from one data type to another.

- A variable can be an integer, character, string, real, float, Boolean. `

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

What is an input?

A
  • a value read from an input device.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is an output?

A
  • Data generated by the computer and displayed by the user,
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are the advantages of a constant?

A
  • Makes programs easier to read- usually assigned and declared at the top of the program.
  • Easily be changed by the programmer in one place of the programme.
  • don’t change it every instance of a value throughout a program.
  • Less chance of errors.
  • Complier can optimise code.
  • Makes program run faster.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly