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. Instance variables are optional in iOS if ________ are used






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






3. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.






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






5. In object-oriented programming the hierarchy of classes that's defined by the arrangement of superclasses and subclasses. Every class (except root classes such as NSObject) has a superclass and any class may have an unlimited number of subclasses.






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






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






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






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






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






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






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






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






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






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






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






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






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. Property attribute that synthesizes both a getter and setter for the property






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






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






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






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






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






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






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






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






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






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






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






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






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






33. A compiler feature that provides automated memory management






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






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






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






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. Placing a ____ before a normal variable name gives it's address






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






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






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






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






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






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






45. The most flexible C data type: ______






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






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






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






49. All objects are created on the _____






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






Can you answer 50 questions in 15 minutes?



Let me suggest you:



Major Subjects



Tests & Exams


AP
CLEP
DSST
GRE
SAT
GMAT

Most popular tests