Topic 2.6 Video 1

Topic 2.6 Video 1

11th Grade

5 Qs

quiz-placeholder

Similar activities

Conditionals - codeHS mod4

Conditionals - codeHS mod4

9th - 12th Grade

10 Qs

Python Quiz - 4

Python Quiz - 4

4th - 11th Grade

10 Qs

Python Variables

Python Variables

7th - 12th Grade

10 Qs

Variables and Functions

Variables and Functions

KG - University

10 Qs

Mastering Python String Techniques

Mastering Python String Techniques

9th - 12th Grade

10 Qs

Introducing Python Strings

Introducing Python Strings

11th Grade

10 Qs

Strings

Strings

11th Grade

10 Qs

Introduction to Python Quiz

Introduction to Python Quiz

8th Grade - University

10 Qs

Topic 2.6 Video 1

Topic 2.6 Video 1

Assessment

Quiz

Computers

11th Grade

Easy

Created by

Myra Deister

Used 1+ times

FREE Resource

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