
Topic 2.5 Video 1
Authored by Myra Deister
Computers
11th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Make sure you view the video on AP Classroom.
Given the method signature double calcAverage(int num1, int num2, double num3)
What type of data will the method return?
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A programmer is asked to create a method that calculates and returns the net salary for an employee's pay stub. The gross salary, tax rate, and other deductions are needed to calculate the net salary.
What would be the most appropriate method header for this method?
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the code to the left.
What is the output of the following code for an object dinner of type Eatout?
System.out.println(dinner.haveDinner(haveDinner(haveDinner("Vege Burger"))));
The Payment is: $15.00
THe payment is : $ 15
The payment is $ 15
The payment is $ 18.00
The payment is : $ 18
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the class definition at the left.
Which of the following calls to the method calculateTotal is valid?
int pay = calculateTotal(50, 20.5);
pay = calculateTotal (50, 20.5);
double pay = calculateTotal (50, 20.5);
double pay = calculateTotal (50.6, 20.5);
boolean pay = calculateTotal (50, 20.5);
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following code.
public double shapes (int numberofSides, double length)
{
//missing code
return measure;
}
Which of the following choices would best replace //missing code?
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Emerging technologies
Quiz
•
6th Grade - University
10 questions
Inspire - AI Trivia
Quiz
•
11th Grade
10 questions
Les variables sous Python
Quiz
•
10th - 12th Grade
9 questions
Internet Protocols
Quiz
•
10th - 11th Grade
10 questions
Empowerment Technologies Quiz 2
Quiz
•
11th Grade
10 questions
Microsoft Teams
Quiz
•
KG - 12th Grade
10 questions
Python Alternating Turns
Quiz
•
7th - 12th Grade
10 questions
Lesson 01 Unit 1 Excel 2019/365 MOAC
Quiz
•
9th - 12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade