• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 2 out of 8 pages
Exam (elaborations)

CNIT 315 Exam 2 Questions and Answers (latest version verified for accuracy) | Latest!! (Verified Answers) Study Guide

Document preview thumbnail
Preview 2 out of 8 pages

CNIT 315 Exam 2 Questions and Answers (latest version verified for accuracy) | Latest!! (Verified Answers) Study Guide

Content preview

CNIT 315 Exam 2 Questions and Answers (latest version verified for accura
cy) | 2026\2027 Latest!! (Verified Answers) Study Guide

1. Data field data items that are entities themselves (ex. Name: __________)

2. Record all data fields form a single field called this

3. Structure In C a record is referred to as this

4. Structure's form consists of the symbolic names, data types, and arrangement of
individual data fields in the record

5. Structure's contents consist of the actual data stored in the symbolic names

6. Single Structure layout struct
{
int month;
int day;
int year;
} birth;

7. Single Structure definition Reserves storage for the individual data items listed in the struc-
ture

8. Members of the structure data items declared in the struct (ex. int month;)

9. Populating the structure Assigning actual data values to the data items of a structure

10. Rigid Spacing of a structure is not ________

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

12. Arrays Initialization of structures follows the same rules as for the initial-
ization of ___________

13. True Structure members can be of any data type

1/8

, CNIT 315 Exam 2 Questions and Answers (latest version verified for accura
cy) | 2026\2027 Latest!! (Verified Answers) Study Guide

14. struct Individual members can be arrays and structures, advantage that
{ same structure type can be used in a list many times
char name[20];
struct Date birth;
} person;

Valid: person.name[4];

15. NUMRECS 5 Used to define an array of data

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

17. 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

18. display(emp.idNum) ; Individual structure members may be passed to a function in the
calc- same manner as any scalar variable
Pay(emp.payRate,emp.hours);

19. calcPay(emp); On most compilers, complete copies of all members of a struc-
ture can also be passed to a function by including the name of
the structure as an argument to the called function

20. Reference A structure can be passed by this ( ex. calcNet(&emp);
double calcNet(struct Employee *pt)
(*pt).idNum or *pt->idNum )

21. ++ and -- can be applied to structures (ex. ++pt->hours
(pt++)->hours
(++pt)->hours )
2/8

Document information

Uploaded on
August 21, 2026
Number of pages
8
Written in
2026/2027
Type
Exam (elaborations)
Contains
Questions & answers
$14.49

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
TESTKIT
5.0
(1)
Sold
850
Followers
0
Items
499
Last sold
1 week ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions