COMPUTER PROGRAMMING FUNDAMENTALS
WHAT IS PROGRAMMING
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
False
|
|
True
|
|
Either A or B
|
|
None of the above
|
Detailed explanation-1: -Notice that variables are used for temporary storage. When you exit a program or turn the computer off, the information in variables is lost. Permanent storage is a different matter. Typically, the values from variables are permanently stored either to a database or to a file on disk.
Detailed explanation-2: -A constant is a named data item with a predefined value, while a variable is a named data item whose value can change during the course of program execution. Variables can be either global or local.
Detailed explanation-3: -Understanding Constants A constant is a data item whose value cannot change during the program’s execution. Thus, as its name implies – the value is constant. A variable is a data item whose value can change during the program’s execution. Thus, as its name implies – the value can vary.
Detailed explanation-4: -Many variables store numbers and strings, like the ones above. Variables can also store other types of data, like lists, dictionaries, and Boolean values (true/false).