stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Concepts of Programming Languages-Ch 5-6 Flashcards | StudBud
Explore
/
Concepts of Programming Languages-Ch 5-6
6: An array
5: Aliasing means
Concepts of Programming Languages-Ch 5-6
20 terms
·
StudBud Administration
·
86 plays
Ch 5: Names/Bindings/Scopes Ch 6: Data Types
Flashcards
20 cards
F
Practice quiz
P
Host live
L
Questions
20
Answers
1
5: Aliasing means
Using the same name as a standard library variable
Two or more variables bound to the same memory
Two variables with the same name bound to different memory
An illegal variable name
2
6: An array
is not necessarily homogeneous
should have elements of different types
must have elements of the same type
is a homogeneous aggregate of data elements
3
6: Identifiers are just one of the attributes of a variable
False
True
4
5: Design issues for variable names are:
Not having too many in one program
Case sensitivity and the use of underscores
Restricting to English
Length of the names
5
6: A record
is a group of data elements identified by names and offsets
only exists in relational data base systems
is another form of an array
is the struct data type in C++
6
6: An associative array
has two values in each index
must have a size limit or be statically sized
is an unordered collection of data elements indexed by keys
is another name for a hash structure
7
5: Dynamic scoping is
based on the arrangement of subprogram code
based on the calling sequence of subprograms
8
6: A descriptor
is the collection of the attributes of a variable
is an area of memory that stores attributes of a variable
is another name for a program comment
is used for type checking
9
6: Primitive data types include
Integers, floating-point, and Boolean
Vectors and arrays
Strings and arrays
Classes, objects, and Arrays
10
5: A variable with static scoping
must be initialized with a literal value in the source code
means the compiler can determine its scope
11
6: A data type
can be abstract
does not always define what operations are legal on the type
defines a collection of data values & predefined operations
has different meanings in different languages
12
5: a local variable
is valid only in certain geographic locations
is part of the call stack
is used for geo fencing
cannot be accessed globally
13
5: A reserved word
Can be redefined by a programmer
Make programs more readable by naming actions to perform
Cannot be used as a variable name
Cannot be redefined by a programmer
14
5: Binding is
is an association between an operation and a symbol
an association between a variable and its type value
is another way to link programs together
can be static or dynamic
15
5: The type of a variable
determines the operations defined for values of the type
only matters for character types
only matters for integer types
determines the range of values the variable can store
16
6: Enumeration types
define all possible values as named constants
define the most common values as named constants
17
5: The referencing environment of a statement is
only the local variables visible to the statement
all of the variables visible to the statement
18
5: The address of a variable
Is sometimes called its l-value
Is the machine memory address with which it is associated
Can be the same as another variable's address
Can change during the execution of a program
19
5: The scope of a variable is
how often it is referenced in a program
how much memory it uses
the range of statements where it is visible
the number of programs it appears in
20
6: An array index is the same as an array subscript
False
True