Upgrade to remove ads
Programming Languages Review
Terms in this set (27)
A ____ defines a collection of data values and a set of predefined operations on those values
A ____ is the collection of the attributes of a variable
primitive data types
____ are types that cannot be further defined
Give an example of a data type that cannot be further defined.
Give an example of a data type that can be further defined.
days (Mon, Tue, Wed, Thu, Fri, Sat, Sun); is an example of what kind of data type?
____ are data elements in which an individual element is identified by its position relative to the first element.
A ____ array is one in which the subscripts ranges are statically bound and storage allocation is static (done before run time)
A ____ array is one in which the subscript ranges are statically bound, but that allocation is done at declaration elaboration time during execution
A jagged array is stored with each row in various lengths. (true/false)
A substructure of an array such as a few elements of an array if called a slice. (true/false)
How does a single-dimension array look like in the memory cells?
Hashing is used to determine the index value in some arrays in some languages. (true/false)
The fundamental difference between a record and an array is that record elements, or fields, are not referenced by indices but by identifiers. (true/false)
In the following
05 FIRST PICTURE IS X(20)
05 Middle PICTURE IS X(10)
05 LAST PICTURE IS X(20)
The first name field type is defined as what type of data?
In problem 15 the record is static type where the data is loaded dynamically. (true/false)
In problem 15 the record is dynamic type where the data is loaded statically (true/false)
Records are preferred when the program is to process the fields in different ways. (true/false)
Arrays are preferred when the program is to process the data in the same way. (true/false)
A ___ is a data type that is similar to a record, except that the elements are not named.
List are sequence containers that allow non-contiguous memory allocation. (true/false)
A ___ type is one in which the variables have a range of values that consists of memory addresses.
Pointers provide a way to manage (dynamic or static) _____ storage.
A pointer also could be interpreted as a reference to the value in the memory cell pointed to by the memory cell to which the pointer variable is bound. In this case, the pointer is interpreted as indirect reference. (true/false)
A programming language is strongly typed if type errors are always detected. (true/false)
Type checking is the activity of ensuring that the operands of an operator are of compatible types and is always performed at compilation time. (true/false)
Dynamic type binding requires type checking at run time, which is called dynamic type checking. (true/false)
YOU MIGHT ALSO LIKE...
CSCI 112 Test 1
Lesson 2: Database Administration Fundamentals - C…
APCS Chapter 11
CS 4337 pt. 3
OTHER SETS BY THIS CREATOR
The Periodic Table of the Elements
Computer Networks Final Review.