Which keyword is used to declare a constant in Swift?

Pathway

Quiz
•
Other
•
Professional Development
•
Hard
chien nguyen
Used 9+ times
FREE Resource
45 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
let
var
const
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
In Swift, can the value of a constant be changed after it has been declared?
True
False
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which Swift data type is used to represent a sequence of characters?
String
Character
Array
Set
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which property can be used to get the number of characters in a string in Swift?
count
length
size
sizeOf
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
How can we write a single-line comment in Swift?
<!-- This is a comment -->
/* This is a comment */
// This is a comment
# This is a comment
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is readLine() used for in Swift?
To read a text file
To read user input from the command line
To read data from a URL
To read an array
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
In Swift, what does the ! symbol mean when placed after a variable?
It declares a new Optional variable
It increments the value of a variable
It implicitly unwraps an Optional variable
It indicates a factorial operation
Create a free account and access millions of resources
Similar Resources on Quizizz
42 questions
Relief Society Birthday Party

Quiz
•
Professional Development
50 questions
Digital Marketing Knowledge Test MCQ 50

Quiz
•
Professional Development
46 questions
Domain 4: Web Applications

Quiz
•
Professional Development
50 questions
MICROSOFT ACCESS

Quiz
•
Professional Development
50 questions
I Years_Python

Quiz
•
Professional Development
40 questions
364-668c6d89c3816d115f18c97b

Quiz
•
Professional Development
42 questions
Computer Science Quiz

Quiz
•
Professional Development
45 questions
CYIENT Quiz 1

Quiz
•
Professional Development
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade