click below
click below
Normal Size Small Size show me how
Mod4 CP2
| Question | Answer |
|---|---|
| A ______ is a group of elements which are of different type. | structure |
| each element inside a structure is called? | member |
| The important property of structures is that the data in a structure can be a collection of data items of ______ | diverse types |
| true or false: A structure variable can hold values just like any other variable can | true |
| true or false :A structure value is a collection of bigger values called member values. | false (smaller values) |
| to declare a structure the keyword is? | struct |
| true or false: after declaring a structure, then inside the curly braces, you can declare one or more members (declare variables inside curly braces) of that structure | true |
| how many members are there in this structure: struct Person { char name[50]; int age; float salary; }; | 3 members |
| true or false: a structure variable is the identifier after declaring the struct | true |
| which one is the struct variable: Person bill; | bill |
| The members of structure variable is accessed using _____ operator. | dot (.) operator |
| If access specifier is not declared explicitly, then by default access specifier will be _____ | public |
| The instance of the structure is known as _______ | structure variable |
| true or false: we can use array of structures | true |
| true or false: A structure variable can be passed to a function in similar way as normal argument. | true |
| this is calling of ____ if the original value is not modified, a copy of variable is passed, actual and formal arguments will be created in different memory locations | call by value |
| this is calling of ____ if the original value is modified, a variable itself is passed, actual and formal arguments will store in the same memory location | call by reference |