Topic 2.5 Video 1

Quiz
•
Computers
•
11th Grade
•
Medium
Myra Deister
Used 1+ times
FREE Resource
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?
Similar Resources on Wayground
8 questions
CSC60A: Outcome 2/ WQ

Quiz
•
11th Grade
10 questions
แบบทดสอบเรื่องการรับค่าในภาษาไพทอน (รายบุคคล)

Quiz
•
9th - 12th Grade
10 questions
Prueba algoritmo

Quiz
•
7th Grade - University
7 questions
Tipos de dados

Quiz
•
9th - 12th Grade
10 questions
Conhecimentos prévios em Java

Quiz
•
10th - 12th Grade
10 questions
CP1 Assessment

Quiz
•
11th Grade
9 questions
TEST D'INGRESSO_C

Quiz
•
10th - 12th Grade
6 questions
Java array

Quiz
•
11th Grade - University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade