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. The _____ function can be used to print a message to the console






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






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






4. _____ operators take 2 operands






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






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






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






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






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






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






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






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






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






14. Initializer method traditionally begin with the _____ prefix






15. An architecture that facilitates communication between objects in different address spaces.






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






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. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.






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






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






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






22. An object of unknown class. Interface is published through protocol declaration.






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






24. The most flexible C data type: ______






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






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






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






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






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






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






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






32. Three main categories of more complicated data structures:_______ - arrays and structs






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






34. Square bracket syntax for calling a method






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






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






37. The root class in Objective-C






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






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






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






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






42. ______ data types are always zero or greate






43. _____ data types can be both positive and negative






44. ARC is susceptible to retain _____






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






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






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






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






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






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