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. Property attribute that causes the setter to store a copy of the assigned value






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






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






4. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'






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






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






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






8. In object-oriented programming the object that is sent a message.






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






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






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






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






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






14. A compiler feature that provides automated memory management






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






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






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






18. All objects are created on the _____






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






20. The root class in Objective-C






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






22. ARC is susceptible to retain _____






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






24. An object id with a value of 0.






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






26. ______ operators take a single operand






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






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






29. Objective-C's protocols are really about communicating _____ _______






30. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.






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






32. A protocol declared as a category usually as a category of the NSObject class.






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






34. a+b; is an example of using a _____ operator






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






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






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






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






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






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






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






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






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






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






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






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. An object in another application - one that's a potential receiver for a remote message.






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






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






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