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. The _____ function can be used to print a message to the console






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






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






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






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






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






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






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






10. ______ data types are always zero or greate






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






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






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






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






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






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






17. All objects are created on the _____






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






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






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






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






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






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






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






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






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






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






28. _____ data types can be both positive and negative






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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