[amp_mcq option1=”programmer-defined type” option2=”complex type” option3=”nonscalar type” option4=”scalar type” correct=”option4″]
The correct answer is: D. scalar type
A scalar type is a data type that can hold a single value. Examples of scalar types include int, double, and char.
A programmer-defined type is a data type that is created by the programmer. Examples of programmer-defined types include structs and classes.
A complex type is a data type that can hold multiple values. Examples of complex types include arrays and objects.
A nonscalar type is a data type that is not a scalar type. Examples of nonscalar types include arrays and objects.