
AP CS A REFERENCE SHEET
Passage
•
Science
•
12th Grade
•
Practice Problem
•
Easy
Thanh Le
Used 1+ times
FREE Resource
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the method 'int length()' in the String class return?
The number of characters in a String object
The number of words in a String object
The number of vowels in a String object
The number of spaces in a String object
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method in the Math class returns the nonnegative square root of a double value?
static double sqrt(double x)
static double pow(double base, double exponent)
static double abs(double x)
static double random()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the 'boolean equals(Object other)' method in the String class?
To check if two strings have the same sequence of characters
To compare the length of two strings
To convert a string to a boolean value
To find the index of a character in a string
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method in the ArrayList class is used to append an object to the end of the list?
boolean add(E obj)
void add(int index, E obj)
E set(int index, E obj)
E remove(int index)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the 'static int parseInt(String s)' method in the Integer class do?
Returns the String argument as an int
Converts an int to a String
Parses a String to a double
Checks if a String can be converted to an int
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method in the Scanner class returns the next line of text as a String?
String nextLine()
String next()
int nextInt()
double nextDouble()
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the 'E get(int index)' method in the ArrayList class return?
The element at position index in the list
The size of the list
The index of the element in the list
The last element in the list
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
6 questions
Reading Comprehension
Passage
•
University
6 questions
Capillary Number in Enhanced Oil Recovery
Passage
•
University
6 questions
Booker T. Washington and W.E.B. Du Bois on Education
Passage
•
11th Grade
6 questions
simple subjects, verbs, and compound elements.
Passage
•
University
6 questions
ENGLISH FINAL TEST
Passage
•
12th Grade
6 questions
The Enchanted Island Getaway
Passage
•
12th Grade
6 questions
Ladies First
Passage
•
12th Grade
6 questions
Understanding Rheology in Food Science
Passage
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Science
14 questions
Natural Selection and Adaptation
Lesson
•
9th - 12th Grade
38 questions
Water Cycle and Groundwater
Quiz
•
9th - 12th Grade
12 questions
Cell Organelles and Their Functions
Lesson
•
9th - 12th Grade
13 questions
Amoeba Sisters: Biomolecules
Interactive video
•
9th - 12th Grade
25 questions
APES Unit 6 Review
Quiz
•
12th Grade
60 questions
2025 Genetics Test Study Guide
Quiz
•
9th - 12th Grade
10 questions
Understand Cell Functions and Organelles
Quiz
•
9th - 12th Grade
16 questions
Explore Cell Cycle Stages and Mitosis
Quiz
•
9th - 12th Grade