SlideShare a Scribd company logo
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

More Related Content

PPTX
Pre writing
PPTX
IT QUIZ(KOZHIKODE SUB DISTRICT UP LEVEL)
PPTX
IT Quiz Final @ eRz eRDeN 15, IT Fest, ITM Mayyil
PDF
TCS IT WIZ 2013 Prelims Questions
PPTX
IT Quiz Prelims
PPT
Tech Quiz Finals
PPTX
Picture Quiz ppt
PPTX
IT quiz : TEchnovanza 2k16 Final
Pre writing
IT QUIZ(KOZHIKODE SUB DISTRICT UP LEVEL)
IT Quiz Final @ eRz eRDeN 15, IT Fest, ITM Mayyil
TCS IT WIZ 2013 Prelims Questions
IT Quiz Prelims
Tech Quiz Finals
Picture Quiz ppt
IT quiz : TEchnovanza 2k16 Final

Viewers also liked (20)

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

More from Stephen Gilmore (20)

PDF
Feedback on Part 1 of the CSLP
PDF
Feedback on Part 1 of the Software Engineering Large Practical
PDF
Arrays in Objective-C
PDF
More Stochastic Simulation Examples
PDF
Testing Android apps with Robotium
PDF
Getting started with Xcode
PDF
Working with databases in Android
PDF
Crash Course in Objective-C
PDF
SELP: Debugging, AVDs and Manifests
PDF
The Stochastic Simulation Algorithm
PDF
Beginning Android Development
PDF
Computer Science Large Practical coursework
PDF
Software Engineering Large Practical coursework
PDF
Introduction to the CSLP and the SELP
PDF
Fixing errors in Android Java applications
PDF
Feedback on Part 1 of the Individual Practical
PDF
Creating and working with databases in Android
PDF
Continuing Android development
PDF
Project management for the individual practical
PDF
Beginning Android development
Feedback on Part 1 of the CSLP
Feedback on Part 1 of the Software Engineering Large Practical
Arrays in Objective-C
More Stochastic Simulation Examples
Testing Android apps with Robotium
Getting started with Xcode
Working with databases in Android
Crash Course in Objective-C
SELP: Debugging, AVDs and Manifests
The Stochastic Simulation Algorithm
Beginning Android Development
Computer Science Large Practical coursework
Software Engineering Large Practical coursework
Introduction to the CSLP and the SELP
Fixing errors in Android Java applications
Feedback on Part 1 of the Individual Practical
Creating and working with databases in Android
Continuing Android development
Project management for the individual practical
Beginning Android development
Ad

Recently uploaded (20)

PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
Insiders guide to clinical Medicine.pdf
PPTX
master seminar digital applications in india
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PPTX
Cell Types and Its function , kingdom of life
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PPTX
Cell Structure & Organelles in detailed.
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PPTX
Lesson notes of climatology university.
PDF
RMMM.pdf make it easy to upload and study
PDF
01-Introduction-to-Information-Management.pdf
PDF
TR - Agricultural Crops Production NC III.pdf
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
O7-L3 Supply Chain Operations - ICLT Program
Insiders guide to clinical Medicine.pdf
master seminar digital applications in india
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Microbial diseases, their pathogenesis and prophylaxis
Cell Types and Its function , kingdom of life
102 student loan defaulters named and shamed – Is someone you know on the list?
Cell Structure & Organelles in detailed.
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
Final Presentation General Medicine 03-08-2024.pptx
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
2.FourierTransform-ShortQuestionswithAnswers.pdf
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
Lesson notes of climatology university.
RMMM.pdf make it easy to upload and study
01-Introduction-to-Information-Management.pdf
TR - Agricultural Crops Production NC III.pdf
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx

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