Strings in Swift

Strings in Swift

University

10 Qs

quiz-placeholder

Similar activities

Komponen Komputer

Komponen Komputer

1st Grade - University

10 Qs

Tes materi Implementasi Proses Bisnis TJKT

Tes materi Implementasi Proses Bisnis TJKT

10th Grade - University

10 Qs

Database Fundamentals Assessment

Database Fundamentals Assessment

12th Grade - University

15 Qs

TcP252_k32_FQ1

TcP252_k32_FQ1

University

12 Qs

SOAL MID SEMESTER INFORMATIKA

SOAL MID SEMESTER INFORMATIKA

6th Grade - University

10 Qs

Microsoft Word 2019 Advanced – Unit 1 (Review of Basic Concepts)

Microsoft Word 2019 Advanced – Unit 1 (Review of Basic Concepts)

10th Grade - University

15 Qs

PDM LS01 - Quiz 1 - Program Development Method

PDM LS01 - Quiz 1 - Program Development Method

University

15 Qs

Pemahaman Sistem Komputer Kelas 8

Pemahaman Sistem Komputer Kelas 8

8th Grade - University

15 Qs

Strings in Swift

Strings in Swift

Assessment

Quiz

Information Technology (IT)

University

Practice Problem

Hard

Created by

Shashidhara S

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...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which property of the string is used get number of characters?

length

length()

count

count()

2.

MULTIPLE SELECT QUESTION

45 sec • 3 pts

which method/methods is/are used to find the substrings in a given string?

hasPrefix()

contains()

prefix(n)

getChars(n)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

We can have an empty character

True

False

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

let name = "Ethan Hunt"

print(name.first)

output is ?

E

Ethan

optional(E)

compiler error

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

let pokemon = "poke\u{0301}mon"

print(Pokemon.count)

output is ?

7

8

14

none

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

let kid = "Miles Morales"

print(kid[kid.index(kid.startIndex, offsetBy:3)]

output is ?

e

Optional(e)

l

optional(l)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

let scarlet = "Wanda Maximoff"

print(scarlet.substring(to:scarlet.firstIndex(of:" ")!)

output is :

Wanda

W

Maximoff

Compiler Error

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?