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. ______ operators take a single operand






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






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






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






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






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






7. Xcode sequence to examine an app for memory leaks or retain cycles






8. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.






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






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






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






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






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






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






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






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






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






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






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






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






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






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






23. ARC is susceptible to retain _____






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






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






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






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






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






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






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






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






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






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






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






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






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






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






38. Short for mutual exclusion semaphore. An object used to synchronize thread execution.






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






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






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






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






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






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






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






46. a++; is an example of using a _____ operator






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






48. A compiler feature that provides automated memory management






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






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