zuai-logo
zuai-logo
  1. AP Computer Science A
FlashcardFlashcardStudy GuideStudy GuideQuestion BankQuestion Bank
GlossaryGlossary

Using Objects in AP Computer Science A

Question 1
college-boardComputer Science AAPExam Style
1 mark

How many unique substrings can be formed from "boolean" that include both characters 'b' and 'n' exactly once?

Question 2
college-boardComputer Science AAPExam Style
1 mark

What is the value of the string newVal?: String newVal = "5" + 3;

Question 3
college-boardComputer Science AAPExam Style
1 mark

How do you convert all characters in a string object to lowercase in Java?

Question 4
college-boardComputer Science AAPExam Style
1 mark

What does a substring(0, n) call on a string return?

Question 5
college-boardComputer Science AAPExam Style
1 mark

Which code segment will replace all occurrences of letter 'x' with letter 'o' in a given String str?

Question 6
college-boardComputer Science AAPExam Style
1 mark

Which of the following instantiates a new empty StringBuilder object?

Question 7
college-boardComputer Science AAPExam Style
1 mark

If you execute String s = new StringBuilder("recursion").reverse().toString().toUpperCase();, what value does s represent?

Feedback stars icon

How are we doing?

Give us your feedback and let us know how we can improve

Question 8
college-boardComputer Science AAPExam Style
1 mark

If a string variable word contains "examination", which of the following code segments will correctly output "nation"?

Question 9
college-boardComputer Science AAPExam Style
1 mark

What method is called when concatenating objects to strings?

Question 10
college-boardComputer Science AAPExam Style
1 mark

How does substring(int beginIndex, int endIndex) behave if beginIndex equals endIndex?