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. Any method that can be used by an instance of a class rather than by the class object.






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






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






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






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






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






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. _____ allow you to add new methods to existing classes






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






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






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






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






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






14. A class that's defined solely so that other classes can inherit from it. Programs don't use instances of this; they use only instances of its subclasses.






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






30. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages






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






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






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






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






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






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






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






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






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






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






41. In object-oriented programming an expression that sends a message to an object. In the Objective-C language they are enclosed within square brackets and consist of a receiver followed by a message (method selector and parameters).






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






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






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






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






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






47. Symbol used to denote a placeholder in a format string






48. An object that acts on behalf of another object.






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






50. All objects are created on the _____