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. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.

2. _____ data types can be both positive and negative

3. Property attribute that synthesizes only a getter for the property

4. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method

5. ______ data types are always zero or greate

6. A ____ _____ is where you forget to free up memory

7. Created by the compiler - lacks instance variables and can't be statically typed but otherwise behave like all other objects. As the receiver in a message expression - a it is represented by the class name.

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

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

10. The direct or indirect report of external activity especially user activity on the keyboard and mouse.

11. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

26. Objective-C objects should use strong or weak ______

27. Finding the method implementation to invoke in response to the message

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

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

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

31. In Objective-C floats are more commonly used than ______

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

33. _____ is one of the main advantages of object-oriented code and allows objects to 'hide away' much of their complexity operating at times like a proverbial 'black-box'.

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

35. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger

36. A technique used in C-based languages where the operating system provides memory to a running application as it needs it instead of when it launches.

37. An object id with a value of 0.

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

39. The process of setting or reading the value at an address pointed to by a pointer

40. Initializer method traditionally begin with the _____ prefix

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

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

43. Objective-C's protocols are really about communicating _____ _______

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

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

46. Objective-C is a _____ of the C language

47. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles

48. Square bracket syntax for calling a method

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

50. An architecture that facilitates communication between objects in different address spaces.