Skip to content
This repository has been archived by the owner on Mar 24, 2023. It is now read-only.

Latest commit

 

History

History
122 lines (95 loc) · 8.01 KB

2014-06-03-nshipster-quiz-6.md

File metadata and controls

122 lines (95 loc) · 8.01 KB
title author category excerpt status
NSHipster Quiz #6
Mattt
Trivia
Our second annual WWDC Pub Quiz! With dozens of teams, comprised of developers from all around the world, the competition was fierce. How will you stack up?
swift
n/a

On June 3rd, we organized the second annual WWDC edition of the NSHipster Pub Quiz. Keeping in its tradition, questions ranged from random Apple trivia to obscure technical questions. For the second year in a row, the event was graciously hosted by New Relic, whose beautiful downtown San Francisco offices gave the event a feeling of distinction and class. We're also very thankful to Spotify & thoughtbot sponsor libations for the evening. Cheers!

With dozens of teams, comprised of developers from all around the world, the competition was fierce. But ultimately, it was a team known simply as nil that took the day, with 54 points total.

For everyone that couldn't make it to the event, here's an opportunity to play along at home. Some ground rules:

  • There are 3 Rounds, with 10 questions each
  • Record answers on a separate sheet of paper
  • Each correct answer to a question gets you 1 point (unless otherwise specified)
  • Play with up to 5 friends for maximum enjoyment
  • Don't be lame and look things up on the Internet or in Xcode

Round 1: General Knowledge

Current events, miscellaneous tidbits, and random trivia. Following a time-honored traditions for NSHipster quizzes, the first round is always a mis-mash of people, places, and pop culture.

  1. On iOS 8, what magic phrase can be used to activate Siri, when the device is plugged in?
  2. What game, crestfallen by the runaway success of its clone, 2048, was at least slightly vindicated last night with an ADA win?
  3. Which alternative search engine was added to the latest release of Safari?
  4. Weeks after its announcement, Apple finally confirmed its $3B acquisition of Beats Electronics. What is the name of Dre’s Co-founder?
  5. Yosemite is, of course, the code name of OS X Yosemite, but this code name was used before. What was the product? (Hint: It was released in 1999 and had a top clock speed of 450MHz)
  6. What is the name of the valley in Yosemite that was flooded after construction of the O'Shaughnessy Dam in 1927, which provides drinking water to San Francisco?
  7. Much of the reason why Yosemite exists today is thanks to the Sierra Club and a Scottish-born naturalist. What is this gentleman's name?
  8. 20 years ago, Apple launched a new experimental language. It had a syntax like this: let x :: <integer> = 2;. What was this language’s name?
  9. What does a Swift eat?
  10. What is the birdwatching term for the overall impression or appearance of a bird based on its shape, posture, & flying style?

Round 2: So You Think You Can Swift?

Having only been introduced the day before, Swift was fresh on everyone's minds, and the hot topic of conversation. To put everyone's knowledge to the test, the following 10 exercises were posed to attendees.

For anyone revisiting this quiz months or years after the fact, this should be incredibly easy. But just imagine coming into these questions having only skimmed a few hundred pages of the Swift iBook (if at all). And now imagine that you're a beer and a half into a late night during the week of WWDC. Now you can start to appreciate how grumpy this round made a lot of people.

  1. Declare a constant d equal to 3.0.
  2. Declare a variable s of type String.
  3. Interpolate the value of d into a String literal.
  4. Set a var b to 28 using an octal literal.
  5. Declare an optional property of type Int named x.
  6. Declare a Highlander enum of type Int, with an element named "One".
  7. Override viewDidLoad in a UIViewController Subclass.
  8. Declare a class C that adopting the NSCoding protocol.
  9. Alias String as Rope.
  10. Declare a protocol method m, which returns both an Int, and a Dictionary, with String keys and any value.

Round 3: Music Round

Rounding out the competition was the venerable staple of pub trivia everywhere: the music round!

The theme of this music round is—you guessed it—songs used in Apple commercials. For each song, score yourself a point for the correct title, artist, and Apple product advertised.

Due to the peculiarities of embedded video, you may have to click through in order to hear the song. Don't worry—the link is to the song itself, not the Apple ad, so you'll at least have something to puzzle over.

  1. <iframe width="560" height="24" src="https://www.youtube.com/embed/tuK6n2Lkza0?showinfo=0" frameborder="0" allowfullscreen></iframe>
  2. <iframe width="560" height="24" src="https://www.youtube.com/embed/fjwWjx7Cw8I?showinfo=0" frameborder="0" allowfullscreen></iframe>
  3. <iframe width="560" height="24" src="https://www.youtube.com/embed/4B1ZQcbSvdU?showinfo=0" frameborder="0" allowfullscreen></iframe>
  4. <iframe width="560" height="24" src="https://www.youtube.com/embed/qzuGDxJ0wTs?showinfo=0" frameborder="0" allowfullscreen></iframe>
  5. <iframe width="560" height="24" src="https://www.youtube.com/embed/98W9QuMq-2k?showinfo=0" frameborder="0" allowfullscreen></iframe>
  6. <iframe width="560" height="24" src="https://www.youtube.com/embed/i3vWOV8ppBQ?showinfo=0" frameborder="0" allowfullscreen></iframe>
  7. <iframe width="560" height="24" src="https://www.youtube.com/embed/Dd8WjeK8riE?showinfo=0" frameborder="0" allowfullscreen></iframe>
  8. <iframe width="560" height="24" src="https://www.youtube.com/embed/Nx_SKiSmvdc?showinfo=0" frameborder="0" allowfullscreen></iframe>
  9. <iframe width="560" height="24" src="https://www.youtube.com/embed/F3W_alUuFkA?showinfo=0" frameborder="0" allowfullscreen></iframe>
  10. <iframe width="560" height="24" src="https://www.youtube.com/embed/CSS9PnU6T8s?showinfo=0" frameborder="0" allowfullscreen></iframe>

Answers

Round 1: General Knowledge

  1. "Hey Siri"
  2. Threes
  3. DuckDuckGo
  4. Jimmy Iovine
  5. Power Macintosh G3 (Blue & White)
  6. Hetch Hetchy
  7. John Muir
  8. Dylan
  9. Insects
  10. Jizz

Round 2: So You Think You Can Swift?

  1. let d = 3.0
  2. var s: String
  3. "\(d)"
  4. var b = 0o34
  5. var x: Int?
  6. enum Highlander: Int { case One = 1}
  7. override func viewDidLoad() { ... }
  8. class C: NSCoding
  9. typealias Rope = String
  10. func m() -> (Int, Dictionary<String,Any>)

Round 3: Music Round

  1. iPod 3G: Jet — "Are You Gonna Be My Girl?"
  2. G4 Cube: The Jimi Hendrix Experience — "Purple Haze"
  3. iPod Shuffle: Caesars — "Jerk It Out"
  4. iTunes: Green Day — "I Fought The Law"
  5. iPod 4G (U2 Special Edition): U2 — "Vertigo"
  6. OS X (First-Run Experience): Honeycut — "Exodus Honey"
  7. iPod 1G: The Propellerheads — "Take California"
  8. iPhone 5s: Pixies — "Gigantic"
  9. iBook: Miles Davis — "Flamenco Sketches" (with voiceover by Jeff Goldblum)
  10. iMac "Sage": Kermit The Frog — "(It’s Not Easy) Bein' Green"

How did you do this time? Tweet out your score to see how you stack up to your peers!