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. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.






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






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






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






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






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






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






8. _____ data types can be both positive and negative






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






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






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






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






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






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






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






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






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






18. A compiler feature that provides automated memory management






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






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






21. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.






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






23. The root class in Objective-C






24. All objects are created on the _____






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






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






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






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






29. Objective-C methods are called using ____ _____






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






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






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






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






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






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






36. Initializer method traditionally begin with the _____ prefix






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






38. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments






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






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






41. Square bracket syntax for calling a method






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






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






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






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






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






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






48. An object id with a value of 0.






49. This symbol denotes a method as being a class method






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