Deck 8: Data Types

ملء الشاشة (f)
exit full mode
سؤال
All data types must be named.
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
Ada has a completely safe union mechanism,called a variant record.
سؤال
Ada is a language with no explicit types.
سؤال
Subset types inherit operations from their parent types.
سؤال
Enumerated types are never ordered.
سؤال
Java does not allow dynamically sized arrays.
سؤال
All computer data is finite.
سؤال
Every language comes with a set of predefined types from which all other types are constructed.
سؤال
In Ada,simple data types are called scalar types.
سؤال
A union is considered to be discriminated if a tag is added to the union to distinguish the type of the element.
سؤال
Polymorphism allows names to have multiple types but does not allow for static type checking.
سؤال
Static type information allows compilers to allocate memory efficiently.
سؤال
For multidimensional arrays,the column-major form of allocation can be used only if all array indices must be specified together.
سؤال
In a strongly typed programming language,the set of legal programs is a proper subset of the set of safe programs.
سؤال
Pointers are often used in the creation of recursive types.
سؤال
Explicit typing can be used to remove ambiguities in programs.
سؤال
In C,types that are constructed using type constructors are called derived types.
سؤال
A reference is the address of an object under control of the system,which cannot be used as a value or operated on in any way.
سؤال
In C/C++,multidimensional array declarations must have all but the first dimension specified.
سؤال
The type system is the naming convention for data types.
سؤال
In Java,types constructed using type constructors are called ____ types.

A) reference
B) simple
C) primitive
D) integral
سؤال
Casts are permitted on structured types if they have identical sizes in memory.
سؤال
Each type descriptor includes a field called a type form to identify the category of the data type.
سؤال
The process a translator goes through to determine whether the type information in a program is consistent is called type ____.

A) inference
B) constructing
C) equivalence
D) checking
سؤال
To create a new data type that contains a subset of a known data type,the ____ mechanism is used.

A) subtype
B) anonymous union
C) intersection
D) product
سؤال
A narrowing conversion is an implicit conversion that may result in loss of data.
سؤال
A data type is a(n)____.

A) encoding form
B) set of values
C) style of storage
D) group of locations in memory
سؤال
Type ____ algorithms determine if two separately declared types are the same.

A) inference
B) equivalence
C) comparison
D) enforcing
سؤال
____ types have no name.

A) Generic
B) Anonymous
C) Variable
D) User-defined
سؤال
Type ____ are used to construct complex types from basic types.

A) constructors
B) assemblers
C) checkers
D) combiners
سؤال
Static type checking occurs at runtime.
سؤال
____ types are sets whose elements are named and listed explicitly.

A) List
B) Array
C) Enumerated
D) Simple
سؤال
In C,the Cartesian product type constructor is available as the ____ construction.

A) structure
B) set
C) array
D) enumerator
سؤال
Type declaration is the process of ____.

A) inferring new data types
B) creating type constructors
C) naming new data types
D) associating data types to identifiers
سؤال
Hindley-Milner type checking assigns type variables to all unnamed types.
سؤال
The process of attaching types to expressions is called type ____.

A) construction
B) inference
C) equivalence
D) checking
سؤال
Languages without static type systems are usually called ____ languages.

A) reverse typed
B) untyped
C) weakly typed
D) strongly typed
سؤال
To obtain the value of a location in memory referenced by a pointer,the pointer must be ____.

A) dereferenced
B) linked
C) evaluated
D) retrieved
سؤال
A(n)____ type uses itself in its declaration.

A) bootstrap
B) recursive
C) reference
D) enumerated
سؤال
Which of the following languages has no explicit types or translation-time typing?

A) Ada
B) Java
C) C++
D) Scheme
سؤال
Ordinal data types in Ada are called ____ types.

A) simple
B) scalar
C) composite
D) discrete
سؤال
If a type must be inferred by the translator,it is considered to be a(n)____ type.

A) explicit
B) strong
C) implicit
D) weak
سؤال
If information is maintained and checked at runtime,the checking is ____.

A) dynamic
B) static
C) referential
D) inferential
سؤال
The primary data structure used to represent type attributes is called a type ____.

A) definer
B) descriptor
C) constructor
D) enumerator
سؤال
Implicit conversions are often referred to as ____.

A) type leaps
B) symbolic conversions
C) interpretive conversions
D) coercions
سؤال
Explicit conversions are often referred to as ____.

A) casts
B) coercions
C) narrowing conversions
D) widening conversions
سؤال
When a structured type is cast,the translation merely ____ the memory as a different type.

A) reallocates
B) references
C) reinterprets
D) realigns
سؤال
____ is a term used for the type correctness of assignments.

A) Assignment linking
B) Value assignment
C) Assignment compatibility
D) Backwards compatibility
سؤال
____ equivalence in type checking is when two objects are built in the same way using the same type constructors from the same simple types.

A) Referential
B) Simple
C) Constructor
D) Structural
سؤال
The most general type possible for a polymorphic function with a given implementation is called its ____ type.

A) general
B) base
C) principal
D) specialized
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/50
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
Deck 8: Data Types
1
All data types must be named.
False
2
Ada has a completely safe union mechanism,called a variant record.
True
3
Ada is a language with no explicit types.
False
4
Subset types inherit operations from their parent types.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
5
Enumerated types are never ordered.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
6
Java does not allow dynamically sized arrays.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
7
All computer data is finite.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
8
Every language comes with a set of predefined types from which all other types are constructed.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
9
In Ada,simple data types are called scalar types.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
10
A union is considered to be discriminated if a tag is added to the union to distinguish the type of the element.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
11
Polymorphism allows names to have multiple types but does not allow for static type checking.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
12
Static type information allows compilers to allocate memory efficiently.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
13
For multidimensional arrays,the column-major form of allocation can be used only if all array indices must be specified together.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
14
In a strongly typed programming language,the set of legal programs is a proper subset of the set of safe programs.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
15
Pointers are often used in the creation of recursive types.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
16
Explicit typing can be used to remove ambiguities in programs.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
17
In C,types that are constructed using type constructors are called derived types.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
18
A reference is the address of an object under control of the system,which cannot be used as a value or operated on in any way.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
19
In C/C++,multidimensional array declarations must have all but the first dimension specified.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
20
The type system is the naming convention for data types.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
21
In Java,types constructed using type constructors are called ____ types.

A) reference
B) simple
C) primitive
D) integral
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
22
Casts are permitted on structured types if they have identical sizes in memory.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
23
Each type descriptor includes a field called a type form to identify the category of the data type.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
24
The process a translator goes through to determine whether the type information in a program is consistent is called type ____.

A) inference
B) constructing
C) equivalence
D) checking
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
25
To create a new data type that contains a subset of a known data type,the ____ mechanism is used.

A) subtype
B) anonymous union
C) intersection
D) product
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
26
A narrowing conversion is an implicit conversion that may result in loss of data.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
27
A data type is a(n)____.

A) encoding form
B) set of values
C) style of storage
D) group of locations in memory
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
28
Type ____ algorithms determine if two separately declared types are the same.

A) inference
B) equivalence
C) comparison
D) enforcing
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
29
____ types have no name.

A) Generic
B) Anonymous
C) Variable
D) User-defined
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
30
Type ____ are used to construct complex types from basic types.

A) constructors
B) assemblers
C) checkers
D) combiners
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
31
Static type checking occurs at runtime.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
32
____ types are sets whose elements are named and listed explicitly.

A) List
B) Array
C) Enumerated
D) Simple
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
33
In C,the Cartesian product type constructor is available as the ____ construction.

A) structure
B) set
C) array
D) enumerator
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
34
Type declaration is the process of ____.

A) inferring new data types
B) creating type constructors
C) naming new data types
D) associating data types to identifiers
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
35
Hindley-Milner type checking assigns type variables to all unnamed types.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
36
The process of attaching types to expressions is called type ____.

A) construction
B) inference
C) equivalence
D) checking
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
37
Languages without static type systems are usually called ____ languages.

A) reverse typed
B) untyped
C) weakly typed
D) strongly typed
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
38
To obtain the value of a location in memory referenced by a pointer,the pointer must be ____.

A) dereferenced
B) linked
C) evaluated
D) retrieved
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
39
A(n)____ type uses itself in its declaration.

A) bootstrap
B) recursive
C) reference
D) enumerated
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
40
Which of the following languages has no explicit types or translation-time typing?

A) Ada
B) Java
C) C++
D) Scheme
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
41
Ordinal data types in Ada are called ____ types.

A) simple
B) scalar
C) composite
D) discrete
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
42
If a type must be inferred by the translator,it is considered to be a(n)____ type.

A) explicit
B) strong
C) implicit
D) weak
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
43
If information is maintained and checked at runtime,the checking is ____.

A) dynamic
B) static
C) referential
D) inferential
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
44
The primary data structure used to represent type attributes is called a type ____.

A) definer
B) descriptor
C) constructor
D) enumerator
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
45
Implicit conversions are often referred to as ____.

A) type leaps
B) symbolic conversions
C) interpretive conversions
D) coercions
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
46
Explicit conversions are often referred to as ____.

A) casts
B) coercions
C) narrowing conversions
D) widening conversions
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
47
When a structured type is cast,the translation merely ____ the memory as a different type.

A) reallocates
B) references
C) reinterprets
D) realigns
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
48
____ is a term used for the type correctness of assignments.

A) Assignment linking
B) Value assignment
C) Assignment compatibility
D) Backwards compatibility
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
49
____ equivalence in type checking is when two objects are built in the same way using the same type constructors from the same simple types.

A) Referential
B) Simple
C) Constructor
D) Structural
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
50
The most general type possible for a polymorphic function with a given implementation is called its ____ type.

A) general
B) base
C) principal
D) specialized
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.