
CodeHS 2.15 Strings
Authored by Aaron Pavao
Computers
9th - 12th Grade
Used 11+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
6 questions
Show all answers
1.
FILL IN THE BLANKS QUESTION
1 min • 1 pt
What class is a sequence of characters?
(a)
2.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Select all of the primitive data types.
System
String
int
double
boolean
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which line of code concatenates two Strings?
String foo = "Hello " + "World";
String foo = "Hello " & "World";
String foo = "Hello " && "World";
String foo = String.concatenate("Hello", "World");
4.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Select all of the types that we can concatenate with Strings.
String
int
double
boolean
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is printed to the screen?
foo
bar
foobar
foo
bar
There's no way to tell because Java stores strings weirdly.
6.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Select this lesson's learning targets.
I can explain Strings
I can create and assign values to String variables
I can concatenate Strings
I can compare Strings correctly
I can avoid comparing Strings with the equals operator
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 Microsoft
or continue with
%20(1).png)
Apple
Others
Already have an account?