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. In object-oriented programming an expression that sends a message to an object. In the Objective-C language they are enclosed within square brackets and consist of a receiver followed by a message (method selector and parameters).






2. An object id with a value of 0.






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






29. ______ data types are always zero or greate






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






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






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






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. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.






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






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






37. Symbol used to denote a placeholder in a format string






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






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






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






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






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






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






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






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






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






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






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






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






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