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 to obvious but it re-enforces your understanding as you take the test each time.
1. _____ data types can be both positive and negative

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

3. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.

4. This symbol denotes a method as being an instance method

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

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

7. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.

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

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

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

11. Objective-C binds methods and arguments at _____ instead of compile time

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

13. The general type for any kind of object regardless of class; defined as a pointer to an object data structure; can be used for both class objects and instances of a class.

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

15. A compiler feature that provides automated memory management

16. The init... method that has primary responsibility for initializing new instances of a class. Each class defines or inherits its own. Through messages to self other init... methods in the same class directly or indirectly invoke it and then it - thro

17. Property attribute that synthesizes both a getter and setter for the property

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

19. Objective-C methods are called using ____ _____

20. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.

21. Property attribute where the setter stores the assigned value but does not perform any memory management.

22. A variable that points to the memory address of another value

23. In the Objective-C language an object that belongs to (is a member of) a particular class; created at runtime according to the specification in the class definition.

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

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

26. _____ operators take 2 operands

27. ______ operators take a single operand

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

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

30. In the Objective-C language the declaration of a group of methods not associated with any particular class.

31. _____ allow you to add new methods to existing classes

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

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

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

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

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

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

38. ARC is susceptible to retain _____

39. A class is said to do this to a protocol if it (or a superclass) implements the methods declared in the protocol. An instance does this to a protocol if its class does. Thus an instance that does this to a protocol can perform any of the instance met

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

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

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

43. In object-oriented programming the hierarchy of classes that's defined by the arrangement of superclasses and subclasses. Every class (except root classes such as NSObject) has a superclass and any class may have an unlimited number of subclasses.

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

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

46. Same as class object. (first way to say it.)

47. The time after a program is launched and while it's running. Decisions made at during this time can be influenced by choices the user makes.

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

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

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