Home > Articles > Programming > General Programming/Other Languages

  • Print
  • + Share This
This chapter is from the book



  1. ARC stands for what?

    1. Automatic Reference Counting
    2. Aggregated Recall Counts
    3. Automated Reference Cycling
    4. Apple Really Cares
  2. The class files that you create for your applications will have which file extension?

    1. .swift
    2. .m
    3. .c
    4. .swf
  3. Variables and methods that may return nil are known as what?

    1. Uncontrolled
    2. Controlled
    3. Optional
    4. Implicit
  4. Declaring a variable with a ! after the type definition makes it what?

    1. Unwrapped
    2. Optional
    3. Explicitly unwrapped
    4. Implicitly unwrapped
  5. Stringing together method calls and variable properties is known as which of the following?

    1. Spanning
    2. Bridging
    3. Chaining
    4. Declaring
  6. A variable that is defined outside of a method and that can be accessed from other classes is called what?

    1. Constant
    2. Instance variable
    3. Implicitly unwrapped variable
    4. Variable property
  7. To declare a constant versus a variable, you replace the var keyword with which of the following?

    1. set
    2. get
    3. let
    4. constant
  8. Variable types that can store multiple different values are known (in general) as what?

    1. Collections
    2. Sets
    3. Structs
    4. Aggregates
  9. At the time iOS 8 was released, Swift had been available to the public for how many years?

    1. 0
    2. 1
    3. 2
    4. 3
  10. Swift classes are defined using how many files?

    1. 1
    2. 2
    3. 3
    4. 4


  1. A. ARC stands for Automatic Reference Counting and is the process Apple’s development tools use to determine whether an object can be freed from memory.
  2. A. Class files developed in swift should include the .swift file extension.
  3. C. A variable or method that returns nil (no value) is said to be optional.
  4. D. Adding an exclamation point (!) after a variable’s type definition sets that variable to be implicitly unwrapped.
  5. C. Swift methods and variable properties can be strung together in a process called chaining.
  6. D. Variable properties are declared outside of methods and can be accessed and used by other classes.
  7. C. The let keyword is used to declare a constant.
  8. A. Collections, including Arrays and Dictionarys, are used to store multiple pieces of data.
  9. A. Swift and iOS 8 were released to the public at exactly the same time.
  10. B. A Swift class requires exactly one file for its implementation.
  • + Share This
  • 🔖 Save To Your Account