Structures: Structures and Structures as an Argument.
Quiz yourself by thinking what should be in
each of the black spaces below before clicking
on it to display the answer.
Help!
|
|
||||
---|---|---|---|---|---|
A _______ is a collection of variables of different data types under a single name. | show 🗑
|
||||
show | Structure
🗑
|
||||
show | True
🗑
|
||||
The _____ keyword defines a structure type followed by an identifier (name of the structure). | show 🗑
|
||||
The struct keyword defines a structure type followed by a/an _______. | show 🗑
|
||||
Inside the curly braces, you can NOT declare more than one member (declare variables inside curly braces) of that structure. True or False? | show 🗑
|
||||
Is this Structure declaration correct: struct Person { char name[50]; int age; float salary; }; True or False? | show 🗑
|
||||
show | False, no memory is allocated. ;-)
🗑
|
||||
A semicolon is required to end a Structure declaration. True or False? | show 🗑
|
||||
show | Person L;
🗑
|
||||
show | dot (.) operator.
🗑
|
||||
show | True
🗑
|
||||
show | Data Members
🗑
|
||||
show | Member Functions
🗑
|
||||
Structures in C++ can contain two types of members (Two Answers): Member Prototypes Member Functions Object Members Data Members | show 🗑
|
Review the information in the table. When you are ready to quiz yourself you can hide individual columns or the entire table. Then you can click on the empty cells to reveal the answer. Try to recall what will be displayed before clicking the empty cell.
To hide a column, click on the column name.
To hide the entire table, click on the "Hide All" button.
You may also shuffle the rows of the table by clicking on the "Shuffle" button.
Or sort by any of the columns using the down arrow next to any column heading.
If you know all the data on any row, you can temporarily remove it by tapping the trash can to the right of the row.
To hide a column, click on the column name.
To hide the entire table, click on the "Hide All" button.
You may also shuffle the rows of the table by clicking on the "Shuffle" button.
Or sort by any of the columns using the down arrow next to any column heading.
If you know all the data on any row, you can temporarily remove it by tapping the trash can to the right of the row.
Embed Code - If you would like this activity on your web page, copy the script below and paste it into your web page.
Normal Size Small Size show me how
Normal Size Small Size show me how
Created by:
Easy Kwatro
Popular Computers sets