• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Quick quiz on Objective-C
 

Quick quiz on Objective-C

on

  • 1,843 views

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.

Statistics

Views

Total Views
1,843
Views on SlideShare
1,841
Embed Views
2

Actions

Likes
0
Downloads
11
Comments
0

2 Embeds 2

http://www.slashdocs.com 1
http://www.linkedin.com 1

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Quick quiz on Objective-C Quick quiz on Objective-C Presentation Transcript

    • 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
    • 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 equalityStephen 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 contentequality . . . it prints Yes, because we are using content equalityStephen 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 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