Skip to content

Final graded quiz: Programming fundamentals :Programming Fundamentals in Swift (Meta iOS Developer Professional Certificate) Answers 2026

Question 1

Which of the following keywords creates a reference type?

❌ array
❌ struct
class
❌ tupple


Question 2

Which of the following would be inferred as a Bool by Swift?

❌ 100
❌ “Hello”
False


Question 3

Which of the following type is the number 5.6 automatically inferred to in Swift?

❌ Integer
Double


Question 4

You can use an “if” statement for optional binding.

True
❌ False


Question 5

Which of the following type of brackets are used to declare an array literal?

❌ ( )
[ ]
❌ { }


Question 6

Which of the following is the way in which you can call this function?

func hiThere(firstName:String, _ secondName:String)

❌ hiThere(firstName:”John”, secondName:”Smith”)
hiThere(firstName:”John”, “Smith”)


Question 7

You can declare an array of strings type as [String].

True
❌ False


Question 8

Functions must always store a return value in a variable when called.

❌ True
False


Question 9

Closures must always use the in keyword in their definition.

❌ True
False


Question 10

Which of the following is a dictionary literal?

❌ (“A”:true, “B”:false, “C”:true, “D”:false)
[“A”:true, “B”:false, “C”:true, “D”:false]
❌ {“A”:true, “B”:false, “C”:true, “D”:false}


🧾 Summary Table

Question Correct Answer
Q1 class
Q2 False
Q3 Double
Q4 True
Q5 [ ]
Q6 hiThere(firstName:”John”, “Smith”)
Q7 True
Q8 False
Q9 False
Q10 [“A”:true, “B”:false, “C”:true, “D”:false]