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 part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.






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






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






4. Initializer method traditionally begin with the _____ prefix






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






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






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






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






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






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






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






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






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






14. All objects are created on the _____






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






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






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






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






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






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






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






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






23. Any variable that's part of the internal data structure of an instance; declared in a class definition and become part of all objects that are members of or inherit from the class.






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






40. A technique used in C-based languages where the operating system provides memory to a running application as it needs it instead of when it launches.






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






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






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






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






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






46. The time when files compiled from different source modules are linked into a single program. Decisions made by the linker are constrained by the compiled code and ultimately by the information contained in source code.






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






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






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






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