Chapter 2

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

Literal constant

A literal constant is a value you type into your program wherever it is needed.

Defined constant

Named constants must be assigned a value when they are defined. Variables do not have to be assigned initial values. Variables once defined may be assigned a value within the instructions of the program.

Constant

a value that cannot be altered by the program during normal execution, i.e., the value is constant; a data item whose value cannot change during the program's execution. Thus, as its name implies - the value is constant.

Variable

an identifier with a value that can be changed during normal execution, i.e., the value is variable; a data item whose value can change during the program's execution. Thus, as its name implies - the value can vary.


Kaugnay na mga set ng pag-aaral

(Bio 105) Chapter 18 Animal Reproduction and Development

View Set

Psychology B Unit 1: Social Psychology

View Set

Lecture 21: Sexual selection, Genetic Drift, Gene Flow, Quiz Q's

View Set

PSYC151 Unit 5 (Chpt. 11, 14, and 15)

View Set