
Strings in Swift
Quiz
•
Information Technology (IT)
•
University
•
Practice Problem
•
Hard
Shashidhara S
Used 1+ times
FREE Resource
Enhance your content in a minute
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
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
perangkat keras
Quiz
•
7th Grade - University
15 questions
Operating System
Quiz
•
University
10 questions
Latsol
Quiz
•
10th Grade - University
10 questions
Asesmen Harian 1
Quiz
•
11th Grade - University
10 questions
高二資訊課補考題目
Quiz
•
11th Grade - University
15 questions
Microsoft Word
Quiz
•
4th Grade - University
10 questions
แบบทดสอบซัพพลายเชนเบื้องต้น
Quiz
•
6th Grade - University
12 questions
Review loops
Quiz
•
8th Grade - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
Discover more resources for Information Technology (IT)
7 questions
How James Brown Invented Funk
Interactive video
•
10th Grade - University
5 questions
Helping Build the Internet: Valerie Thomas | Great Minds
Interactive video
•
11th Grade - University
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
19 questions
Review2-TEACHER
Quiz
•
University
15 questions
Pre2_STUDENT
Quiz
•
University
20 questions
Ch. 7 Quadrilateral Quiz Review
Quiz
•
KG - University
