Escrito por estudiantes que aprobaron Inmediatamente disponible después del pago Leer en línea o como PDF ¿Documento equivocado? Cámbialo gratis 4,6 TrustPilot
logo-home
Document preview thumbnail
Vista previa 4 fuera de 35 páginas
Examen

CNIT 315 Exam 2 (2026/2027) | Recent Questions | 100% Accurate Answers | A+ Verified

Document preview thumbnail
Vista previa 4 fuera de 35 páginas

CNIT 315 Exam 2 (2026/2027) | Recent Questions | 100% Accurate Answers | A+ Verified

Vista previa del contenido

CNIT 315 Exam 2 (2026/2027) | Recent
Questions | 100% Accurate Answers | A+
Verified
• Data field -✓✓data items that are entities themselves (ex. Name: __________)


• Record -✓✓all data fields form a single field called this


• Structure -✓✓In C a record is referred to as this


• Structure's form -✓✓consists of the symbolic names, data types, and
arrangement of individual data fields in the record


• Structure's contents -✓✓consist of the actual data stored in the symbolic
names


• Single Structure layout -✓✓struct
{
int month;
int day;
int year;
} birth;


• Single Structure definition -✓✓Reserves storage for the individual data items
listed in the structure

,• Members of the structure -✓✓data items declared in the struct (ex. int month;)


• Populating the structure -✓✓Assigning actual data values to the data items of a
structure


• Rigid -✓✓Spacing of a structure is not ________


• Structure type name -✓✓defined by user and first letter is capital (ex. struct
Date)


• Arrays -✓✓Initialization of structures follows the same rules as for the
initialization of ___________


• True -✓✓Structure members can be of any data type


• struct
{
char name[20];
struct Date birth;
} person;


Valid: person.name[4]; -✓✓Individual members can be arrays and structures,
advantage that same structure type can be used in a list many times

,• NUMRECS 5 -✓✓Used to define an array of data


• 0/nulls -✓✓Without explicit initializers, the numeric elements of both static and
external arrays or structures are initialized to ______________


• Parallel arrays -✓✓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); -✓✓Individual structure members may be
passed to a function in the same manner as any scalar variable


• calcPay(emp); -✓✓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 -✓✓A structure can be passed by this ( ex. calcNet(&emp);
double calcNet(struct Employee *pt)
(*pt).idNum or *pt->idNum )


• ++ and -- -✓✓can be applied to structures (ex. ++pt->hours
(pt++)->hours
(++pt)->hours )

, • Union definiton -✓✓is a data type that reserves the same area in memory for
two or more variables, only one at a time though, reserves sufficient memory
locations to accommodate its largest member's data type


• Union layout -✓✓union
{
char key;
int num;
double price;
} val;


• struct
{
char uType;
union
{
char *text;
double rate;
} uTax;
} flag;

How would you reference rate? -✓✓flag.uTax.rate


• struct
{
char uType;

Información del documento

Subido en
18 de julio de 2026
Número de páginas
35
Escrito en
2025/2026
Tipo
Examen
Contiene
Preguntas y respuestas
$13.99

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Seller avatar
PassHub
5.0
(1)
Vendido
7
Seguidores
1
Artículos
2125
Última venta
4 días hace


Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes