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 _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.






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






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






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






5. _____ data types can be both positive and negative






6. The most flexible C data type: ______






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






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






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






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






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






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






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






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






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






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






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






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






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






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






21. ______ data types are always zero or greate






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






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






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






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






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






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






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






29. Initializer method traditionally begin with the _____ prefix






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






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






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






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






34. A programming technique that hides the implementation of an operation from its users behind an abstract interface; allows the implementation to be updated or changed without impacting the users of the interface.






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






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






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






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






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






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






41. In the Objective-C language an object that belongs to (is a member of) a particular class; created at runtime according to the specification in the class definition.






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






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






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






45. Square bracket syntax for calling a method






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






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






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






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






50. All objects are created on the _____