SlideShare uma empresa Scribd logo
1 de 30
Baixar para ler offline
The easiest quiz in the world
ever
Jonathan Fine, Open University, UK
EuroPython Lightning talk, 2010
Source for slides available at http://bitbucket.org/jfine
/javascript-for-python-programmers
.../tex/easiest-quiz-ever.tex
Question 1: Panama hats
Q: In which country were Panama hats originally made?
Question 1: Panama hats
Q: In which country were Panama hats originally made?
A: Ecuador.
Panama was a city in Ecuador before the creation of the Panama
Canal Zone and then the country Panama.
Question 2: Equality is transitive
Command line SpiderMonkey JavaScript interpreter:
easiest-quiz-ever$ js
js> a = ’0’
js> b = 0
js> c = ’’
js> a == b
true
js> b == c
true
js> a == c // Question.
Question 2: Equality is transitive
Command line SpiderMonkey JavaScript interpreter:
easiest-quiz-ever$ js
js> a = ’0’
js> b = 0
js> c = ’’
js> a == b
true
js> b == c
true
js> a == c // Question.
js> a == c
false
Question 3: Canary Islands
Q: After which creature were the Canary Islands named?
Question 3: Canary Islands
Q: After which creature were the Canary Islands named?
A: Dog (canine).
As I recall, there were many dog seals on one of the Canary Islands.
Question 4: Assignment assigns
js> words = ’Call me Ishmael.’
Call me Ishmael.
js> words.lang = ’en’
js> lang = words.lang // What is lang?
Question 4: Assignment assigns
js> words = ’Call me Ishmael.’
Call me Ishmael.
js> words.lang = ’en’
js> lang = words.lang // What is lang?
js> lang == undefined
true
Question 4: Assignment assigns
js> words = ’Call me Ishmael.’
Call me Ishmael.
js> words.lang = ’en’
js> lang = words.lang // What is lang?
js> lang == undefined
true
js> lang = words.lang = ’en’ // What is lang?
Question 4: Assignment assigns
js> words = ’Call me Ishmael.’
Call me Ishmael.
js> words.lang = ’en’
js> lang = words.lang // What is lang?
js> lang == undefined
true
js> lang = words.lang = ’en’ // What is lang?
js> lang
en
Question 5: King George
Q: What was the first name of Britain’s King George VI?
Question 5: King George
Q: What was the first name of Britain’s King George VI?
A: Albert.
He had several names, and Queen Victoria said she wanted her
beloved Albert to be the only English monarch of that name.
Question 6: Dot binds
js> a = [0, 1, 2]
0,1,2
js> a.push(3); a.push(4);
js> a
0,1,2,3,4
Question 6: Dot binds
js> a = [0, 1, 2]
0,1,2
js> a.push(3); a.push(4);
js> a
0,1,2,3,4
js> b = [0, 1, 2]
js> tmp = b.push
js> tmp(3); tmp(4); // What is ’b’?
Question 6: Dot binds
js> a = [0, 1, 2]
0,1,2
js> a.push(3); a.push(4);
js> a
0,1,2,3,4
js> b = [0, 1, 2]
js> tmp = b.push
js> tmp(3); tmp(4); // What is ’b’?
js> b
0,1,2
Question 6: Dot binds
js> a = [0, 1, 2]
0,1,2
js> a.push(3); a.push(4);
js> a
0,1,2,3,4
js> b = [0, 1, 2]
js> tmp = b.push
js> tmp(3); tmp(4); // What is ’b’?
js> b
0,1,2
js> [length, this[0], this[1]]
2,3,4
Question 7: White rhinocerous
Q: What is the colour of a white rhinocerous?
Question 7: White rhinocerous
Q: What is the colour of a white rhinocerous?
A: Grey.
The name is a corruption of the Dutch work for ‘wide’.
Question 8: False is false
js> true ? 1 : 0
1
js> false ? 1 : 0
0
Question 8: False is false
js> true ? 1 : 0
1
js> false ? 1 : 0
0
js> new Boolean(false) ? 1 : 0 // Question
Question 8: False is false
js> true ? 1 : 0
1
js> false ? 1 : 0
0
js> new Boolean(false) ? 1 : 0 // Question
1
Question 8: False is false
js> true ? 1 : 0
1
js> false ? 1 : 0
0
js> new Boolean(false) ? 1 : 0 // Question
1
js> Boolean(false) ? 1 : 0
Question 8: False is false
js> true ? 1 : 0
1
js> false ? 1 : 0
0
js> new Boolean(false) ? 1 : 0 // Question
1
js> Boolean(false) ? 1 : 0
0
Question 9: Black box
Q: What colour is the black box flight recorder carried by
commercial planes?
Question 9: Black box
Q: What colour is the black box flight recorder carried by
commercial planes?
A: Orange.
This makes it more visible.
Question 10: Like JavaScript
Q: JavaScript is not like which programming language . . .
Question 10: Like JavaScript
Q: JavaScript is not like which programming language . . .
. . . created by Sun?
Question 10: Like JavaScript
Q: JavaScript is not like which programming language . . .
. . . created by Sun?
A: Java.
Thank you

Mais conteúdo relacionado

Mais de Jonathan Fine

A personal history of UK TUG
A personal history of UK TUGA personal history of UK TUG
A personal history of UK TUGJonathan Fine
 
Access and Accessibility
Access and AccessibilityAccess and Accessibility
Access and AccessibilityJonathan Fine
 
Portable TeX Documents (PTD): PackagingCon 2021
Portable TeX Documents (PTD): PackagingCon 2021Portable TeX Documents (PTD): PackagingCon 2021
Portable TeX Documents (PTD): PackagingCon 2021Jonathan Fine
 
Browse and print: Problems and Solutions
Browse and print: Problems and SolutionsBrowse and print: Problems and Solutions
Browse and print: Problems and SolutionsJonathan Fine
 
Online Python Resources
Online Python ResourcesOnline Python Resources
Online Python ResourcesJonathan Fine
 
JavaScript Miller Columns
JavaScript Miller ColumnsJavaScript Miller Columns
JavaScript Miller ColumnsJonathan Fine
 

Mais de Jonathan Fine (7)

A personal history of UK TUG
A personal history of UK TUGA personal history of UK TUG
A personal history of UK TUG
 
Access and Accessibility
Access and AccessibilityAccess and Accessibility
Access and Accessibility
 
Portable TeX Documents (PTD): PackagingCon 2021
Portable TeX Documents (PTD): PackagingCon 2021Portable TeX Documents (PTD): PackagingCon 2021
Portable TeX Documents (PTD): PackagingCon 2021
 
Browse and print: Problems and Solutions
Browse and print: Problems and SolutionsBrowse and print: Problems and Solutions
Browse and print: Problems and Solutions
 
Online Python Resources
Online Python ResourcesOnline Python Resources
Online Python Resources
 
Writing tests
Writing testsWriting tests
Writing tests
 
JavaScript Miller Columns
JavaScript Miller ColumnsJavaScript Miller Columns
JavaScript Miller Columns
 

Último

Top Rated Pune Call Girls Daund ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...
Top Rated  Pune Call Girls Daund ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...Top Rated  Pune Call Girls Daund ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...
Top Rated Pune Call Girls Daund ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...Call Girls in Nagpur High Profile
 
Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$
Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$
Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$kojalkojal131
 
Best VIP Call Girls Noida Sector 75 Call Me: 8448380779
Best VIP Call Girls Noida Sector 75 Call Me: 8448380779Best VIP Call Girls Noida Sector 75 Call Me: 8448380779
Best VIP Call Girls Noida Sector 75 Call Me: 8448380779Delhi Call girls
 
Call Girls in Mayur Vihar ✔️ 9711199171 ✔️ Delhi ✔️ Enjoy Call Girls With Our...
Call Girls in Mayur Vihar ✔️ 9711199171 ✔️ Delhi ✔️ Enjoy Call Girls With Our...Call Girls in Mayur Vihar ✔️ 9711199171 ✔️ Delhi ✔️ Enjoy Call Girls With Our...
Call Girls in Mayur Vihar ✔️ 9711199171 ✔️ Delhi ✔️ Enjoy Call Girls With Our...sonatiwari757
 
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
Call Now ☎ 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.Call Now ☎ 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.soniya singh
 
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607dollysharma2066
 
Delhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
GDG Cloud Southlake 32: Kyle Hettinger: Demystifying the Dark Web
GDG Cloud Southlake 32: Kyle Hettinger: Demystifying the Dark WebGDG Cloud Southlake 32: Kyle Hettinger: Demystifying the Dark Web
GDG Cloud Southlake 32: Kyle Hettinger: Demystifying the Dark WebJames Anderson
 
Radiant Call girls in Dubai O56338O268 Dubai Call girls
Radiant Call girls in Dubai O56338O268 Dubai Call girlsRadiant Call girls in Dubai O56338O268 Dubai Call girls
Radiant Call girls in Dubai O56338O268 Dubai Call girlsstephieert
 
'Future Evolution of the Internet' delivered by Geoff Huston at Everything Op...
'Future Evolution of the Internet' delivered by Geoff Huston at Everything Op...'Future Evolution of the Internet' delivered by Geoff Huston at Everything Op...
'Future Evolution of the Internet' delivered by Geoff Huston at Everything Op...APNIC
 
Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
Chennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts serviceChennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts servicesonalikaur4
 
10.pdfMature Call girls in Dubai +971563133746 Dubai Call girls
10.pdfMature Call girls in Dubai +971563133746 Dubai Call girls10.pdfMature Call girls in Dubai +971563133746 Dubai Call girls
10.pdfMature Call girls in Dubai +971563133746 Dubai Call girlsstephieert
 
Challengers I Told Ya ShirtChallengers I Told Ya Shirt
Challengers I Told Ya ShirtChallengers I Told Ya ShirtChallengers I Told Ya ShirtChallengers I Told Ya Shirt
Challengers I Told Ya ShirtChallengers I Told Ya Shirtrahman018755
 
Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.soniya singh
 

Último (20)

Top Rated Pune Call Girls Daund ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...
Top Rated  Pune Call Girls Daund ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...Top Rated  Pune Call Girls Daund ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...
Top Rated Pune Call Girls Daund ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...
 
Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝
 
Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$
Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$
Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$
 
Call Girls In South Ex 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SERVICE
Call Girls In South Ex 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SERVICECall Girls In South Ex 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SERVICE
Call Girls In South Ex 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SERVICE
 
Best VIP Call Girls Noida Sector 75 Call Me: 8448380779
Best VIP Call Girls Noida Sector 75 Call Me: 8448380779Best VIP Call Girls Noida Sector 75 Call Me: 8448380779
Best VIP Call Girls Noida Sector 75 Call Me: 8448380779
 
Call Girls in Mayur Vihar ✔️ 9711199171 ✔️ Delhi ✔️ Enjoy Call Girls With Our...
Call Girls in Mayur Vihar ✔️ 9711199171 ✔️ Delhi ✔️ Enjoy Call Girls With Our...Call Girls in Mayur Vihar ✔️ 9711199171 ✔️ Delhi ✔️ Enjoy Call Girls With Our...
Call Girls in Mayur Vihar ✔️ 9711199171 ✔️ Delhi ✔️ Enjoy Call Girls With Our...
 
Dwarka Sector 26 Call Girls | Delhi | 9999965857 🫦 Vanshika Verma More Our Se...
Dwarka Sector 26 Call Girls | Delhi | 9999965857 🫦 Vanshika Verma More Our Se...Dwarka Sector 26 Call Girls | Delhi | 9999965857 🫦 Vanshika Verma More Our Se...
Dwarka Sector 26 Call Girls | Delhi | 9999965857 🫦 Vanshika Verma More Our Se...
 
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝
 
Call Now ☎ 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.Call Now ☎ 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.
 
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607
 
Delhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
GDG Cloud Southlake 32: Kyle Hettinger: Demystifying the Dark Web
GDG Cloud Southlake 32: Kyle Hettinger: Demystifying the Dark WebGDG Cloud Southlake 32: Kyle Hettinger: Demystifying the Dark Web
GDG Cloud Southlake 32: Kyle Hettinger: Demystifying the Dark Web
 
Radiant Call girls in Dubai O56338O268 Dubai Call girls
Radiant Call girls in Dubai O56338O268 Dubai Call girlsRadiant Call girls in Dubai O56338O268 Dubai Call girls
Radiant Call girls in Dubai O56338O268 Dubai Call girls
 
'Future Evolution of the Internet' delivered by Geoff Huston at Everything Op...
'Future Evolution of the Internet' delivered by Geoff Huston at Everything Op...'Future Evolution of the Internet' delivered by Geoff Huston at Everything Op...
'Future Evolution of the Internet' delivered by Geoff Huston at Everything Op...
 
Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝
 
Rohini Sector 26 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 26 Call Girls Delhi 9999965857 @Sabina Saikh No AdvanceRohini Sector 26 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 26 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
 
Chennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts serviceChennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts service
 
10.pdfMature Call girls in Dubai +971563133746 Dubai Call girls
10.pdfMature Call girls in Dubai +971563133746 Dubai Call girls10.pdfMature Call girls in Dubai +971563133746 Dubai Call girls
10.pdfMature Call girls in Dubai +971563133746 Dubai Call girls
 
Challengers I Told Ya ShirtChallengers I Told Ya Shirt
Challengers I Told Ya ShirtChallengers I Told Ya ShirtChallengers I Told Ya ShirtChallengers I Told Ya Shirt
Challengers I Told Ya ShirtChallengers I Told Ya Shirt
 
Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.
 

Javascript: The easiest quiz in the world ever

  • 1. The easiest quiz in the world ever Jonathan Fine, Open University, UK EuroPython Lightning talk, 2010 Source for slides available at http://bitbucket.org/jfine /javascript-for-python-programmers .../tex/easiest-quiz-ever.tex
  • 2. Question 1: Panama hats Q: In which country were Panama hats originally made?
  • 3. Question 1: Panama hats Q: In which country were Panama hats originally made? A: Ecuador. Panama was a city in Ecuador before the creation of the Panama Canal Zone and then the country Panama.
  • 4. Question 2: Equality is transitive Command line SpiderMonkey JavaScript interpreter: easiest-quiz-ever$ js js> a = ’0’ js> b = 0 js> c = ’’ js> a == b true js> b == c true js> a == c // Question.
  • 5. Question 2: Equality is transitive Command line SpiderMonkey JavaScript interpreter: easiest-quiz-ever$ js js> a = ’0’ js> b = 0 js> c = ’’ js> a == b true js> b == c true js> a == c // Question. js> a == c false
  • 6. Question 3: Canary Islands Q: After which creature were the Canary Islands named?
  • 7. Question 3: Canary Islands Q: After which creature were the Canary Islands named? A: Dog (canine). As I recall, there were many dog seals on one of the Canary Islands.
  • 8. Question 4: Assignment assigns js> words = ’Call me Ishmael.’ Call me Ishmael. js> words.lang = ’en’ js> lang = words.lang // What is lang?
  • 9. Question 4: Assignment assigns js> words = ’Call me Ishmael.’ Call me Ishmael. js> words.lang = ’en’ js> lang = words.lang // What is lang? js> lang == undefined true
  • 10. Question 4: Assignment assigns js> words = ’Call me Ishmael.’ Call me Ishmael. js> words.lang = ’en’ js> lang = words.lang // What is lang? js> lang == undefined true js> lang = words.lang = ’en’ // What is lang?
  • 11. Question 4: Assignment assigns js> words = ’Call me Ishmael.’ Call me Ishmael. js> words.lang = ’en’ js> lang = words.lang // What is lang? js> lang == undefined true js> lang = words.lang = ’en’ // What is lang? js> lang en
  • 12. Question 5: King George Q: What was the first name of Britain’s King George VI?
  • 13. Question 5: King George Q: What was the first name of Britain’s King George VI? A: Albert. He had several names, and Queen Victoria said she wanted her beloved Albert to be the only English monarch of that name.
  • 14. Question 6: Dot binds js> a = [0, 1, 2] 0,1,2 js> a.push(3); a.push(4); js> a 0,1,2,3,4
  • 15. Question 6: Dot binds js> a = [0, 1, 2] 0,1,2 js> a.push(3); a.push(4); js> a 0,1,2,3,4 js> b = [0, 1, 2] js> tmp = b.push js> tmp(3); tmp(4); // What is ’b’?
  • 16. Question 6: Dot binds js> a = [0, 1, 2] 0,1,2 js> a.push(3); a.push(4); js> a 0,1,2,3,4 js> b = [0, 1, 2] js> tmp = b.push js> tmp(3); tmp(4); // What is ’b’? js> b 0,1,2
  • 17. Question 6: Dot binds js> a = [0, 1, 2] 0,1,2 js> a.push(3); a.push(4); js> a 0,1,2,3,4 js> b = [0, 1, 2] js> tmp = b.push js> tmp(3); tmp(4); // What is ’b’? js> b 0,1,2 js> [length, this[0], this[1]] 2,3,4
  • 18. Question 7: White rhinocerous Q: What is the colour of a white rhinocerous?
  • 19. Question 7: White rhinocerous Q: What is the colour of a white rhinocerous? A: Grey. The name is a corruption of the Dutch work for ‘wide’.
  • 20. Question 8: False is false js> true ? 1 : 0 1 js> false ? 1 : 0 0
  • 21. Question 8: False is false js> true ? 1 : 0 1 js> false ? 1 : 0 0 js> new Boolean(false) ? 1 : 0 // Question
  • 22. Question 8: False is false js> true ? 1 : 0 1 js> false ? 1 : 0 0 js> new Boolean(false) ? 1 : 0 // Question 1
  • 23. Question 8: False is false js> true ? 1 : 0 1 js> false ? 1 : 0 0 js> new Boolean(false) ? 1 : 0 // Question 1 js> Boolean(false) ? 1 : 0
  • 24. Question 8: False is false js> true ? 1 : 0 1 js> false ? 1 : 0 0 js> new Boolean(false) ? 1 : 0 // Question 1 js> Boolean(false) ? 1 : 0 0
  • 25. Question 9: Black box Q: What colour is the black box flight recorder carried by commercial planes?
  • 26. Question 9: Black box Q: What colour is the black box flight recorder carried by commercial planes? A: Orange. This makes it more visible.
  • 27. Question 10: Like JavaScript Q: JavaScript is not like which programming language . . .
  • 28. Question 10: Like JavaScript Q: JavaScript is not like which programming language . . . . . . created by Sun?
  • 29. Question 10: Like JavaScript Q: JavaScript is not like which programming language . . . . . . created by Sun? A: Java.