Search Header Logo

Strings final by RK Quiz 8

Authored by Reshma Kamthe

Computers

11th Grade

Used 7+ times

Strings final by RK Quiz 8
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the index of the 5th character in a string?

5

4

6

it depends on how many characters in the string

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which String class method call can be used to see if the string "str" ends with "ing"?

str.substring(3) == "ing"

str.endsWith("ing")

str.startsWith("ing")

str.substring(-3) == "ing"

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When we create a program to extract each alphabet from a given string, what is it known as?

Transpose

Traverse

Translate

Terminate

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a comparison operator?

<

>

==

!==

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the term 'debug' mean?

Identify errors and fix them.
Making a calculation
A set of instructions
Looking at code

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What syntax can you use to insert a line break between strings so that they appear over multiple lines?

/
\n
\l
n

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If you want more than one option for your code, what do you use (after if)?

elif
else
ifif

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?

Discover more resources for Computers