[1] User-defined data types

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

Name and define three composite data types:

- records - sets - classes/objects - array - list

Name two non-composite data types

1. Enumerated data type 2. Pointer data type

What is a record?

A collection of related items which may have different data types

What is a class?

A data type that gives the properties and methods for an object

What is a set?

A data type that: - stores a finite number of different values that have no order - supports mathematical operations (such as unions and intercepts)

What is the type definition for a record?

TYPE <identifier> DECLARE <identifier 1> : <data type 1> DECLARE <identifier 2> : <data type 2> DECLARE <identifier 3> : <data type 3> ENDTYPE

What is the type definition for an enumerated data type?

TYPE <identifier> = (value1, value2, value3, ..)

What is the type definition for a pointer data type?

TYPE <identifier> = ^<data type of memory location>

What is the type definition for a set?

TYPE <identifier>= SET OF <base type>

What is a non-composite data type?

A single data type that: -does not involve a reference to another data type -is usually built into the programming language

What is a list?

An indexed collection of items that can have different data types

What is an array?

An indexed collection of items with the same data type

What is an object?

An instance of a class

What is a composite data type?

a data type constructed from other data types

What is a user-defined data type?

a data type derived from one or more existing data types that are used to: -extend the built-in data types -create data-types specific to applications

What is an enumerated data type?

a non-composite data type defined by a given list of all possible values that have an implied order

What is a pointer data type?

a non-composite data type that uses a whole number to reference a memory address of where the data is stored


संबंधित स्टडी सेट्स

Chapter 11 Integrated Exercise Programming: From Evidence to Practice

View Set

U.S. ARMY Maps - Marginal Information and Map Symbols

View Set

Equities: Special Securities and Financial Listings

View Set