Your SlideShare is downloading. ×
Quick quiz on Objective-C
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Quick quiz on Objective-C

2,056
views

Published on

A quick quiz to point out some of the differences between Objective-C and Java.

A quick quiz to point out some of the differences between Objective-C and Java.

Published in: Education

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
2,056
On Slideshare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
16
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Computer Science Large Practical: Quick quiz on Objective-C Stephen Gilmore School of Informatics Friday 19th October, 2012Stephen 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 equalityStephen 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 contentequality . . . it prints Yes, because we are using content equalityStephen 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 forgotto call init . . . neither, it throws an exception because we forgot to call initStephen Gilmore (School of Informatics) Computer Science Large Practical Friday 19th October, 2012 15 / 15

×