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. ARC is susceptible to retain _____






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






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






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






5. ______ data types are always zero or greate






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






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






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






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






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






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






12. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.






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






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






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






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






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






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






19. Same as class object. (second way to say it.)






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






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






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






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






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






25. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.






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






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






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






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






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






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






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






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






34. _____ data types can be both positive and negative






35. A technique used in C-based languages where the operating system provides memory to a running application as it needs it instead of when it launches.






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






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






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






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






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






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






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






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






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






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






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






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






48. Objective-C methods are called using ____ _____






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






50. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block