Test your basic knowledge |

Objective C Programming Basics

Subjects : it-skills, apple
Instructions:
  • 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. The init... method that has primary responsibility for initializing new instances of a class. Each class defines or inherits its own. Through messages to self other init... methods in the same class directly or indirectly invoke it and then it - thro






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






3. A logical subdivision of a program within which all names must be unique. Symbols in one do not conflict with identically named symbols in another.






4. ARC is susceptible to retain _____






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






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






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






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






9. ______ data types are always zero or greate






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






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






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






13. _____ operators take 2 operands






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






15. There are ____ fundamental building blocks in Objective-C






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






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






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






19. ____ provide a concise & elegant method for defining a discrete set of values






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






36. Property attribute that causes the setter to store a zeroing weak reference to the assigned value






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






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






39. Any method that can be used by an instance of a class rather than by the class object.






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






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






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






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






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






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






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






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. In a home building analogy a ____ is the blueprint and the object is the house






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






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