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 logical subdivision of a program within which all names must be unique. Symbols in one do not conflict with identically named symbols in another.






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






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






4. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments






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






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






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






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






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






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






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






12. ______ operators take a single operand






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






14. _____ is one of the main advantages of object-oriented code and allows objects to 'hide away' much of their complexity operating at times like a proverbial 'black-box'.






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






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






17. A compiler feature that provides automated memory management






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






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






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






21. ______ data types are always zero or greate






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






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






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






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






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






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






28. _____ data types can be both positive and negative






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






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






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






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






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






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






35. In a format string the place holder for an object is ______






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






37. Objective-C methods are called using ____ _____






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






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






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






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






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. ARC is susceptible to retain _____






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






45. Square bracket syntax for calling a method






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






47. Data types are divided into two main categories: integer and ______






48. The root class in Objective-C






49. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.






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