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. Xcode sequence to examine an app for memory leaks or retain cycles






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






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






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






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






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






7. _____ operators take 2 operands






8. Pointers are declared by placing a(n) ___ between the type declaration and the variable name






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






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






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






12. C-style strings always end with a ____ character






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






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






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






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






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






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






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






21. _____ data types can be both positive and negative






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






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






24. Data (like nouns) represent the information we are processing and in Objective-C this made up of the four elements of C types - _____ - enums and objects






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






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






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






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






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






30. Objective-C binds methods and arguments at _____ instead of compile time






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






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






33. The root class in Objective-C






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






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






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






37. An object in another application - one that's a potential receiver for a remote message.






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






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






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






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






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






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






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






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






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






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






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






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






50. Initializer method traditionally begin with the _____ prefix