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 method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.

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

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

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

5. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.

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

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

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

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

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

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

12. Placing a ____ before a normal variable name gives it's address

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

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

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

16. The most flexible C data type: ______

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

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

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

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

21. ______ data types are always zero or greate

22. a+b; is an example of using a _____ operator

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

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

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

26. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions

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

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

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

30. Instance variables are optional in iOS if ________ are used

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

32. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.

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

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

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

36. A compiler feature that provides automated memory management

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

38. The name of a method when it's used in a source-code message to an object or the unique identifier that replaces the name when the source code is compiled.

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

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

41. The time when files compiled from different source modules are linked into a single program. Decisions made by the linker are constrained by the compiled code and ultimately by the information contained in source code.

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. Discovering the class of an object at runtime rather than at compile time.

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

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

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

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

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

49. A ____ ____ is a situation where you free memory and then accidentally continue to use it

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