CNIT 315 ACTUAL QUESTIONS AND
CORRECT ANSWERS COMPLETE
INFORMATION TECHNOLOGY STUDY
GUIDE
●● Record
Answer: all data fields form a single field called this
●● Structure
Answer: In C a record is referred to as this
●● Structure's form
Answer: consists of the symbolic names, data types, and arrangement of
individual data fields in the record
●● Structure's contents
Answer: consist of the actual data stored in the symbolic names
●● Single Structure layout
Answer: struct
{
int month;
,int day;
int year;
} birth;
●● Single Structure definition
Answer: Reserves storage for the individual data items listed in the
structure
●● Members of the structure
Answer: data items declared in the struct (ex. int month;)
●● Populating the structure
Answer: Assigning actual data values to the data items of a structure
●● Rigid
Answer: Spacing of a structure is not ________
●● Structure type name
Answer: defined by user and first letter is capital (ex. struct Date)
●● Arrays
Answer: Initialization of structures follows the same rules as for the
initialization of ___________
,●● True
Answer: Structure members can be of any data type
●● struct
{
char name[20];
struct Date birth;
} person;
Valid: person.name[4];
Answer: Individual members can be arrays and structures, advantage
that same structure type can be used in a list many times
●● NUMRECS 5
Answer: Used to define an array of data
●● 0/nulls
Answer: Without explicit initializers, the numeric elements of both static
and external arrays or structures are initialized to ______________
●● Parallel arrays
, Answer: are two or more arrays, where each array has the same number
of elements and the elements in each array are directly related by their
position in the arrays, rarely used anymore
●● display(emp.idNum) ;
calcPay(emp.payRate,emp.hours);
Answer: Individual structure members may be passed to a function in
the same manner as any scalar variable
●● calcPay(emp);
Answer: On most compilers, complete copies of all members of a
structure can also be passed to a function by including the name of the
structure as an argument to the called function
●● Reference
Answer: A structure can be passed by this ( ex. calcNet(&emp);
double calcNet(struct Employee *pt)
(*pt).idNum or *pt->idNum )
●● ++ and --
Answer: can be applied to structures (ex. ++pt->hours
(pt++)->hours
(++pt)->hours )
CORRECT ANSWERS COMPLETE
INFORMATION TECHNOLOGY STUDY
GUIDE
●● Record
Answer: all data fields form a single field called this
●● Structure
Answer: In C a record is referred to as this
●● Structure's form
Answer: consists of the symbolic names, data types, and arrangement of
individual data fields in the record
●● Structure's contents
Answer: consist of the actual data stored in the symbolic names
●● Single Structure layout
Answer: struct
{
int month;
,int day;
int year;
} birth;
●● Single Structure definition
Answer: Reserves storage for the individual data items listed in the
structure
●● Members of the structure
Answer: data items declared in the struct (ex. int month;)
●● Populating the structure
Answer: Assigning actual data values to the data items of a structure
●● Rigid
Answer: Spacing of a structure is not ________
●● Structure type name
Answer: defined by user and first letter is capital (ex. struct Date)
●● Arrays
Answer: Initialization of structures follows the same rules as for the
initialization of ___________
,●● True
Answer: Structure members can be of any data type
●● struct
{
char name[20];
struct Date birth;
} person;
Valid: person.name[4];
Answer: Individual members can be arrays and structures, advantage
that same structure type can be used in a list many times
●● NUMRECS 5
Answer: Used to define an array of data
●● 0/nulls
Answer: Without explicit initializers, the numeric elements of both static
and external arrays or structures are initialized to ______________
●● Parallel arrays
, Answer: are two or more arrays, where each array has the same number
of elements and the elements in each array are directly related by their
position in the arrays, rarely used anymore
●● display(emp.idNum) ;
calcPay(emp.payRate,emp.hours);
Answer: Individual structure members may be passed to a function in
the same manner as any scalar variable
●● calcPay(emp);
Answer: On most compilers, complete copies of all members of a
structure can also be passed to a function by including the name of the
structure as an argument to the called function
●● Reference
Answer: A structure can be passed by this ( ex. calcNet(&emp);
double calcNet(struct Employee *pt)
(*pt).idNum or *pt->idNum )
●● ++ and --
Answer: can be applied to structures (ex. ++pt->hours
(pt++)->hours
(++pt)->hours )