# London Haskell Pub Quiz 2019 ## handouts: 1 answer sheet 1 photo round 1 draw-a-duck 1 joker ## Structure ### Buffet table If you stuff is on any of these tables, food is going to get served over the top of it so please move it ### Sponsors: see the menu cards ### Scoring Each round is worth 10 points. There are 10 rounds: 6 question rounds 2 table rounds 1 joker card - when I've told you the round name, but before any questions, you can play your joker to double the number of points you get for that round. 1 best team name (10 points) ### Approximate timing: TODO 19:15 Introduction & Rules 19:20 Round 1 (10 minutes) 19:30 Mark round 1 (7 minutes) 19:37 Round 2 (10 minutes) 19:54 Round 3 (10+7) -- ~ add in 30 minute food break at right time -- + 5 minutes notice to re-seat 20:11 Round 4 (10+7) 20:28 Round 5 (10+7) 20:45 Round 6 (10) 20:55 Mark Round 6 and photo round 21:05 Contestant break - evaluate entries. judge duck and team name rounds. 21:15 Announce prizes ## Meta round: J. Joker round - you may play your joker after I have announced the round title, but before i have asked any questions. It will double your score on this round. You may only play your joker once. ## Question Rounds Standard rounds x 6: Round X - Guess the language extension 1. according to the latest GHC manual (as of earlier this week), the longest language option keyword/name (that you'd use -X...), 26 letters long [GeneralisedNewtypeDeriving] 2. What is the shortest? [CPP] 3. Which language extension lets me use an upside down A as a language keyword? [UnicodeSyntax] +explicitforall 4. Like a mushroom or a roundabout, what kind of hash can I enable? [MagicHash] 5. Which extension will make `length` go out of scope? [NoImplicitPrelude] 6. If I want to write a case statement on a Void, what extension can I enable? [EmptyCase] 7. What extension can I enable if I want to *define* the Void type? [EmptyDataDecls] - it's in 2010 8. What awkward notation is somewhere between an Idiom/Applicative and a Monad? [Arrows] 9. What extension enables strict-by-default constructor fields? [StrictData] (although 'Strict' implies StrictData so porbably should accept it?) 10. With which extension would you deal with splices and quotes? [TemplateHaskell, QuasiQuotes] ### Round M - Misc A few topics here: Christmas cracker jokes (haskell connection is that they are from the University of Nottingham real world functional programming christmas crackers) 1 What do you get if you cross an apple with a Christmas tree? [a pineapple] 2 What happened when Santa's cat swallowed a ball of wool? [it had mittens] 3 Who beats his chest and swings from Christmas cake to Christmas cake? [tarzipan] Engineering: **1** 4 The empty set is often represented by a particular symbol that is very similar to one used in engineering notation for circular things - for example camera lenses. what does that symbol mean in the context of circular things? [diameter] 5 Berlin has the u-bahn and the s-bahn. but it once had the m-bahn. what does m stand for? [magnet] 6 What is the tallest building in the world, with 163 floors? [Burj Khalifa (in dubai)] Haskell words 7 Profunctor optics is a fancy name for stuff related to what 4-letter L-word [lens] 8 What 6-letter E-word describes systems used for fine grain isolation of impure parts of a program [effect] 9 What 6-letter B-word might laziness surprise you with at an unexpected time? [bottom] 10 What day of the week is Christmas Day 2020? [Friday] ### N. Numbers 10 numbers in increasing size, smallest first. 1 How many commas appear in the name of the christmas carol "god rest you merry, gentlemen" ? [1] 2 How many gifts did the magi bring to the baby jesus? [3 - frankincense, gold, myrrh] 3 With IEEE 754 half-precision floating point, how many bits are stored for the exponent? [5] 4 On which day of christmas did my true love bring to me some lords a-leaping? [10(th)] 5 How many bread rolls are there in a baker's dozen? [13] 6 How many degrees are there in one radian (rounded up or down to the nearest degree is fine) - so two answers allowed here, differing by 1. [57.29 - so 57 or 58] 7 The coming year 2020 factorises into 20 * 101. But what is the largest prime factor for this year, 2019? [673 (other is *3)] 8 Which year did hackage go online? 2007 9 The indian version of who wants to be a millioniare is called (mumble mumble) crorepati - what number is a crore? [ten million, 10,000,000 or 10^7] 10 The Apple Campus in (Cupertino, ) California has a very large number in its address. what is that number? [infinity - 1 infinite loop] ### D Decades 1960s to 2050s. Ten decades, one answer in each. Decades start at 0 and continue to 9 - so 1960 and 1969 are the same decade. Some are real, some are scifi. 1. 1990 The oldest commit I could find in the GHC git repo is from 8th January, shortly after ghc 0.26 was announced [1996] 2. 1980 Back to the Future was released, and partly set, in this decade [1985] 3. 2010 The sequel to 2001 a space odyssey is set in this decade [2010] 4. 2040 The sequel to the film adaptation of Do Androids Dream of Electric Sheep is set in this decade [2049] 5. 1960 The first landing of a man on the moon was in this decade [1969] 6. 2000 Facebook, known initially as The Facebook, started in this decade [2004] 7. 2030 According to its author William Gibson, but not actually mentioned in the book, the classic cyberpunk novel Neuromancer took place around this decade [2035] - https://www.motherjones.com/media/2014/10/william-gibson-peripheral-vision-time-travel-interview/ 8. 1970 ML (which has subsequently evolved into eg F#) was created by Robin Milner in this decade [1973] 9. 2050 The united states airforce plans to fly the B52 bomber until this decade 10. 2020 Halleys comet will return in 2061, but which decade before that will it be furthest from the sun? [2023] ### I. "I am a programming language" previous years: 2017 miranda, coq, forth, apl, lisp go f# cobol idris php 2018: sql, ocaml, basic, rust, python, brainfuck, java, C, R, fortran This year: 1. The colourful multithreaded assembly language used to win the core [ REDCODE ] 2. Massachusetts makes me sick [MUMPS] 3. Before Perl, before Awk, you could throw this one in winter [SNOBOL] 4. Keeps your kitchen warm but with a D for dependent [Agda] 5. The symbol of a turtle [Logo] 6. A fast apple [Swift] 7. Edwin Brady's Invisible Horror [whitespace] 8. Plan Z1 from Germany [plankalku[e]l] 9. IBM's king of scripting [Rexx] 10. object oriented chit chat [smalltalk] ### L. Life in the UK Here are some questions adapted from a practice life in the UK test 1 Wales has it's own established church, true or false? [FALSE] 2 What is new years eve called in scotland? [hogmanay] 3 Along which the UK, which other country developed Concorde, the worlds only supersonic airliner? [France] 4 Where is snowdonia located? (scotland, england, wales, northern ireland) [Wales] 5 Who wrote sherlock holmes? [sir arthur conan doyle] 6 Who is the patron saint of wales? (st david) 7 True or False, the lake district is the largest national park of england? [true] 8 The black death took place in the Iron Age, The Middle Ages or the Industrial Age? [middle] 9 Who was the first man to run 1 mile in under 4 minutes? [sir roger banister] 10 Which jubilee did queen elizabeth II celebrate in 2012? [diamond jubilee] ## Table rounds: ### Round Q (for quack). Draw a duck using that outline sophia posted [Q for Quack] Best one wins 10 points. 2nd best one wins 5 points. Everyone else 0. ### P. Picture round: [table round] 1. Name the encoding used on this punched card [EBCDIC] 2. Name the radio/book/tv franchise [hitch-hikers guide to the series] 3. Name the alien [dalek] 4. Name the rich guy [elon musk] 5. Name the service [github] 6. What am I doing to f and g here? [composing] 7. What is the name of this town in New Jersey? [Haskell] 8. Name the station [paddington] 9. Name the speaker [edward kmett] 10. What animal is this metaphor named after? [donkey (burro)]