CodeHS 2.15 Strings

CodeHS 2.15 Strings

9th - 12th Grade

6 Qs

quiz-placeholder

Similar activities

CS Primi

CS Primi

10AP Computer Science Review

10AP Computer Science Review

Data Types

Data Types

OOP - Quiz

OOP - Quiz

Java Lesson 1 Quiz

Java Lesson 1 Quiz

Java Values and Data Types Quiz

Java Values and Data Types Quiz

Mid-Year Java Check

Mid-Year Java Check

CF1 Hardware and Intro to Java

CF1 Hardware and Intro to Java

CodeHS 2.15 Strings

CodeHS 2.15 Strings

Assessment

Quiz

Computers

9th - 12th Grade

Practice Problem

Medium

Created by

Aaron Pavao

Used 11+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

6 questions

Show all answers

1.

FILL IN THE BLANK QUESTION

1 min • 1 pt

What class is a sequence of characters?

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

Media Image

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