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. Objective-C binds methods and arguments at _____ instead of compile time






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






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






4. Objective-C methods are called using ____ _____






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






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






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






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






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






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






11. The root class in Objective-C






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






29. ______ operators take a single operand






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






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






32. A Cocoa framework that implements an application's user interface; provides a basic program structure for applications that draw on the screen and respond to events.






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






34. The part of an Objective-C class specification that defines public methods (those declared in the class's interface) as well as private methods (those not declared in the class's interface).






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






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






37. In the Objective-C language the declaration of a group of methods not associated with any particular class.






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






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






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






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






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






43. Square bracket syntax for calling a method






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






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






46. _____ allow you to add new methods to existing classes






47. The most flexible C data type: ______






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






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






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