question 1 and 2 relate to the information provided below

5
CV AP Comp Sci A Enrichment Practice 2 (Practice 7 for the AP exam) – Digital submission of your ATTEMPT of these problems will be due by 3:00 PM on Tuesday April 21, 2020 if you are submitting for enrichment credit. Here are 5 multiple choice question regarding arrays and ArrayLists and 1 FRQ. Theme continued!!!!!!! No answers are currently being provided nor detailed answers to the FRQ until Tuesday at 3:00 PM. The AP exam is 45 minutes ALL FRQ based questions – which means write or type your code. Some multiple choice questions are good practice for skill and appropriate code required in the FRQ problems. Question 1 and 2 relate to the information provided below – there are 3 classes here that interact. 1.

Upload: others

Post on 21-Nov-2021

0 views

Category:

Documents


0 download

TRANSCRIPT

CV AP Comp Sci A Enrichment Practice 2 (Practice 7 for the AP exam) – Digital submission of your ATTEMPT of

these problems will be due by 3:00 PM on Tuesday April 21, 2020 if you are submitting for enrichment credit.

Here are 5 multiple choice question regarding arrays and ArrayLists and 1 FRQ. Theme continued!!!!!!!

No answers are currently being provided nor detailed answers to the FRQ until Tuesday at 3:00 PM.

The AP exam is 45 minutes ALL FRQ based questions – which means write or type your code.

Some multiple choice questions are good practice for skill and appropriate code required in the FRQ problems.

Question 1 and 2 relate to the information provided below – there are 3 classes here that interact.

1.

2.

3.

Questions 4 and 5 refer to the follow:

4.

5.

Answers to these Multiple Choice Questions will not be provided until Tuesday April 21, 2020 at 3:00 PM.

You may call me for assistance before then at (951) 245-2895 – do not text – this is a land line.

Please try to adhere to my Office Hours – Monday and Thursday 11:00 – 1:00 and Tuesday and Friday 10:00 – Noon.

But for AP test questions call any reasonable time. WORK MUST BE SHOWN – ANSWERS ONLY = NO CREDIT

FRQ Question – Changing gears a little from arrays and arraylists, the other question will ask you to write an entire class.

The instance variables, the real constructor, (if you write a defauly constructor also no harm), accessors and methods requested.

On the next page you are to write the entire class!!!

public class ComplexNumber

{

//instance variables

//constructor

//accessor 1

// accessor 2

//add method

public ComplexNumber add(ComplexNumber cNum)

//multiply method

public ComplexNumber multiply(ComplexNumber cNum)

}