MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

ALGORITHMS

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
A constant has a name, value and datatype
A
TRUE
B
FALSE
C
Either A or B
D
None of the above
Explanation: 

Detailed explanation-1: -Each constant, variable, array, expression, or function reference in a Fortran statement has a data type. The data type of these items can be inherent in their construction, implied by convention, or explicitly declared.

Detailed explanation-2: -6. Which of the following statement is false? Explanation: Since the constant variable has to be declared and defined at the same time, not doing it results in an error. 7.

Detailed explanation-3: -Detailed Solution Constant is an object whose value cannot be changed once defined for the design so option( 2) is not true.

Detailed explanation-4: -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. All data is represented as one of three basic data types: Int.

There is 1 question to complete.