Search Header Logo

Topic 2.6 Video 1

Authored by Myra Deister

Computers

11th Grade

Used 1+ times

Topic 2.6 Video 1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a string literal?

A string literal is a numeric value used to represent text in programming languages.
A string literal is a keyword used to represent text in programming languages.
A string literal is a sequence of characters enclosed in quotation marks, used to represent text in programming languages.
A string literal is a special character used to represent text in programming languages.

2.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Which of the following will instantiate a String object and assign it to a variable?

String str = new String("Hello");

str = "Hello";

str = new String("Hello");

String str = "Hello";

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is meant by the statement that Strings are immutable?

Strings are always mutable
Strings can only be changed once
Strings can be modified multiple times
Strings cannot be changed after they are created.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output by the code below?

 

System.out.println( 3 + " " + 3 );

6

3 3

6 6

3" "3

3

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output?

System.out.println( 3 + 6 + "Hello" );

Hello9

36Hello

3+6Hello

9Hello

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?