Plenary Day 2

Plenary Day 2

5 Qs

quiz-placeholder

Similar activities

Java Exceptions

Java Exceptions

11th - 12th Grade

10 Qs

Mastering Python String Techniques

Mastering Python String Techniques

9th - 12th Grade

10 Qs

One Dimensional Array

One Dimensional Array

University

10 Qs

Matriz - Exception

Matriz - Exception

KG

10 Qs

String

String

10th - 12th Grade

10 Qs

Java Strings

Java Strings

1st Grade - Professional Development

10 Qs

STRING HANDLING

STRING HANDLING

10th Grade

10 Qs

Strings

Strings

11th Grade

10 Qs

Plenary Day 2

Plenary Day 2

Assessment

Quiz

Computers, Other

Easy

Created by

D Veena

Used 1+ times

FREE Resource

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

String s1 = "goat";

String s2 = s1.substring(0,s1.length());

What is the value of z?

goa

goat

This code will not compile.

StringIndexOutOfBoundsException

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

String s = "cool cat".substring(6);


What is the value of s?

"cat"

"at"

"cool c"

This code does not compile.

StringIndexOutOfBoundsException

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

String s = "whatever".substring(1,4);


What is the value of s?

"hate"

"hat"

"whate"

"what"

StringIndexOutOfBoundsException

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

String s = "good job".substring(3, 9);


What is the value of s?

"d job"

"od job"

"d jo"

"od jo"

StringIndexOutOfBoundsException

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

String word = "A few good men";
What is word.endsWith("man") ?
true
false