Objective C Review

2,025 views

Published on

A review of stuff covered to date

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
2,025
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
13
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide





























  • Objective C Review

    1. 1. Objective-C: A Review TN Valley Apple Developers Saturday CodeJam: September 11, 2010
    2. 2. Q: What is the blueprint for an object called?
    3. 3. Q: What is the blueprint for an object called? A: Class
    4. 4. Q: What is the blueprint for an object called? A: Class Q: Where is the public portion of source code?
    5. 5. Q: What is the blueprint for an object called? A: Class Q: Where is the public portion of source code? A: The header, or interface, file
    6. 6. Q: What is the blueprint for an object called? A: Class Q: Where is the public portion of source code? A: The header, or interface, file Q: What numeric system do computers use?
    7. 7. Q: What is the blueprint for an object called? A: Class Q: Where is the public portion of source code? A: The header, or interface, file Q: What numeric system do computers use? A: Binary notation, or base 2
    8. 8. Q: What is the blueprint for an object called? A: Class Q: Where is the public portion of source code? A: The header, or interface, file Q: What numeric system do computers use? A: Binary notation, or base 2 Q: How many different characters can a byte store?
    9. 9. Q: What is the blueprint for an object called? A: Class Q: Where is the public portion of source code? A: The header, or interface, file Q: What numeric system do computers use? A: Binary notation, or base 2 Q: How many different characters can a byte store? A: 256 (28)
    10. 10. Q: What is the system used to store negative integers in Objective-C?
    11. 11. Q: What is the system used to store negative integers in Objective-C? A: Two’s Complement
    12. 12. Q: What is the system used to store negative integers in Objective-C? A: Two’s Complement Q: What is a location in RAM where data is stored for use by an application?
    13. 13. Q: What is the system used to store negative integers in Objective-C? A: Two’s Complement Q: What is a location in RAM where data is stored for use by an application? A: A variable
    14. 14. Q: What is the system used to store negative integers in Objective-C? A: Two’s Complement Q: What is a location in RAM where data is stored for use by an application? A: A variable Q: What data type stores positive or negative whole numbers?
    15. 15. Q: What is the system used to store negative integers in Objective-C? A: Two’s Complement Q: What is a location in RAM where data is stored for use by an application? A: A variable Q: What data type stores positive or negative whole numbers? A: the int data type
    16. 16. Q: What is the default data type for storing numbers with decimal places?
    17. 17. Q: What is the default data type for storing numbers with decimal places? A: the double data type
    18. 18. Q: What is the default data type for storing numbers with decimal places? A: the double data type Q: What data type stores a reference to an object?
    19. 19. Q: What is the default data type for storing numbers with decimal places? A: the double data type Q: What data type stores a reference to an object? A: the id data type
    20. 20. Q: What is the default data type for storing numbers with decimal places? A: the double data type Q: What data type stores a reference to an object? A: the id data type Q: What does a pointer contain?
    21. 21. Q: What is the default data type for storing numbers with decimal places? A: the double data type Q: What data type stores a reference to an object? A: the id data type Q: What does a pointer contain? A: the memory address of another variable
    22. 22. Q: What is the key difference between a constant and a variable?
    23. 23. Q: What is the key difference between a constant and a variable? A: The value assigned to a variable can change; the value assigned to a constant cannot
    24. 24. Q: What is the key difference between a constant and a variable? A: The value assigned to a variable can change; the value assigned to a constant cannot Q: What data type stores true / false conditions?
    25. 25. Q: What is the key difference between a constant and a variable? A: The value assigned to a variable can change; the value assigned to a constant cannot Q: What data type stores true / false conditions? A: the BOOL data type
    26. 26. Q: What is the key difference between a constant and a variable? A: The value assigned to a variable can change; the value assigned to a constant cannot Q: What data type stores true / false conditions? A: the BOOL data type Q: What happens when you initialize a variable?
    27. 27. Q: What is the key difference between a constant and a variable? A: The value assigned to a variable can change; the value assigned to a constant cannot Q: What data type stores true / false conditions? A: the BOOL data type Q: What happens when you initialize a variable? A: you assign data to the variable
    28. 28. Q: What is the availability of a variable called?
    29. 29. Q: What is the availability of a variable called? A: the variable’s scope
    30. 30. Q: What is the availability of a variable called? A: the variable’s scope Q: How can you change the value range of a data type?
    31. 31. Q: What is the availability of a variable called? A: the variable’s scope Q: How can you change the value range of a data type? A: by using a data type qualifier
    32. 32. Q: What is the availability of a variable called? A: the variable’s scope Q: How can you change the value range of a data type? A: by using a data type qualifier Q: What is the value range of a short int?
    33. 33. Q: What is the availability of a variable called? A: the variable’s scope Q: How can you change the value range of a data type? A: by using a data type qualifier Q: What is the value range of a short int? A: -32,768 to +32,767 (215 x -1 to 215 - 1)
    34. 34. Q: What is the term for giving a variable a name and defining the type of data that can be stored there?
    35. 35. Q: What is the term for giving a variable a name and defining the type of data that can be stored there? A: declaring the variable

    ×