NEW: Learn SwiftUI with my free YouTube video series! >>

Switch statements

Question 1/6: Which of these statements are true about switch case?

Hint: Click to show.

  • Option 1: You place the value you want to check at the start.
  • Option 2: Switch statements work best with constants.

Return to Review Menu

MASTER SWIFT NOW
Buy Testing Swift Buy Practical iOS 12 Buy Pro Swift Buy Swift Design Patterns Buy Swift Coding Challenges Buy Server-Side Swift (Vapor Edition) Buy Server-Side Swift (Kitura Edition) Buy Hacking with macOS Buy Advanced iOS Volume One Buy Advanced iOS Volume Two Buy Hacking with watchOS Buy Hacking with tvOS Buy Hacking with Swift Buy Dive Into SpriteKit Buy Swift in Sixty Seconds Buy Objective-C for Swift Developers Buy Beyond Code