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 protocol declared as a category usually as a category of the NSObject class.






2. Objective-C methods are called using ____ _____






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






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






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






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






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






8. A compiler feature that provides automated memory management






9. Initializer method traditionally begin with the _____ prefix






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






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






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






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






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






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






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






17. Three main categories of more complicated data structures:_______ - arrays and structs






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






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






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






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






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






23. The root class in Objective-C






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






25. An object that acts on behalf of another object.






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






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






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






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






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






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






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






33. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership






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






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






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






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






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






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






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






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






42. The most flexible C data type: ______






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






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






45. ______ operators take a single operand






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






47. An object id with a value of 0.






48. The first index in an array is valued at ____






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






50. ARC is susceptible to retain _____