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 strong reference to the assigned value






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






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






4. _____ data types can be both positive and negative






5. Square bracket syntax for calling a method






6. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.






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






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






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






10. A logical subdivision of a program within which all names must be unique. Symbols in one do not conflict with identically named symbols in another.






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






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






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






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






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






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






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






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






19. A class is said to do this to a protocol if it (or a superclass) implements the methods declared in the protocol. An instance does this to a protocol if its class does. Thus an instance that does this to a protocol can perform any of the instance met






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






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






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






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






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






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






26. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.






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






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






29. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.






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






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






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






33. ______ operators take a single operand






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






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






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






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






38. Objective-C methods are called using ____ _____






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






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






41. ARC is susceptible to retain _____






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






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






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






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






46. A message sent from one application to an object in another application.






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






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






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






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