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

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

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

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

5. Three main categories of more complicated data structures:_______ - arrays and structs

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

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

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

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

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

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

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

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

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

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

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

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

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

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

20. Objective-C methods are called using ____ _____

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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