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






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






3. A remote message that doesn't return until the receiving application finishes responding to the message. Because the application that sends the message waits for an acknowledgment or return information from the receiving application - the two applica






4. _____ data types can be both positive and negative






5. A remote message that returns immediately without waiting for the application that receives the message to respond. The sending application and the receiving application act independently and are therefore not in sync.






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






7. The root class in Objective-C






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






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






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






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






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






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






14. Square bracket syntax for calling a method






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






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






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






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






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






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






21. Initializer method traditionally begin with the _____ prefix






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






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






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






25. ARC is susceptible to retain _____






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






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






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






29. In object-oriented programming the object that is sent a message.






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






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






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






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






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






35. Rather than using arrays in Objective-C we often are able to use it's collection classes of NSArray - NSSet and NSDictionary with _____ for strings






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






37. In a format string the place holder for an object is ______






38. Property attribute that synthesizes accessors that are not thread safe






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






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






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






42. Pointers are declared by placing a(n) ___ between the type declaration and the variable name






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






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






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






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






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






48. Instance variables are optional in iOS if ________ are used






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






50. Any class that's one step below another class in the inheritance hierarchy.