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. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods






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






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






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






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






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






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






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






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






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






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






12. _____ operators take 2 operands






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






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






15. An object id with a value of 0.






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






17. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






33. Square bracket syntax for calling a method






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






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






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






37. All objects are created on the _____






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






39. Objective-C methods are called using ____ _____






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






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






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






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






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






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






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






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






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






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






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