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






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






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






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






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






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






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






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






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






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






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






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






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






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






15. A set of method definitions that is segregated from the rest of the class definition.






16. A compiler feature that provides automated memory management






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






18. The root class in Objective-C






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






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






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






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






23. Another name for a class that's defined solely so that other classes can inherit from it.






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






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






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






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






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






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






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






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






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






33. Square bracket syntax for calling a method






34. Initializer method traditionally begin with the _____ prefix






35. ______ operators take a single operand






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






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






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






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






40. A class is said to do this when it declares that it implements all the methods in the protocol.






41. ______ data types are always zero or greate






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






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






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






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






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






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






48. A memory-management technique in which each entity that claims ownership of an object increments the object's reference count and later decrements it; allows one instance of an object to be safely shared among several other objects.






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






50. To destroy an object set the variable that points to it to _____