A database is used to organize a large collection of data, hence the name database. It is literally a base that would contain a chunk of data that a person or an organization will need to pull out later when they need it. Databases are usually used by companies or organizations
A source file has source code, what a human understands. It isn't compiled or linked.
An object file has compiled, but not linked intermediary code.
An executable file has compiled and linked code which is executable.
Answer:
b) uppercase for variable names, and lowercase for constants and functions
Explanation:
Given
Programming language: prolog
Required
The case type for variables, constants and functions
In prolog,
Variable names begin with uppercase
e.g. Name, NAME
While constants and functions begin with lowercase
e.g. name, addnumbers()
<em>Hence, (b) is correct</em>
Answer:
C. sqrt(Math)
Explanation:
All but one of options A to E are is not a static method.
Only option C is a static method. The sqrt() is a static method of Math, that can always be used as Math.sqrt() is used;
The Math class defines all of its methods to be static. Invoking Math methods is done by using Math as a method rather than a variable of type Math; this means that sqrt(Math) doesn't rely on instance variables and don't need to be overridden, unlike others.
Lastly, sqrt(Math) is a static method because unlike other options, it is an utility method, and it is relevant to computations on primitive data types.
The purpose of the static method is in large part to offer a standard library of functions, and it doesn't need to be applied directly to an object.