Question: 1. A data type is only a description of the semantics for a given datum or data. True/False 2. Static type checking ensures that code
1. A data type is only a description of the semantics for a given datum or data.
True/False
2. Static type checking ensures that code is less error prone than dynamic typing True/False
3. Individual entries for a record data type are accessed via:
a. are immutable for most languages.
b. the appropriate indices for most languages.
c. none of these.
d. all of these.
e. the index selector operator for most languages.
f. the dot operator for most languages.
4. Strong typing allows for: _____.
a. some type errors
b. all of these
c. only static type checking
d. only small type errors
e. none of these
f. implicit type casting
g. explicit type casting
h. only dynamic type checking
i. coercion
5. Associative arrays are _____.
a. none of these
b. associated with third-party libraries
c. an ordered collection
d. all of these
e.immutable
f. a primitive data type
g. multidimensional
h. unordered
6. Type checking at compile-time is called dynamic typing
True/false
7. Tuples are most like which other data type?
a. arrays
b. none of these
c. lists
d. strings
e. primitives
f. records
g.all of these
h. classes
8. Bounds checking for arrays is more efficient for rectangular arrays.
True/False
9. Jagged multi-dimensional arrays of the same number of entries as a rectangular array take up more memory.
True/False
10. Associate arrays are implemented by _____.
a. hash tables
b. records
c. hash functions
d. tuples
e. none of these
f. hash maps
g. function calls
h. only other arrays
11. Other names for associate arrays are:
a. dictionaries, hash maps.
b. lists, character strings, and objects.
c. prototypes.
d. all of these.
e. tables, dictionaries.
f. multi-dimensional arrays, tuples.
12. Array bounds checking is required for all implementations of the array construct in languages.
True/False
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
