Skip to content

Programming Fundamentals in Swift (Meta iOS Developer Professional Certificate)

Course Assignments

Module quiz: Introduction to programming in Swift :Programming Fundamentals in Swift (Meta iOS Developer Professional Certificate) Answers 2026

Question 1 If you were to store the balance of a bank account, which would be the best to store this in? ✅ A variable❌ A constant Question 2 Which of the following would be ideal to store in a constant? ❌ The number of pages in the English dictionary❌ The number of words in… <a href="https://codeshala.io/platform/coursera/course/programming-fundamentals-in-swift-meta-ios-developer-professional-certificate/assignment/module-quiz-introduction-to-programming-in-swift-programming-fundamentals-in-swift-meta-ios-developer-professional-certificate-answers-2026/" rel="bookmark"><span class="screen-reader-text">Module quiz: Introduction to programming in Swift :Programming Fundamentals in Swift (Meta iOS Developer Professional Certificate) Answers 2026</span></a>

Module quiz: Data structures :Programming Fundamentals in Swift (Meta iOS Developer Professional Certificate) Answers 2026

Question 1 Which of the following is optimized for looping over an array? ✅ a for in loop❌ a repeat while loop❌ a while loop Question 2 Which of the following is optimized for looping over a dictionary? ❌ a while loop✅ a for in loop❌ a repeat while loop Question 3 Individual elements of… <a href="https://codeshala.io/platform/coursera/course/programming-fundamentals-in-swift-meta-ios-developer-professional-certificate/assignment/module-quiz-data-structures-programming-fundamentals-in-swift-meta-ios-developer-professional-certificate-answers-2026/" rel="bookmark"><span class="screen-reader-text">Module quiz: Data structures :Programming Fundamentals in Swift (Meta iOS Developer Professional Certificate) Answers 2026</span></a>

Module quiz: Functions and closures :Programming Fundamentals in Swift (Meta iOS Developer Professional Certificate) Answers 2026

Question 1 Functions are special cases of closures with a name and don’t capture any values. ❌ True✅ False Question 2 Which of the following is the correct layout when defining a function in Swift? ❌ func function-name: return type <- (argument list)❌ functionname (argument list) : return type✅ func function-name (argument list) -> return… <a href="https://codeshala.io/platform/coursera/course/programming-fundamentals-in-swift-meta-ios-developer-professional-certificate/assignment/module-quiz-functions-and-closures-programming-fundamentals-in-swift-meta-ios-developer-professional-certificate-answers-2026/" rel="bookmark"><span class="screen-reader-text">Module quiz: Functions and closures :Programming Fundamentals in Swift (Meta iOS Developer Professional Certificate) Answers 2026</span></a>

Module quiz: Structures and classes :Programming Fundamentals in Swift (Meta iOS Developer Professional Certificate) Answers 2026

Question 1 A struct is a value type. What does this mean? ✅ Each instance keeps a unique copy of its data❌ Instances share a single copy of the data Question 2 What is the output of the following code? struct Employee { var salary: Double var tax = 0.2 mutating func deductTax() { salary… <a href="https://codeshala.io/platform/coursera/course/programming-fundamentals-in-swift-meta-ios-developer-professional-certificate/assignment/module-quiz-structures-and-classes-programming-fundamentals-in-swift-meta-ios-developer-professional-certificate-answers-2026/" rel="bookmark"><span class="screen-reader-text">Module quiz: Structures and classes :Programming Fundamentals in Swift (Meta iOS Developer Professional Certificate) Answers 2026</span></a>

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… <a href="https://codeshala.io/platform/coursera/course/programming-fundamentals-in-swift-meta-ios-developer-professional-certificate/assignment/final-graded-quiz-programming-fundamentals-programming-fundamentals-in-swift-meta-ios-developer-professional-certificate-answers-2026/" rel="bookmark"><span class="screen-reader-text">Final graded quiz: Programming fundamentals :Programming Fundamentals in Swift (Meta iOS Developer Professional Certificate) Answers 2026</span></a>