?

AP® Computer Science A

Free Version

Upgrade subject to access all content

Difficult

For Loop Printing Escape Sequences

APCSA-YXEVPE

Consider the following method.

Which of the following is printed as a result of the call pattern()?

A

//123\\n//246\\n//369\\n

B

/123\\n//246\\n//369\\n

C

/123\\
/246\\
/369\\

D

//123\\
//246\\
//369\\

E

//"+i+""+(2i)+""+(3i)+"\\
//"+i+""+(2i)+""+(3i)+"\\
//"+i+""+(2i)+""+(3i)+"\\