COMPUTER FUNDAMENTALS

COMPUTER SOFTWARE

PROGRAMMING LANGUAGES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
What is a primitive data types?
A
A crude form of representing numbers
B
Those not defined in terms of other data types
C
The part of languages that is the same as in older languages
D
A data type that cannot be used as part of an object.
Explanation: 

Detailed explanation-1: -Primitive Data Types: A primitive data type is pre-defined by the programming language. The size and type of variable values are specified, and it has no additional methods. Non-Primitive Data Types: These data types are not actually defined by the programming language but are created by the programmer.

Detailed explanation-2: -Primitive data types are those that are not defined in terms of other data types. Because primitive data types are the basis for all other types, they cannot have element content or attributes. However, they can contain values. Primitive data types are built into XML schemas.

Detailed explanation-3: -Primitive data types-includes byte, short, int, long, float, double, boolean and char. Non-primitive data types-such as String, Arrays and Classes (you will learn more about these in a later chapter)

Detailed explanation-4: -A primitive data type is either a data type that is built into a programming language, or one that could be characterized as a basic structure for building more sophisticated data types.

Detailed explanation-5: -A primitive type is predefined by the language and is named by a reserved keyword. Primitive values do not share state with other primitive values. The eight primitive data types supported by the Java programming language are: byte: The byte data type is an 8-bit signed two’s complement integer.

There is 1 question to complete.