Topic 2.5 Video 2

Topic 2.5 Video 2

11th Grade

5 Qs

quiz-placeholder

Similar activities

CM-Acronym Quiz 3

CM-Acronym Quiz 3

7th Grade - University

10 Qs

linux basics

linux basics

9th Grade - University

10 Qs

Java

Java

11th Grade

10 Qs

CSS (Text-Font-Box)

CSS (Text-Font-Box)

1st Grade - University

10 Qs

some questions

some questions

11th Grade - University

8 Qs

Photoshop Layers Review

Photoshop Layers Review

9th - 12th Grade

10 Qs

AP CSA Unit 1 & 2 Review

AP CSA Unit 1 & 2 Review

9th - 12th Grade

10 Qs

C sharp

C sharp

11th Grade

9 Qs

Topic 2.5 Video 2

Topic 2.5 Video 2

Assessment

Quiz

Computers

11th Grade

Easy

Created by

Myra Deister

Used 1+ times

FREE Resource

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