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






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






3. Objective-C methods are called using ____ _____






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






5. ______ data types are always zero or greate






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






7. A compiler feature that provides automated memory management






8. The root class in Objective-C






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






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






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






12. An object id with a value of 0.






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






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






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






16. Discovering the class of an object at runtime rather than at compile time.






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






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






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






20. Property attribute that synthesizes both a getter and setter for the property






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






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






23. ______ operators take a single operand






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






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






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






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






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






29. Objective-C objects should use strong or weak ______






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






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






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






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






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. _____ allow you to add new methods to existing classes






36. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger






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






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






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






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






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






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






43. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.






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






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






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






47. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles






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






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






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