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. Any method that can be used by an instance of a class rather than by the class object.






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






3. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______






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






5. The most flexible C data type: ______






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






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






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






9. An object in another application - one that's a potential receiver for a remote message.






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






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






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






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






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






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






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






17. The first index in an array is valued at ____






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






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






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






21. Square bracket syntax for calling a method






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






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






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






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






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






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






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






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






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






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






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






33. _____ operators take 2 operands






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






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






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






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






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






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






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






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






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






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






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






45. An object that acts on behalf of another object.






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






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






48. A remote message that doesn't return until the receiving application finishes responding to the message. Because the application that sends the message waits for an acknowledgment or return information from the receiving application - the two applica






49. ARC is susceptible to retain _____






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







Sorry!:) No result found.

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