Prepare for the 241 Computer Science Certification Exam with comprehensive flashcards and multiple choice questions. Enhance knowledge with explanations and hints to excel in your test journey!

Multiple Choice

Which term specifies properties of an identifier used for functions, procedures, methods, variables, constants, or classes?

A declaration introduces an identifier to the program by specifying its properties—its name, type, and how it can be used—whether it’s a variable, constant, function/procedure/method, or a class. For functions and methods, the declaration provides the signature (return type and parameter types) without the body; for variables and constants, it states the type and name; for a class, it defines the class name and its members. It does not necessarily allocate storage or implement behavior—that would be a definition. The correct term is declaration because it is about stating what the identifier represents and what properties it has, not about naming quality, creating an instance, or identifying a specific primitive type.

A declaration introduces an identifier to the program by specifying its properties—its name, type, and how it can be used—whether it’s a variable, constant, function/procedure/method, or a class. For functions and methods, the declaration provides the signature (return type and parameter types) without the body; for variables and constants, it states the type and name; for a class, it defines the class name and its members. It does not necessarily allocate storage or implement behavior—that would be a definition. The correct term is declaration because it is about stating what the identifier represents and what properties it has, not about naming quality, creating an instance, or identifying a specific primitive type.