DPS923 MAP523 Quiz 3

Quiz 3, on Tuesday, February 3, 2015

.

The sample answers are just that – sample answers. It is not necessary to include all items in a sample answer in order to earn partial or full credit.

.

What is the most obvious and useful benefit of a navigation controller? (UINavigationController)

Enables a way to navigate data or operations that are organized in a hierarchy

Less obvious and useful – has a nav bar, to display object title, and hold buttons for user operations

.

What is the most obvious and useful benefit provided by a table view controller? (UITableViewController)

Presents data in a scrolling single-column list

Or, easily supports hierarchical navigation

Less obvious and useful – adopts protocols to help build the table view

.

What is an optional in Swift? When accessing (reading) an optional, what must be done?

A type definition, where there may be a value, or no value.

Assign to another object that’s also defined as an optional.
Or…
Use ‘if let’ to conditionally unwrap the value.
Or…
Use bang ! to force unwrap the value.
Or…
Compare to nil.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: