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






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






3. All objects are created on the _____






4. ARC is susceptible to retain _____






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






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






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






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






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. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword






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






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






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






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






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






16. Objective-C methods are called using ____ _____






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






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






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






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






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






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






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






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






25. A method that can operate on class objects rather than instances of the class.






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






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






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






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






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






31. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






47. Objective-C is a _____ of the C language






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






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






50. Initializer method traditionally begin with the _____ prefix