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. Instance variables are optional in iOS if ________ are used






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






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






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






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






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






7. Initializer method traditionally begin with the _____ prefix






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






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






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






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






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






13. ARC is susceptible to retain _____






14. All objects are created on the _____






15. In object-oriented programming a procedure that can be executed by an object.






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






17. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger






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






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






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






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






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






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






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






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






26. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct






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






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






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






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






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






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






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






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






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






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






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






38. Property attribute where the setter stores the assigned value but does not perform any memory management.






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






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






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






42. Short for mutual exclusion semaphore. An object used to synchronize thread execution.






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






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






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






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






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






48. Objective-C methods are called using ____ _____






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






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