Graded Quiz Unit 6 - Home
Graded Quiz Unit 6 - Home
Question 1
Not yet answered
Marked out of 1.00
What will the type of sampleBook be with respect to the following Swift code?
struct Swift: Book {
var author: String
}
Let sampleBook = Swift(author: "Taylor")
a. Swift
b. Book
c. This code will not compile
d. String
Clear my choice
Question 2
Not yet answered
Marked out of 1.00
Clear my choice
Question 3
Not yet answered
Marked out of 1.00
a. Hello there!
b. Hello
c. H
d. incorrect code
Clear my choice
Question 4
Not yet answered
Marked out of 1.00
a. ""
b. false
c. Null
d. This code will not compile
Clear my choice
Question 5
Not yet answered
Marked out of 1.00
a. IntelliJ
b. Xcode
c. Android Studio
d. Swift playgrounds
Clear my choice
Question 6
Not yet answered
Marked out of 1.00
a. try
b. throw
c. fire
d. trigger
Clear my choice
Question 7
Not yet answered
Marked out of 1.00
In Kotlin, generics is a concept that allows defining class methods that can be used on different data types.
Select one:
True
False
Question 8
Not yet answered
Marked out of 1.00
a. 1 2 3 4
b. 1,2,3,4
c. [1 2 3 4]
d. [1,2,3,4]
Clear my choice
Question 9
Not yet answered
Marked out of 1.00
a. IOException
b. DivisionByZeroException
c. NegativeIndexException
d. InvaidInputException
Clear my choice
Question 10
Not yet answered
Marked out of 1.00
Select one:
True
False
Question 11
Not yet answered
Marked out of 1.00
a. Null
b. Taylor
c. ""
d. Person1
Clear my choice
Question 12
Not yet answered
Marked out of 1.00
Which of the following keyword is used to declare a variable in the Swift programming language?
a. val
b. var
c. let
d. Variable
Clear my choice
Question 13
Not yet answered
Marked out of 1.00
a. Hello
b. Hello Hey there
c. Hey there
d. It will raise a syntax error
Clear my choice
Question 14
Not yet answered
Marked out of 1.00
a. trigger
b. block
c. launch
d. try
Clear my choice
Question 15
Not yet answered
Marked out of 1.00
Identify the keyword (in Swift) that is used to give the ability to a structured method to modify its properties within the structure.
a. malleable
b. mode
c. modify
d. mutating
Clear my choice