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. Symbol used to denote a placeholder in a format string

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

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

4. Any variable that's part of the internal data structure of an instance; declared in a class definition and become part of all objects that are members of or inherit from the class.

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

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

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

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

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

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

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

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

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

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

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

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

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

18. _____ data types can be both positive and negative

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

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

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

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

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

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

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

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

27. A compiler feature that provides automated memory management

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

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

30. C-style strings always end with a ____ character

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

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

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

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

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

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

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

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

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

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

41. To destroy an object set the variable that points to it to _____

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

43. _____ operators take 2 operands

44. The most flexible C data type: ______

45. ______ operators take a single operand

46. A tool that lets you graphically specify your application's user interface. It sets up the corresponding objects for you and makes it easy for you to establish connections between these objects and your own code where needed.

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

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

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

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