Test your basic knowledge |

Objective C Programming Basics

Subjects : it-skills, apple
  • Answer 50 questions in 15 minutes.
  • If you are not ready to take this test, you can study here.
  • Match each statement with the correct term.
  • Don't refresh. All questions and answers are randomly picked and ordered every time you load a test.

This is a study tool. The 3 wrong answers for each question are randomly chosen from answers to other questions. So, you might find at times the answers obvious, but you will see it re-enforces your understanding as you take the test each time.
1. The first index in an array is valued at ____

2. All objects are created on the _____

3. Rather than using arrays in Objective-C we often are able to use it's collection classes of NSArray - NSSet and NSDictionary with _____ for strings

4. A memory-management technique in which each entity that claims ownership of an object increments the object's reference count and later decrements it; allows one instance of an object to be safely shared among several other objects.

5. Pointers are declared by placing a(n) ___ between the type declaration and the variable name

6. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership

7. A method that can operate on class objects rather than instances of the class.

8. To destroy an object set the variable that points to it to _____

9. A programming unit that groups together a data structure (instance variables) and the operations (methods) that can use or affect that data; the principal building blocks of object-oriented programs.

10. A class is said to do this when it declares that it implements all the methods in the protocol.

11. Symbol used to denote a placeholder in a format string

12. Property attribute that causes the setter to store a strong reference to the assigned value

13. In a format string the place holder for an object is ______

14. A Cocoa framework that implements an application's user interface; provides a basic program structure for applications that draw on the screen and respond to events.

15. A compiler feature that provides automated memory management

16. 3 Common Float data types: float - _____ - CGFloat

17. The root class in Objective-C

18. A protocol that's declared with the @protocol directive. Classes can adopt these - objects can respond at runtime when asked if they conform to them and instances can be typed by those that they conform to.

19. Any method that can be used by an instance of a class rather than by the class object.

20. Discovering the class of an object at runtime rather than at compile time.

21. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.

22. In object-oriented programming the object that is sent a message.

23. In object-oriented programming an expression that sends a message to an object. In the Objective-C language they are enclosed within square brackets and consist of a receiver followed by a message (method selector and parameters).

24. An object of unknown class. Interface is published through protocol declaration.

25. There are ____ fundamental building blocks in Objective-C

26. A message sent from one application to an object in another application.

27. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct

28. The most flexible C data type: ______

29. When creating a class header file you begin with the _____ keyword and close with the @end keyword

30. Property attribute that causes the setter to store a zeroing weak reference to the assigned value

31. C-style strings always end with a ____ character

32. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.

33. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments

34. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods

35. Property attribute that synthesizes accessors that are not thread safe

36. In a home building analogy a ____ is the blueprint and the object is the house

37. Objective-C methods are called using ____ _____

38. An object in another application - one that's a potential receiver for a remote message.

39. A protocol declared as a category usually as a category of the NSObject class.

40. A tool that lets you graphically specify your application's user interface. It sets up the corresponding objects for you and makes it easy for you to establish connections between these objects and your own code where needed.

41. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.

42. Another name for a class that's defined solely so that other classes can inherit from it.

43. The _____ function can be used to print a message to the console

44. Data types are divided into two main categories: integer and ______

45. Xcode sequence to convert non-ARC apps to ARC

46. A remote message that doesn't return until the receiving application finishes responding to the message. Because the application that sends the message waits for an acknowledgment or return information from the receiving application - the two applica

47. Same as class object. (second way to say it.)

48. A struct may contain multiple ____ consisting of different data types

49. An instance variable that points to another object; _____ instance variables are a way for an object to keep track of the other objects to which it may need to send messages.

50. _____ allow indirect access and modification of a variable's value.