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. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method






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






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






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






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






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






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






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






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






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






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






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






13. ______ data types are always zero or greate






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






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






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






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






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






19. ARC is susceptible to retain _____






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






21. a++; is an example of using a _____ operator






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






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






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






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






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






28. Square bracket syntax for calling a method






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






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






31. ______ operators take a single operand






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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