
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
Similar Resources on Wayground
6 questions
Uniform and Appearance Standards in Fire Brigades
Passage
•
12th Grade
7 questions
MBO-4
Passage
•
12th Grade
6 questions
Impact of Technology on Communication
Passage
•
KG - University
6 questions
Mengenal Lebih Dekat Dunia Bola Basket
Passage
•
11th Grade
6 questions
American Airlines flight 965
Passage
•
University
6 questions
Sistem-Starter-Konvensional-Analisis-Komponen-dan-Diagnosa
Passage
•
11th Grade
2 questions
Prove It!
Passage
•
11th Grade
6 questions
Microscopio
Passage
•
12th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade