Search Header Logo

Topic 2.5 Video 2

Authored by Myra Deister

Computers

11th Grade

Used 1+ times

Topic 2.5 Video 2
AI

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

View the video on AP Classroom.

What is the behavior that is needed for the LunchCalculator program?

Calculate the total for the lunch bill.

Divide the amount of the lunch bill evenly

Calculate the tax that will be charged on the lunch bill.

Divide the amount of the bill into different portions.

2.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

For the Lunch Calculator program, what information is needed? (Select all that apply.)

The number of friends

How much each friend is willing to pay

The total bill for the lunch.

The tax for the bill.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What type of data will be returned for the divideBill method?

double

int

String

boolean

4.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

What data type(s) will the parameters be for the divideBill method? (Select all the apply.)

int

double

String

boolean

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Consider the method go below that should return the sum of the parameters a and b.

 

public double go( double a, double b  )

{  

   /*  blank  */

}

 

Which of the following could correctly fill    /*  blank  */   ?

I.  return a + b;

 

II.  return a - b;

 

III.  return a * b;

 

I only

II only

III only

I and III only

II and III only

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?