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






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






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






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






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






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






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






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






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






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






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






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






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






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






15. ______ data types are always zero or greate






16. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods






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






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






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






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






21. The most flexible C data type: ______






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






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






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






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






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






27. _____ allow indirect access and modification of a variable's value.






28. Same as class object. (first way to say it.)






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






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






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






32. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.






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






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






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






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






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






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






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






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






41. ______ operators take a single operand






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






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






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






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






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






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






48. An object id with a value of 0.






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






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