Podcast
Questions and Answers
In the given text, which function returns the width of the rectangle?
In the given text, which function returns the width of the rectangle?
- area(Rectangle rec)
- width(Rectangle rec) (correct)
- perimeter(Rectangle rec)
- length(Rectangle rec)
What is the purpose of the 'scores' array in the structure Student?
What is the purpose of the 'scores' array in the structure Student?
- To store student names
- To store student test scores (correct)
- To store student ages
- To store student tuition fees
Which of the following is an example of an array of structures in the text?
Which of the following is an example of an array of structures in the text?
- idnumber name age tuitionfee scores 103 John Son 19 14506.25 8 8 7 9 9
- idnumber name age tuitionfee scores 102 Mari Mar 20 20500.75 5 8 10 9 9 (correct)
- length(Rectangle rec); //returns the length of the rectangle
- idnumber name age tuitionfee scores 101 Jose Rizal 18 24500.25 10 8 10 9 9
What does 's' represent in the function declaration mentioned in the text?
What does 's' represent in the function declaration mentioned in the text?
Which operator is no longer used in the input function according to the text?
Which operator is no longer used in the input function according to the text?
What would be returned by the function 'area(Rectangle rec)'?
What would be returned by the function 'area(Rectangle rec)'?
What is typically passed along with an array when it is passed to a function?
What is typically passed along with an array when it is passed to a function?
Which data does the 'tuitionfee' field store in the structure Student?
Which data does the 'tuitionfee' field store in the structure Student?
'John Son' in the text has what age?
'John Son' in the text has what age?
'Mari Mar' in the text has how many test scores?
'Mari Mar' in the text has how many test scores?