Subscript Binding and Array Categories Quiz

AppreciableRationality4810 avatar
AppreciableRationality4810
·
·
Download

Start Quiz

30 Questions

Primitive Data Types: Integer is always an exact reflection of the hardware.

False

There may be as many as eight different integer types in a language.

True

Java's signed integer sizes are byte, short, int, long.

True

Signed integer number representations include sign-magnitude, one's complement, and two's complement.

True

Floating point types in languages for scientific use are usually exactly like the hardware.

False

True or false: COBOL is a language that allows for dynamic string length options.

False

True or false: An ordinal type is a type in which the range of possible values can be easily associated with the set of positive integers.

True

True or false: Enumeration constants are allowed to appear in more than one type definition in C++.

True

True or false: All enumeration types in Java are subclasses of the predefined class Enum.

True

True or false: Array indexing in most languages is done using parentheses.

False

True or false: A data type defines a collection of data objects and a set of predefined operations on those objects?

True

True or false: A descriptor is the collection of the attributes of a variable that are used for type checking and performing allocation and deallocation operations?

True

True or false: Descriptors for static attributes are needed only at compile-time, built as part of the symbol table?

True

True or false: Descriptors for dynamic attributes must be used and maintained by the run-time system?

True

True or false: An object represents an instance of a user-defined (abstract data) type?

True

Subscript binding and storage allocation for heap-dynamic arrays can change any number of times during program execution.

True

C and C++ arrays with the static modifier are static.

True

C and C++ arrays without the static modifier are fixed stack-dynamic.

True

C# and Java include a second array class called ArrayList that provides fixed heap-dynamic arrays.

True

Jagged arrays have rows with varying number of elements.

True

Records in C/C++ are similar to tuples in Python, ML, and F#.

True

A union in C/C++ can hold multiple non-static data members at the same time.

False

Accessing array elements is faster than accessing record fields.

False

Pointer assignment in C++ uses an implicit dereferencing operation.

False

Pointers in C/C++ are used for dynamic storage management and indirect addressing.

True

A dangling pointer is a pointer that points to a heap-dynamic variable that has been deallocated.

True

In the given code, arrPtr1 becomes a dangling pointer after arrPtr2 is deallocated.

True

A lost heap-dynamic variable is an allocated heap-dynamic variable that is no longer accessible to the user program.

True

In the given code, ptr1 becomes a dangling pointer after ptr2 is assigned to it.

False

Garbage refers to an allocated heap-dynamic variable that is still accessible to the user program.

False

This quiz covers the topics of subscript binding and array categories, specifically focusing on heap-dynamic binding and the use of static modifiers in C and C++ arrays. Test your knowledge on these concepts and gain a better understanding of array flexibility and storage allocation.

Make Your Own Quizzes and Flashcards

Convert your notes into interactive study material.

Get started for free

More Quizzes Like This

Chemical Formula Knowledge Quiz
5 questions
Vector Subscript Ordering Quiz
5 questions
MQTT Basic Concepts Quiz
18 questions

MQTT Basic Concepts Quiz

BlamelessEnlightenment5203 avatar
BlamelessEnlightenment5203
Publish-Subscribe Model: Transport and Session
10 questions
Use Quizgecko on...
Browser
Browser