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. Data types are divided into two main categories: integer and ______






2. Initializer method traditionally begin with the _____ prefix






3. _____ allow indirect access and modification of a variable's value.






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






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






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






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






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






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






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






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






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






13. The time after a program is launched and while it's running. Decisions made at during this time can be influenced by choices the user makes.






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






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






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. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.






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






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






20. _____ operators take 2 operands






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






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






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






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






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






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






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






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






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






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






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






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






33. A compiler feature that provides automated memory management






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






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






36. Finding the method implementation to invoke in response to the message






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






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






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






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






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






42. The most flexible C data type: ______






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






44. In the Objective-C language an object that belongs to (is a member of) a particular class; created at runtime according to the specification in the class definition.






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






46. A ____ _____ is where you forget to free up memory






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






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






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






50. A protocol that's declared with the @protocol directive. Classes can adopt these - objects can respond at runtime when asked if they conform to them and instances can be typed by those that they conform to.