
Christianson
Authored by Mr. Christianson
Computers
11th Grade
Used 20+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Assume you have the following array: int[] a = {1,2,3,4,5}; How would you increment the fourth element in the array by one?
3++;
4++;
a[2]++;
a[3]++;
a[4]++;
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What does the String method indexOf() do?
Returns the location of a certain character in the String object.
Tests two String objects for equality.
Compares this String with a secondString for greater than, equal to or less than
Returns the character at a certain location.
Returns the length of a String.
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Consider the following code:
String str = "Computer Science";
Which of the following statements correctly prints the last character in the String str?
System.out.println(str.charAt(0));
System.out.println(str.charAt(1));
System.out.println(str.charAt(str.length()));
System.out.println(str.charAt(str.length() - 1 ));
. System.out.println(str.charAt(str.length() + 1 ));
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Consider the following Strings:
s1 = "PH";
s2 = "ph";
s3 = "Patrick Henry";
Given that P comes before p in dictionary order, which of the following is true?
s1.compareTo(s2) < 0 && s2.compareTo(s3) < 0
s2.compareTo(s1) < 0 || s3.compareTo(s1) < 0
s3.compareTo(s1) < 0 && s1.compareTo(s2) < 0
! (s1.equals(s2) && s3.compareTo(s2) < 0)
s1.compareTo(s2) <= 0 && s2.compareTo(s3) < 0
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
The index of the last element of an array is ______.
.size
.length
.length - 1
.size - 1
.length()
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Consider the following code:
if(s.toLowerCase().equals(s.toUpperCase()) System.out.println("*");
Tests if the String s contains only non-letter characters.
Tests if the String s contains Only upper-case letters.
Tests if the String s contains only digits.
Tests if the String s contains Only lower-case letters.
None of the above
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following can be stored in a standard array?
ints
Strings
boolean
doubles
All of the above
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
25 questions
EMPOWERMENT TECHNOLOGY
Quiz
•
KG - University
26 questions
Microsoft Word 2016 Advanced Unit
Quiz
•
9th - 12th Grade
25 questions
Post-test Penerapan Mikrotik untuk Manajemen Internet
Quiz
•
11th Grade
25 questions
Code HS 3.19 Intro to Programming w/Karel
Quiz
•
9th - 12th Grade
30 questions
AP Computer Science Principles Units 1-3
Quiz
•
9th - 12th Grade
25 questions
Java Review
Quiz
•
9th Grade - University
25 questions
Game & Sim MidTerm Exam 2023
Quiz
•
9th - 12th Grade
30 questions
Lesson 3_Animating Symbols (Adobe Animate)
Quiz
•
9th - 12th Grade
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
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
22 questions
El Imperfecto
Quiz
•
9th - 12th Grade
15 questions
ACT Reading Practice
Quiz
•
11th Grade
20 questions
SSS/SAS
Quiz
•
9th - 12th Grade
20 questions
verbos reflexivos en español
Quiz
•
9th - 12th Grade
14 questions
Making Inferences From Samples
Quiz
•
7th - 12th Grade
23 questions
CCG - CH8 Polygon angles and area Review
Quiz
•
9th - 12th Grade
8 questions
Momentum and Collisions
Lesson
•
9th - 12th Grade