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. Instance variables are optional in iOS if ________ are used

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

3. 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).

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

5. Initializer method traditionally begin with the _____ prefix

6. 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

7. C-style strings are stored in an array of _____

8. A programming technique that hides the implementation of an operation from its users behind an abstract interface; allows the implementation to be updated or changed without impacting the users of the interface.

9. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.

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

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

12. 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.

13. The first index in an array is valued at ____

14. Xcode sequence to examine an app for memory leaks or retain cycles

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

16. An object that acts on behalf of another object.

17. A set of method definitions that is segregated from the rest of the class definition.

18. A class that's defined solely so that other classes can inherit from it. Programs don't use instances of this; they use only instances of its subclasses.

19. Any class that's one step below another class in the inheritance hierarchy.

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

21. Property attribute that causes the setter to store a copy of the assigned value

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

23. 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.

24. A remote message that returns immediately without waiting for the application that receives the message to respond. The sending application and the receiving application act independently and are therefore not in sync.

25. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages

26. a++; is an example of using a _____ operator

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

28. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______

29. Square bracket syntax for calling a method

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

31. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.

32. All objects are created on the _____

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

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

35. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'

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

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

38. In object-oriented programming a procedure that can be executed by an object.

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

40. The part of an Objective-C class specification that defines public methods (those declared in the class's interface) as well as private methods (those not declared in the class's interface).

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

42. ______ operators take a single operand

43. Short for mutual exclusion semaphore. An object used to synchronize thread execution.

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

45. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.

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

47. Data (like nouns) represent the information we are processing and in Objective-C this made up of the four elements of C types - _____ - enums and objects

48. The root class in Objective-C

49. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.

50. This symbol denotes a method as being a class method