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. When creating a class header file you begin with the _____ keyword and close with the @end keyword






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






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






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






5. Objective-C methods are called using ____ _____






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






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






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






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






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






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






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






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






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






15. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.






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






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






18. _____ data types can be both positive and negative






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






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






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






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






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






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






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






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






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






28. Initializer method traditionally begin with the _____ prefix






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






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






31. ______ operators take a single operand






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






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






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






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






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






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






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






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






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






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






42. ARC is susceptible to retain _____






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






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






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






46. The time after a program is launched and while it's running. Decisions made at during this time can be influenced by choices the user makes.






47. Xcode sequence to convert non-ARC apps to ARC






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






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






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