MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

ALGORITHMS

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
A ____ is a named location in memory that stores a value that does not change during the program
A
literal
B
sentinel
C
variable
D
constant
Explanation: 

Detailed explanation-1: -A variable is a named memory location which temporarily stores data that can change while the program is running. A constant is a named memory location which temporarily stores data that remains the same throughout the execution of the program.

Detailed explanation-2: -A variable is a named location in the computer’s memory, used to store a piece data (or information).

Detailed explanation-3: -Constant is a named memory location used to hold a value that CANNOT be changed during the script execution. If a user tries to change a Constant Value, the Script execution ends up with an error. Constants are declared the same way the variables are declared.

Detailed explanation-4: -A variable is a named piece of memory that holds a value. The value held in a variable can-and usually does-change as the program is running. A variable’s name is known as an identifier .

Detailed explanation-5: -A variable is a named location that is used to store data in the memory. It is basically a container that keeps data that can be used and changed later in the program.

There is 1 question to complete.