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






2. A compiler feature that provides automated memory management






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






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






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






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






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






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






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






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






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






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. Square bracket syntax for calling a method






14. A technique used in C-based languages where the operating system provides memory to a running application as it needs it instead of when it launches.






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






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






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






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






19. An object id with a value of 0.






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






21. Objective-C methods are called using ____ _____






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






44. ______ operators take a single operand






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






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






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






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






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






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