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






2. The process of setting or reading the value at an address pointed to by a pointer






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






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






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






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






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






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






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






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






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






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






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






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






15. A compiler feature that provides automated memory management






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






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






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






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






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






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






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






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






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






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






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






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






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






29. All objects are created on the _____






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






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






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






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






34. Initializer method traditionally begin with the _____ prefix






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






36. Square bracket syntax for calling a method






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






38. Objective-C methods are called using ____ _____






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






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






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






42. _____ operators take 2 operands






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






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






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






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






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. Property attribute where the setter stores the assigned value but does not perform any memory management.






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






50. An object id with a value of 0.







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