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. A variable that points to the memory address of another value

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

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

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

6. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.

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

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

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

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

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

12. Initializer method traditionally begin with the _____ prefix

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. Objective-C is a _____ of the C language

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

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

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

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

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

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

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

22. _____ 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'.

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

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

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

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

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

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

29. ARC is susceptible to retain _____

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

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

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

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

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

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

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

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

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

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

40. The root class in Objective-C

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

42. Same as class object. (second way to say it.)

43. A compiler feature that provides automated memory management

44. ______ data types are always zero or greate

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

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

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

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

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

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