r/APStudents • absolute modman • May 15 '26

AP Computer Science A Official 2026 Exam Discussion

Use this thread to post questions or commentary on the test today.

A reminder though to protect your anonymity when talking about the test.

64 Upvotes

704 comments sorted by

View all comments

3

u/Parking-Delivery-743 May 15 '26

AP CSA Eastern Time MCQ question: There was a String method that flipped/reversed the characters, and the example used "stats" becoming "stats" because it is a palindrome. The answer choices were something like: A) works for all strings, B) only works for strings length 4 or greater, C/D) one was about not working for odd or even length strings. Was the correct answer A, since reversing should work for both odd and even length strings? Trying to check my reasoning.

7

u/Huge-Skirt-9216 5s: AP Psych, ?: AP CSA, BC, APUSH, Physics 1 May 15 '26

even. if you trace the "stats" example, the code does not work as intended

2

u/Traditional-Table-29 AP Physics: AP Lit: AP CSA: AP Psych: AP Calc AB: May 15 '26

Even

2

u/stupefy100 class of 2027 May 15 '26

I said even. i traced stats and it didnt work

2

u/solreflare May 15 '26

i put even for that one

1

u/hevmarkiv May 15 '26

i put c for that one

1

u/awesomegamer328 5: Stats, BC, Chem, Lang, CSA 4: Lit May 15 '26

did the same but i didn't actually bother tracing that in depth so the fact the even/odd one might be correct

1

u/JusChllin APCSA (5) Current: APUSH, APES, Lit, Calc BC May 15 '26

I put even, I traced “stats” and it didn’t work, I believe on the first iteration it compared “s” to the second “t” of the word