Notice: Due to an ongoing migration of our storage and publishing system, material requested since last month will not be uploaded for the time being, and new requests are paused. All existing notes remain available.

Unit 1 subjective questions Introduction to iPhone and iOS Platform with Swift

INT372 — Iphone Application Programming 20 questions with model answers. Write yours first, then compare.

Read the notes Practice MCQs
  1. Question 1 of 20

    Distinguish between iOS and macOS with respect to their purpose, user interface, hardware support, and application development.

  2. Question 2 of 20

    Explain the major features of the iOS platform and describe the tools commonly used to develop an iPhone application.

  3. Question 3 of 20

    Define object-oriented programming and explain its main principles with reference to Swift.

  4. Question 4 of 20

    Describe how a class is declared and instantiated in Swift. Include properties, an initializer, and an instance method in your explanation.

  5. Question 5 of 20

    Explain inheritance, method overriding, and reference semantics in Swift classes with a suitable example.

  6. Question 6 of 20

    Differentiate between variables declared using var and constants declared using let in Swift. Also explain type inference and type annotation.

  7. Question 7 of 20

    Explain optionals and optional binding in Swift. Why are optionals important in iPhone application development?

  8. Question 8 of 20

    Describe the creation, access, modification, traversal, and common operations of an array in Swift.

  9. Question 9 of 20

    Compare arrays and dictionaries in Swift. State suitable situations for using each collection.

  10. Question 10 of 20

    Define a method in Swift and distinguish among instance methods, type methods, mutating methods, and method parameters.

  11. Question 11 of 20

    What is meant by sending a message to an object? Explain how this idea relates to method calls and dynamic dispatch in Swift.

  12. Question 12 of 20

    Define a closure in Swift and explain its syntax, parameters, return values, and type inference with an example.

  13. Question 13 of 20

    Explain trailing closures, value capture, and escaping closures in Swift. Discuss one memory-management risk associated with closures.

  14. Question 14 of 20

    Describe how to declare, access, update, remove, and iterate over entries in a Swift dictionary.

  15. Question 15 of 20

    Define a structure in Swift and compare structures with classes in terms of semantics, inheritance, initialization, and usage.

  16. Question 16 of 20

    Explain value semantics using a Swift structure and contrast the result with assigning a class instance.

  17. Question 17 of 20

    Define an enumeration in Swift. Explain raw values, associated values, methods, and pattern matching.

  18. Question 18 of 20

    Compare structs and enums in Swift and explain when an enum is preferable to a struct.

  19. Question 19 of 20

    Explain the purpose and syntax of the guard statement in Swift. Compare guard with if for validating conditions.

  20. Question 20 of 20

    Design and explain a Swift model that combines a class or struct, enum, array, dictionary, closure, method, and guard statement for a simple iPhone course-registration feature.

That's unit 1

Long answers stick best when they're tested again soon. Run the MCQs on this unit, then come back to the questions you found hardest.