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. Finding the method implementation to invoke in response to the message






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






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






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






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. In object-oriented programming the object that is sent a message.






7. The part of an Objective-C class specification that defines public methods (those declared in the class's interface) as well as private methods (those not declared in the class's interface).






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






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






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






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






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






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






14. The init... method that has primary responsibility for initializing new instances of a class. Each class defines or inherits its own. Through messages to self other init... methods in the same class directly or indirectly invoke it and then it - thro






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






16. _____ data types can be both positive and negative






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






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






19. ______ data types are always zero or greate






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






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






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






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






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






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






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






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






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






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






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






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






32. A compiler feature that provides automated memory management






33. The most flexible C data type: ______






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






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






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






37. _____ allow you to add new methods to existing classes






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






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






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






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






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






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






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






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






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






47. The root class in Objective-C






48. Square bracket syntax for calling a method






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






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