Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Codeaholics Pub Quiz - Answers

Codeaholics Pub Quiz - Answers

Matthew Rudy Jacobs

March 13, 2013
Tweet

More Decks by Matthew Rudy Jacobs

Other Decks in Technology

Transcript

  1. Extra point: Name a speaker at this meeting #1 When

    was the first Codeaholics meetup? a) August 2010 b) December 2010 c) February 2011
  2. Extra point: What is their github handle? #2 Who created

    the name “Codeaholics”? a) Eddie Lau b) Matthew Rudy c) Steve Holmes
  3. Extra point: What was their original name? #3 Who sponsors

    Codeaholics? a) Enterproid b) Softlayer c) Thought Sauce
  4. Extra point: Which group did Codeaholics come from? #4 Which

    group did Steve previously organise? a) Agile Hong Kong b) Hong Kong Java User Group c) Hong Kong Linux User Group
  5. Extra point: when did he talk about it at Codeaholics?

    #5 What is the name of Jonas Karlsson’s language? a) Bamboo b) Beanstalk c) Panda
  6. Extra point: how many github stars does it have? #6

    What is the name of Jimmy’s Backbone Data Grid library? a) BackboneData b) BackGrid c) DataBack
  7. Extra point: how many teams presented? #7 How many teams

    took part in Code Camp #01? a) 7 b) 8 c) 9
  8. Extra point: how many parts was it? #8 Who gave

    “an Introduction to Haskell” in 2011? a) Leonard Siu b) William Taysom c) YKY
  9. Extra point: which HK githubber joined first? #9 How many

    Githubbers are there in Hong Kong? a) 624 b) 724 c) 824
  10. c) 824 Aaron Valade is the earliest Hong Kong Githubber

    having joined on 18th February 2008
  11. Extra point: Where was it held? #10 In which year

    was the first Hong Kong Bar Camp? a) 2006 b) 2007 c) 2008
  12. #31 def fibIter(n): if n < 2: return n fibPrev

    = 1 fib = 1 for num in xrange(2, n): fibPrev, fib = fib, fib + fibPrev return fib What language is this?
  13. #32 fib(0) -> 0; fib(1) -> 1; fib(N) when N

    > 1 -> fib(N-1) + fib(N-2). What language is this?
  14. #34 iterfibo <- function(n) { if ( n < 2

    ) n else { f <- c(0, 1) for (i in 2:n) { t <- f[2] f[2] <- sum(f) f[1] <- t } f[2] } } print.table(lapply(0:20, iterfibo)) What language is this?
  15. #35 |fibo| fibo := [ :i | |ac t| ac

    := Array new: 2. ac at: 1 put: 0 ; at: 2 put: 1. ( i < 2 ) ifTrue: [ ac at: (i+1) ] ifFalse: [ 2 to: i do: [ :l | t := (ac at: 2). ac at: 2 put: ( (ac at: 1) + (ac at: 2) ). ac at: 1 put: t ]. ac at: 2. ] ]. What language is this?
  16. #36 (defn fibs [] (map first (iterate (fn [[a b]]

    [b (+ a b)]) [0 1]))) (nth (fibs) 5) What language is this?
  17. #37 fib_iter = (n) -> if n < 2 return

    n [prev, curr] = 0, 1 for i in [1..n] [prev, curr] = [curr, curr + prev] return curr What language is this?
  18. #38 FUNCTION itFib (n) n1 = 0 n2 = 1

    FOR k = 1 TO ABS(n) sum = n1 + n2 n1 = n2 n2 = sum NEXT k IF n < 0 THEN itFib = n1 * ((-1) ^ ((-n) + 1)) ELSE itFib = n1 END IF END FUNCTION What language is this?
  19. #39 a=0 b=1 max=$1 for (( n=1; "$n" <= "$max";

    $((n++)) )) do a=$(($a + $b)) echo "F($n): $a" b=$(($a - $b)) done What language is this?
  20. #40 -(long)fibonacci:(int)position { long result = 0; if (position <

    2) { result = position; } else { result = [self fibonacci:(position -1)] + [self fibonacci:(position -2)]; } return result; } What language is this?
  21. #49 Which HTML 5.1 tag should be used for “content

    that is directly related to or expands upon the central topic of a document or central functionality of an application”?
  22. Anagram • Take the given letters • Rearrange them to

    form new words • eg. “Acne Hijack”