Home
Browse
Create
Search
Log in
Sign up
Upgrade to remove ads
Only $2.99/month
Programming Languages Review
STUDY
Flashcards
Learn
Write
Spell
Test
PLAY
Match
Gravity
Terms in this set (27)
data type
A ____ defines a collection of data values and a set of predefined operations on those values
descriptor
A ____ is the collection of the attributes of a variable
primitive data types
____ are types that cannot be further defined
boolean
Give an example of a data type that cannot be further defined.
string
Give an example of a data type that can be further defined.
enumeration
days (Mon, Tue, Wed, Thu, Fri, Sat, Sun); is an example of what kind of data type?
arrays
____ are data elements in which an individual element is identified by its position relative to the first element.
static
A ____ array is one in which the subscripts ranges are statically bound and storage allocation is static (done before run time)
fixed stack-dynamic
A ____ array is one in which the subscript ranges are statically bound, but that allocation is done at declaration elaboration time during execution
true
A jagged array is stored with each row in various lengths. (true/false)
true
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?
true
Hashing is used to determine the index value in some arrays in some languages. (true/false)
true
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)
...
Problem 15.
In the following
01 EMPLOYEE-RECORD
02 EMPLOYEE-NAME
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?
true
In problem 15 the record is static type where the data is loaded dynamically. (true/false)
false
In problem 15 the record is dynamic type where the data is loaded statically (true/false)
true
Records are preferred when the program is to process the fields in different ways. (true/false)
true
Arrays are preferred when the program is to process the data in the same way. (true/false)
tuple
A ___ is a data type that is similar to a record, except that the elements are not named.
true
List are sequence containers that allow non-contiguous memory allocation. (true/false)
pointer
A ___ type is one in which the variables have a range of values that consists of memory addresses.
dynamic
Pointers provide a way to manage (dynamic or static) _____ storage.
true
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)
true
A programming language is strongly typed if type errors are always detected. (true/false)
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)
true
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
23 terms
Lesson 2: Database Administration Fundamentals - C…
148 terms
APCS Chapter 11
40 terms
CS 4337 pt. 3
27 terms
OTHER SETS BY THIS CREATOR
element names
118 terms
The Periodic Table of the Elements
92 terms
Computer Networks Final Review.
44 terms
Midterm Review
12 terms