CS 180 Final Exam Question with complete solutions 2023/2024
CS 180 Final Exam Question with complete solutions 2023/2024in MethodName(int x, int y = 20); the "int y = 20" is a ______. - correct answer default value What type of method does not save a value that is returned by the actions of the method? - correct answer void method A __________________ __________________ method saves a value that is returned by the actions of the method - correct answer value returning To write the line of code that will make the method execute is to _______ or _________ a method. - correct answer invoke, call When an argument is __________ __________ __________ the method does not change that value outside of the method. - correct answer passed by value The _________ of a variable is the extent of time that a variable is stored in memory. - correct answer scope Write a statement that calls this method private void ShowMessage(string msg); - correct answer ShowMessage("hi");
Written for
- Institution
- CSE 180
- Course
- CSE 180
Document information
- Uploaded on
- December 8, 2023
- Number of pages
- 3
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers
Subjects
-
cs 180 final exam question with complete solutions
Also available in package deal