SlideShare una empresa de Scribd logo
1 de 15
Descargar para leer sin conexión
Computer Science Large Practical:

                               Quick quiz on Objective-C

                                               Stephen Gilmore

                                               School of Informatics


                                          Friday 19th October, 2012




Stephen Gilmore (School of Informatics)      Computer Science Large Practical   Friday 19th October, 2012   1 / 15
Question: Does this program print Yes, No or neither?




Stephen Gilmore (School of Informatics)   Computer Science Large Practical   Friday 19th October, 2012   2 / 15
Answer: it prints Yes.




                                                                                   . . . it prints Yes.


Stephen Gilmore (School of Informatics)   Computer Science Large Practical   Friday 19th October, 2012   3 / 15
Question: Does this program print Yes, No or neither?




Stephen Gilmore (School of Informatics)   Computer Science Large Practical   Friday 19th October, 2012   4 / 15
Answer: it prints No.




                                                                                    . . . it prints No.


Stephen Gilmore (School of Informatics)   Computer Science Large Practical   Friday 19th October, 2012   5 / 15
Question: Does this program print Yes, No or neither?




Stephen Gilmore (School of Informatics)   Computer Science Large Practical   Friday 19th October, 2012   6 / 15
Answer: neither, it throws an exception.




                                                            . . . neither, it throws an exception.


Stephen Gilmore (School of Informatics)   Computer Science Large Practical   Friday 19th October, 2012   7 / 15
Question: Does this program print Yes, No or neither?




Stephen Gilmore (School of Informatics)   Computer Science Large Practical   Friday 19th October, 2012   8 / 15
Answer: it prints No.




                                                                                    . . . it prints No.


Stephen Gilmore (School of Informatics)   Computer Science Large Practical   Friday 19th October, 2012   9 / 15
Question: Does this program print Yes, No or neither?




Stephen Gilmore (School of Informatics)   Computer Science Large Practical   Friday 19th October, 2012   10 / 15
Answer: it prints No, because we are using pointer equality




                                  . . . it prints No, because we are using pointer equality


Stephen Gilmore (School of Informatics)   Computer Science Large Practical   Friday 19th October, 2012   11 / 15
Question: Does this program print Yes, No or neither?




Stephen Gilmore (School of Informatics)   Computer Science Large Practical   Friday 19th October, 2012   12 / 15
Answer: it prints Yes, because we are using content
equality




                                . . . it prints Yes, because we are using content equality

Stephen Gilmore (School of Informatics)   Computer Science Large Practical   Friday 19th October, 2012   13 / 15
Question: Does this program print Yes, No or neither?




Stephen Gilmore (School of Informatics)   Computer Science Large Practical   Friday 19th October, 2012   14 / 15
Answer: neither, it throws an exception because we forgot
to call init




                 . . . neither, it throws an exception because we forgot to call init

Stephen Gilmore (School of Informatics)   Computer Science Large Practical   Friday 19th October, 2012   15 / 15

Más contenido relacionado

Destacado

Analysis of Algorithms II - PS2
Analysis of Algorithms II - PS2Analysis of Algorithms II - PS2
Analysis of Algorithms II - PS2
AtakanAral
 
iOS Multithreading
iOS MultithreadingiOS Multithreading
iOS Multithreading
Richa Jain
 
Mcq in computer science by timothy j williams
Mcq in computer science by timothy j williamsMcq in computer science by timothy j williams
Mcq in computer science by timothy j williams
Abhishek Bajaj
 
Technical quiz conducted at EDC to Group-III Executives
Technical quiz conducted at EDC to Group-III ExecutivesTechnical quiz conducted at EDC to Group-III Executives
Technical quiz conducted at EDC to Group-III Executives
NTPC
 

Destacado (20)

Analysis of Algorithms II - PS2
Analysis of Algorithms II - PS2Analysis of Algorithms II - PS2
Analysis of Algorithms II - PS2
 
CPP Quiz
CPP QuizCPP Quiz
CPP Quiz
 
C++ class 12 cbse quiz programming (Compiled using Turbo C++)
C++ class 12 cbse quiz programming (Compiled using Turbo C++)C++ class 12 cbse quiz programming (Compiled using Turbo C++)
C++ class 12 cbse quiz programming (Compiled using Turbo C++)
 
Digital citizenship ~ presentation for schools (oct 2012)
Digital citizenship ~ presentation for schools (oct 2012)Digital citizenship ~ presentation for schools (oct 2012)
Digital citizenship ~ presentation for schools (oct 2012)
 
iOS Multithreading
iOS MultithreadingiOS Multithreading
iOS Multithreading
 
Quiz show
Quiz showQuiz show
Quiz show
 
Common Java problems when developing with Android
Common Java problems when developing with AndroidCommon Java problems when developing with Android
Common Java problems when developing with Android
 
Kraken '16 It quiz final
Kraken '16 It quiz finalKraken '16 It quiz final
Kraken '16 It quiz final
 
Anokha tech quiz 2014 Finals
Anokha tech quiz 2014 FinalsAnokha tech quiz 2014 Finals
Anokha tech quiz 2014 Finals
 
The Quiz Quiz Game
The Quiz Quiz GameThe Quiz Quiz Game
The Quiz Quiz Game
 
Mcq in computer science by timothy j williams
Mcq in computer science by timothy j williamsMcq in computer science by timothy j williams
Mcq in computer science by timothy j williams
 
Technical quiz conducted at EDC to Group-III Executives
Technical quiz conducted at EDC to Group-III ExecutivesTechnical quiz conducted at EDC to Group-III Executives
Technical quiz conducted at EDC to Group-III Executives
 
Science Quiz Class 9
Science Quiz Class 9Science Quiz Class 9
Science Quiz Class 9
 
Digital Citizenship
Digital CitizenshipDigital Citizenship
Digital Citizenship
 
Tech quiz prelims
Tech quiz prelimsTech quiz prelims
Tech quiz prelims
 
Computer fundamentals mcq quiz - Practice and prepare with mcqSets.com
Computer fundamentals mcq quiz - Practice and prepare with mcqSets.comComputer fundamentals mcq quiz - Practice and prepare with mcqSets.com
Computer fundamentals mcq quiz - Practice and prepare with mcqSets.com
 
Computer Networking Multiple Choice Questions
Computer Networking Multiple Choice QuestionsComputer Networking Multiple Choice Questions
Computer Networking Multiple Choice Questions
 
Final Round Technical quiz at KMEA Engineering college by Electronics and com...
Final Round Technical quiz at KMEA Engineering college by Electronics and com...Final Round Technical quiz at KMEA Engineering college by Electronics and com...
Final Round Technical quiz at KMEA Engineering college by Electronics and com...
 
Tech It Out (tech quiz) Prelims
Tech It Out (tech quiz) Prelims Tech It Out (tech quiz) Prelims
Tech It Out (tech quiz) Prelims
 
Technical Quiz KAINOTOMIA
Technical Quiz KAINOTOMIATechnical Quiz KAINOTOMIA
Technical Quiz KAINOTOMIA
 

Más de Stephen Gilmore

More Stochastic Simulation Examples
More Stochastic Simulation ExamplesMore Stochastic Simulation Examples
More Stochastic Simulation Examples
Stephen Gilmore
 
Testing Android apps with Robotium
Testing Android apps with RobotiumTesting Android apps with Robotium
Testing Android apps with Robotium
Stephen Gilmore
 
Fixing errors in Android Java applications
Fixing errors in Android Java applicationsFixing errors in Android Java applications
Fixing errors in Android Java applications
Stephen Gilmore
 
Continuing Android development
Continuing Android developmentContinuing Android development
Continuing Android development
Stephen Gilmore
 
Project management for the individual practical
Project management for the individual practicalProject management for the individual practical
Project management for the individual practical
Stephen Gilmore
 
Beginning Android development
Beginning Android developmentBeginning Android development
Beginning Android development
Stephen Gilmore
 

Más de Stephen Gilmore (20)

Feedback on Part 1 of the CSLP
Feedback on Part 1 of the CSLPFeedback on Part 1 of the CSLP
Feedback on Part 1 of the CSLP
 
Feedback on Part 1 of the Software Engineering Large Practical
Feedback on Part 1 of the Software Engineering Large PracticalFeedback on Part 1 of the Software Engineering Large Practical
Feedback on Part 1 of the Software Engineering Large Practical
 
Arrays in Objective-C
Arrays in Objective-CArrays in Objective-C
Arrays in Objective-C
 
More Stochastic Simulation Examples
More Stochastic Simulation ExamplesMore Stochastic Simulation Examples
More Stochastic Simulation Examples
 
Testing Android apps with Robotium
Testing Android apps with RobotiumTesting Android apps with Robotium
Testing Android apps with Robotium
 
Getting started with Xcode
Getting started with XcodeGetting started with Xcode
Getting started with Xcode
 
Working with databases in Android
Working with databases in AndroidWorking with databases in Android
Working with databases in Android
 
Crash Course in Objective-C
Crash Course in Objective-CCrash Course in Objective-C
Crash Course in Objective-C
 
SELP: Debugging, AVDs and Manifests
SELP: Debugging, AVDs and ManifestsSELP: Debugging, AVDs and Manifests
SELP: Debugging, AVDs and Manifests
 
The Stochastic Simulation Algorithm
The Stochastic Simulation AlgorithmThe Stochastic Simulation Algorithm
The Stochastic Simulation Algorithm
 
Beginning Android Development
Beginning Android DevelopmentBeginning Android Development
Beginning Android Development
 
Computer Science Large Practical coursework
Computer Science Large Practical courseworkComputer Science Large Practical coursework
Computer Science Large Practical coursework
 
Software Engineering Large Practical coursework
Software Engineering Large Practical courseworkSoftware Engineering Large Practical coursework
Software Engineering Large Practical coursework
 
Introduction to the CSLP and the SELP
Introduction to the CSLP and the SELPIntroduction to the CSLP and the SELP
Introduction to the CSLP and the SELP
 
Fixing errors in Android Java applications
Fixing errors in Android Java applicationsFixing errors in Android Java applications
Fixing errors in Android Java applications
 
Feedback on Part 1 of the Individual Practical
Feedback on Part 1 of the Individual PracticalFeedback on Part 1 of the Individual Practical
Feedback on Part 1 of the Individual Practical
 
Creating and working with databases in Android
Creating and working with databases in AndroidCreating and working with databases in Android
Creating and working with databases in Android
 
Continuing Android development
Continuing Android developmentContinuing Android development
Continuing Android development
 
Project management for the individual practical
Project management for the individual practicalProject management for the individual practical
Project management for the individual practical
 
Beginning Android development
Beginning Android developmentBeginning Android development
Beginning Android development
 

Último

Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
PECB
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 

Último (20)

microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 

Quick quiz on Objective-C

  • 1. Computer Science Large Practical: Quick quiz on Objective-C Stephen Gilmore School of Informatics Friday 19th October, 2012 Stephen Gilmore (School of Informatics) Computer Science Large Practical Friday 19th October, 2012 1 / 15
  • 2. Question: Does this program print Yes, No or neither? Stephen Gilmore (School of Informatics) Computer Science Large Practical Friday 19th October, 2012 2 / 15
  • 3. Answer: it prints Yes. . . . it prints Yes. Stephen Gilmore (School of Informatics) Computer Science Large Practical Friday 19th October, 2012 3 / 15
  • 4. Question: Does this program print Yes, No or neither? Stephen Gilmore (School of Informatics) Computer Science Large Practical Friday 19th October, 2012 4 / 15
  • 5. Answer: it prints No. . . . it prints No. Stephen Gilmore (School of Informatics) Computer Science Large Practical Friday 19th October, 2012 5 / 15
  • 6. Question: Does this program print Yes, No or neither? Stephen Gilmore (School of Informatics) Computer Science Large Practical Friday 19th October, 2012 6 / 15
  • 7. Answer: neither, it throws an exception. . . . neither, it throws an exception. Stephen Gilmore (School of Informatics) Computer Science Large Practical Friday 19th October, 2012 7 / 15
  • 8. Question: Does this program print Yes, No or neither? Stephen Gilmore (School of Informatics) Computer Science Large Practical Friday 19th October, 2012 8 / 15
  • 9. Answer: it prints No. . . . it prints No. Stephen Gilmore (School of Informatics) Computer Science Large Practical Friday 19th October, 2012 9 / 15
  • 10. Question: Does this program print Yes, No or neither? Stephen Gilmore (School of Informatics) Computer Science Large Practical Friday 19th October, 2012 10 / 15
  • 11. Answer: it prints No, because we are using pointer equality . . . it prints No, because we are using pointer equality Stephen Gilmore (School of Informatics) Computer Science Large Practical Friday 19th October, 2012 11 / 15
  • 12. Question: Does this program print Yes, No or neither? Stephen Gilmore (School of Informatics) Computer Science Large Practical Friday 19th October, 2012 12 / 15
  • 13. Answer: it prints Yes, because we are using content equality . . . it prints Yes, because we are using content equality Stephen Gilmore (School of Informatics) Computer Science Large Practical Friday 19th October, 2012 13 / 15
  • 14. Question: Does this program print Yes, No or neither? Stephen Gilmore (School of Informatics) Computer Science Large Practical Friday 19th October, 2012 14 / 15
  • 15. Answer: neither, it throws an exception because we forgot to call init . . . neither, it throws an exception because we forgot to call init Stephen Gilmore (School of Informatics) Computer Science Large Practical Friday 19th October, 2012 15 / 15