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. _____ operators take 2 operands

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

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

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

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

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

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

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

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

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

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

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

13. Xcode sequence to convert non-ARC apps to ARC

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

15. 3 Common Float data types: float - _____ - CGFloat

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

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

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

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

20. A class that's defined solely so that other classes can inherit from it. Programs don't use instances of this; they use only instances of its subclasses.

21. Initializer method traditionally begin with the _____ prefix

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

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

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

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

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

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

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

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

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

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

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

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

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

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

36. Xcode sequence to examine an app for memory leaks or retain cycles

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

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

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

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

41. Data (like nouns) represent the information we are processing and in Objective-C this made up of the four elements of C types - _____ - enums and objects

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

43. Objective-C methods are called using ____ _____

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

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

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

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

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

49. All objects are created on the _____

50. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block