Exam 6: Using Methods
Exam 1: An Overview of Computers and Logic50 Questions
Exam 2: Understanding Structure50 Questions
Exam 3: Making Decisions50 Questions
Exam 4: Looping50 Questions
Exam 5: Arrays50 Questions
Exam 6: Using Methods50 Questions
Exam 7: Object-Oriented Programming50 Questions
Select questions type
____ is the feature of programs that assures you a module has been tested and proven to function correctly.
Free
(Multiple Choice)
4.7/5
(42)
Correct Answer:
C
A method's return statement can return one value at most.
Free
(True/False)
4.8/5
(43)
Correct Answer:
True
When multiple parameters appear in a method header,they compose a(n)____ list.
Free
(Multiple Choice)
4.9/5
(37)
Correct Answer:
D
In most circumstances,you should not declare global variables and constants.
(True/False)
4.8/5
(36)
The more the statements in a method contribute to the same job,the greater the ____ of the method.
(Multiple Choice)
4.8/5
(51)
When a method returns nothing it is known as a(n)____ method.
(Multiple Choice)
4.9/5
(50)
List two occasions when you might consider declaring variables and constants globally.
(Essay)
4.8/5
(41)
A declaration for a method that receives two or more arguments can list the type for each parameter together if they are the same type.
(True/False)
4.8/5
(33)
All modern programming languages contain many built-in,prewritten ____ to save time and effort.
(Multiple Choice)
4.7/5
(40)
The modular nature of structured programs means that work can be divided among many programmers.
(True/False)
4.9/5
(41)
Write the pseudocode for the method named computeArea.The method should display "The area is " and numeric value: result.It should have two numeric parameters: width and length.width multiplied by length is equal to result.
(Essay)
4.8/5
(39)
Along with an identifier and parameter list,a return type is part of a method's ____.
(Multiple Choice)
4.8/5
(40)
Case 1
You have just starting working at Quantum Company. As a new programmer, you have been asked to review and correct various pseudocode.
-The following pseudocode is not working correctly. What code needs to be corrected? This is the call to the method: displayName()
And this is the method:
DisplayName(string name)
Output "My name is " name
Return
(Multiple Choice)
4.9/5
(28)
____ means paying attention to important properties while ignoring nonessential details.
(Multiple Choice)
4.9/5
(36)
Write the pseudocode for the method named computeSum.The method should return a numeric value: result.The method should have two numeric parameters: amount1 and amount2. result is equal to the sum of amount1 and amount2.
(Essay)
4.8/5
(32)
To execute a method,you invoke it or ____ it from another program or method.
(Multiple Choice)
4.8/5
(31)
In a program,when you send a value to a method,you send a(n)____ to the method.
(Multiple Choice)
4.7/5
(32)
Programmers use the term ____ to describe any extra time and resources required by an operation.
(Multiple Choice)
4.8/5
(38)
Showing 1 - 20 of 50
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)