CSC102 Chapter 9 Quiz with Complete Solutions
CSC102 Chapter 9 Quiz with Complete Solutions A function can return a value of the type array. - Answer-False A function can return a value of the type struct. - Answer-True A list has two items associated with it: . - Answer-the values and the length A struct is typically a data structure. - Answer-heterogeneous A struct variable can be passed as a parameter . - Answer-either by value or by reference Aggregate input/output operations are allowed on a struct variable. - Answer-False An array name and index are separated using . - Answer-square brackets Consider the following function prototype: int seqSearch(const listType& list, int searchItem); The actual parameter cannot be modified by . a. list b. seqSearch c. searchItem d. listType - Answer-list
Document information
- Uploaded on
- January 30, 2024
- Number of pages
- 10
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers