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. Symbol used to denote a placeholder in a format string






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






3. A method that can operate on class objects rather than instances of the class.






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






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






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






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






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






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






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






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






12. Short for mutual exclusion semaphore. An object used to synchronize thread execution.






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






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






15. Property attribute that causes the setter to store a strong reference to the assigned value






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






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






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






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






20. A class is said to do this when it declares that it implements all the methods in the protocol.






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






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






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






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






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






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






27. ARC is susceptible to retain _____






28. Objective-C methods are called using ____ _____






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






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






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






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






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






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






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






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






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






38. ______ operators take a single operand






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






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






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






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






43. _____ is one of the main advantages of object-oriented code and allows objects to 'hide away' much of their complexity operating at times like a proverbial 'black-box'.






44. An object id with a value of 0.






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






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






47. An instance variable that points to another object; _____ instance variables are a way for an object to keep track of the other objects to which it may need to send messages.






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






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






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