H - Substrings

H - Substrings

12th Grade

•

45 Qs

quiz-placeholder

Similar activities

MOTHERBOARD

MOTHERBOARD

11th - 12th Grade

•

40 Qs

TryOut Ujian Sekolah Pengetahuan - TIK SMP N 1 JEPARA

TryOut Ujian Sekolah Pengetahuan - TIK SMP N 1 JEPARA

12th Grade

•

45 Qs

Movies

Movies

2nd Grade - Professional Development

•

44 Qs

Information Technology

Information Technology

12th Grade

•

50 Qs

Emptech Summative Exam L-3-4-5

Emptech Summative Exam L-3-4-5

12th Grade

•

40 Qs

Exam revision

Exam revision

1st - 12th Grade

•

47 Qs

Algoritmika 1.

Algoritmika 1.

10th Grade - University

•

50 Qs

Introduction to Media and Information Literacy Prt. 2

Introduction to Media and Information Literacy Prt. 2

11th - 12th Grade

•

40 Qs

H - Substrings

H - Substrings

Assessment

Quiz

•

Computers

•

12th Grade

•

Practice Problem

•

Hard

Created by

S Johnston

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

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

45 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A substring is:

a sequence of characters within a string

a type of variable

an entire string repeated twice

a function that sorts strings

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Select the correct output of the following code:

mystring = "Hello world"

sub1 = mystring[0:2]

He

Hel

Hello

llo

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Select the correct output of the following code:

mystring = "Hello world"

sub2 = mystring[4:6]

o

o w

w

wo

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does mystring[-1] return if mystring = "Hello world"?

d

H

o

"

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does mystring[:5] return if mystring = "Hello world"?

Hello

Hello

Hello w

world

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which slice would return just the first letter of a string called "text"?

text[0]

text[1]

text[-1]

text[0:2]

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following would return the last three characters of a string?

string[-3:]

string[:3]

string[3:]

string[-1:3]

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?