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. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.






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






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






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






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






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






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






9. Property attribute where the setter stores the assigned value but does not perform any memory management.






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






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






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






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






14. Xcode sequence to examine an app for memory leaks or retain cycles






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






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






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






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






19. The root class in Objective-C






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






21. A set of method definitions that is segregated from the rest of the class definition.






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






23. Any variable that's part of the internal data structure of an instance; declared in a class definition and become part of all objects that are members of or inherit from the class.






24. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method






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






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






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






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






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






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






31. The most flexible C data type: ______






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






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






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






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






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. ______ data types are always zero or greate






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






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






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






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






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






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






44. ARC is susceptible to retain _____






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






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






47. All objects are created on the _____






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






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






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