Question
Quiz Question 1 options: Question 1 (1 point) A data type can be declared as a structure using the keyword___________ Save Question 2 (3 points)
Quiz
Question 1 options:Question 1 (1 point)
A data type can be declared as a structure using the keyword___________
Save
Question 2 (3 points)
Question 2 options:
A structure field can be accessed by specifying the______________________
, followed by a____________________
, followed by the_________________________
Save
Question 3 (1 point)
Passing a structure to a function using pass-by-reference could be overly time-consuming if the structure is complicate or contains arrays.
Question 3 options:
True | |
False |
Save
Question 4 (2 points)
Question 4 options:
A structure is a collection of one or more ______________________
, possibly of different types, grouped together under a single ___________________________
for convient handling.
Save
Question 5 (2 points)
Question 5 options:
____________________________________can be used to give a name to some existing type, and this name can then be used to declare variables of that
Save
Question 6 (1 point)
The overhead of passing a structure to a function using pass-by-value can be overcome by instead passing the address of a structure (pass-by-reference).
Question 6 options:
True | |
False |
Save
Question 7 (1 point)
A structure can be used as part of the definition of another structure - a structure within a structure, called a nested structure.
Question 7 options:
True | |
False |
Save
Question 8 (1 point)
Which statement could be used to access the year field of a dynamically declared date structure variable with the following struct declaration:
typedef struct date{
int month;
int day;
int year } Date;
Question 8 options:
my_date.year | |
my_date->year | |
my_date*year | |
&my_date.year |
Save
Question 9 (1 point)
Question 9 options:
A structure may be nested as deeply as you want with the dot (.) operator associating nested access from___________________________
to ___________________________
Save
Question 10 (1 point)
Which statement could be used to access the year field of a statically declared date structure variable with the following struct declaration:
typedef struct date{
int month;
int day;
int year } Date;my_date.year
Question 10 options:
my_date.year | |
my_date->year | |
my_date*year | |
(*my_date).year |
Save
Question 11 (1 point)
Question 11 options:
The period (.) used to access the specific members of a structure is referred to as a _____________________________________________
Save
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started