Week 3 Quiz
Sign in to Google to save your progress. Learn more
Image 1
Image 1
Debugging is made easy if error messages are understood by the programmer. What does the column highlighted in Image 1 represents?
Hint: This is not covered explicitly in the lecture. However, you can create errors to try and understand what the above might mean
Clear selection
In last week's lecture, the -Wall option was discussed in revealing warnings during compilation of our code. This week, a new option was discussed, -lm. What is this option used for?
Clear selection
In previous weeks, C libraries were discussed. This week, a particular one was discussed in detail - math.h. What is the purpose of using math.h?
Clear selection
Image 2
Image 1
In page 7 of week 3 lecture notes, temperature (T) is shown to be computed in a formula as seen in Image 2 above. What would be the appropriate data type for T?
Hint: Note that while whole numbers have no decimal places, division might lead to some decimal places.
Clear selection
This week a new topic was discussed - writing our own functions. What are the names that can be given to our own functions?
Clear selection
Return types of our functions determine the type of value that can be returned with the "return" keyword. Which of the following data types is an invalid return type?
Clear selection
Sometimes function parameters are used to pass values into functions. What is the limit of function parameters that can be written into a function?
Clear selection
To compile programs with our own functions (besides the main function), what additional options must be added to the gcc command?
Clear selection
In exercise #4 (pg 34), part of the question focuses on getting the right-most digit of a number (i.e. 6 is the right-most digit of 123456). How can this be done?
Hint: Since the subject here are numbers, focus on operators that perform reduction
Clear selection
Next
Clear form
Never submit passwords through Google Forms.
This content is neither created nor endorsed by Google. - Terms of Service - Privacy Policy

Does this form look suspicious? Report