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






2. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.






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






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






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






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






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






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






9. The general type for any kind of object regardless of class; defined as a pointer to an object data structure; can be used for both class objects and instances of a class.






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






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






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






13. An object id with a value of 0.






14. Short for mutual exclusion semaphore. An object used to synchronize thread execution.






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






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






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






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






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






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






21. Objective-C is a _____ of the C language






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






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






24. Objective-C's protocols are really about communicating _____ _______






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






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






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






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






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






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. All objects are created on the _____






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






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






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






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






36. The root class in Objective-C






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






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






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






40. _____ data types can be both positive and negative






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






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






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






44. _____ allow you to add new methods to existing classes






45. Objective-C methods are called using ____ _____






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






47. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages






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






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






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