AP Computer Science A 2019 Free Response Discussion

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

If you have extra loops, do they take points off? For FRQ 1, i had a while{ then a for{ then a if{.

koryrosen
Автор

For 3a, I used a for-each loop. Is that okay?
for(String s : tokens)
{
if(s.equals(openDel) || s.equals(closedDel))
{
list.add(s);
}
}
return list;

rahulravi
Автор

For 2, I did arraylist and kept value in them as it goes instead of declear as mutiple int. Do you think they will still give me full points?

hxhchimeraantarc
Автор

I don't know what I was thinking when I did 1b. The problem is so simple but I overthought it. But this is similar to what I wrote:

public int dayOfWeek()
{
int firstDay = firstDayOfYear(year);
int currentDay = dayOfYear(month, day, year);
int difference = currentDay - firstDay;
difference++;
int extra = 0;
if(difference%7==0)
{
return firstDay;
}
else if(difference<7)
{
extra = firstDay + difference;
return extra;
}
else if(difference>7)
{
extra = difference % 7;
extra += firstDay;
if(extra>=7)
{
extra = extra%7;
return extra;
}
else
{
return extra;
}
}
}
How many points do you think I will receive for this? Please be completely honest so I know if I will be able to get a 5!

rahulravi
Автор

I have a question. For the Step tracker problem, I created an Array List to save all of the added steps and used that Array List for each method. If the program works the same way, but I wrote completely different way, would I still get full points?

lohitmurali
Автор

For #2, I initialized minsteps in the constructor. But I forgot to initialize the other three instance variables to zero. How many points will I lose for that?

rahulravi
Автор

I think I got everything except for 1b. How does % 7 end up giving you the correct value for the day of the week?

sebschab
Автор

If I use the contains method in getDelimitersList instead of equals, will I still get partial credit? I didn't notice that there was a space in the reference too.

dropthebooks
Автор

I forgot to initialize the fields/instance variables to 0 in Steptracker, is a point taken away?

Kevin-wwvu
Автор

For number 2 I had previously declared all the instance variables private but then had erased it and just declared them in the methods. My logic was right though. About how many points would I be expected to lose due to this one mistake?

anuragaka
Автор

Will I get points off for checking if closeDel > openDel at the beginning of the loop rather than the end?

thatonecombo
Автор

For question 1, does it require a loop?

manweiho
Автор

Finally, how many points do you think 1b will be worth?

rahulravi
Автор

It's a little hard to read your writing on the computer. Maybe consider typing up your code so it's nice and easy to read

CloroxBleach-hijd
Автор

for #1 b on the AP i did "return (firstDayOfYear(year) + dayOfYear(month, day, year) - 1 ) % 7; "

joelpaley
Автор

i don't remember anything i did ...

glaze
Автор

you shouldnt have parenthases after [numCols]

joelpaley
Автор

So I'm taking this tomorrow because the original test was on graduation, my school moved it to the following wednesday. Is this considered cheating? LOL

truemo
Автор

Hoping for a five I know I did well on multiple choice. It was extremely easy.

youtubeaccountx
Автор

I did alright I guess. Some I didn’t understand so I did an different program than it asked but I’m pretty sure I got some points and multiple choice was very easy so I’m confident about that

youtubeaccountx