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






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






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






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






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






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






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






8. ARC is susceptible to retain _____






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






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






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






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






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






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






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






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






17. Objective-C methods are called using ____ _____






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






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






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






22. All objects are created on the _____






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






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






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






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






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






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






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






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






31. This symbol denotes a method as being a class method






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






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






34. ______ operators take a single operand






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






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






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






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






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






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






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






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






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






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






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






46. Initializer method traditionally begin with the _____ prefix






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






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






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






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