MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

ALGORITHMS

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
What is a constant?
A
A named location in memory that stores information that cannot change
B
A named location in the CPU that stores information that can change
C
A named location in memory that stores information that can change
D
A numbered location in memory that stores information that cannot change
Explanation: 

Detailed explanation-1: -A constant is a named memory location which temporarily stores data that remains the same throughout the execution of the program. The type of a variable indicates what kind of value it will store. The name of a variable is known as its identifier. A variable can be given a value through an assignment statement.

Detailed explanation-2: -Read-only memory, or ROM, is computer memory containing data that can only be read, not written to. ROM contains boot-up programming that is used each time a computer is turned on. It generally can’t be altered or reprogrammed. The data in ROM is nonvolatile and isn’t lost when the computer power is turned off.

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

Detailed explanation-4: -Constant memory is a read-only cache which content can be broadcasted to multiple threads in a block.

Detailed explanation-5: -A variable is a data item whose value can change during the program’s execution.

There is 1 question to complete.