Use app×
Join Bloom Tuition
One on One Online Tuition
JEE MAIN 2025 Foundation Course
NEET 2025 Foundation Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
129 views
in Information Technology by (237k points)
closed by
Which of the following statement regarding a constant is not true
1. Constant defined in a package can be referenced by any entity or architecture for which package is used.
2. The value of constant can be changed with in the design description
3. Constant defined in an architecture is visible only to that architecture
4. Constant defined in a process declarative region is not visible outside that process

1 Answer

0 votes
by (239k points)
selected by
 
Best answer
Correct Answer - Option 2 : The value of constant can be changed with in the design description

Constant is an object whose value cannot be changed once defined for the design so option( 2) is not true.

SOME IMPORTANT POINTS ABOUT CONSTANT:

1. A constant is used to give a name to a value, this makes it easier to read and maintain the code.

2. A constant cannot be of the file or access type.

3. The visibility of constants depends on the place of their declaration.

4. The constants defined in the package can be used by several design units.

5. The constant declaration in the design entity is seen by all the statements of the architecture bodies of this entity.

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...