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. Objective-C's protocols are really about communicating _____ _______






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






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






4. In object-oriented programming the hierarchy of classes that's defined by the arrangement of superclasses and subclasses. Every class (except root classes such as NSObject) has a superclass and any class may have an unlimited number of subclasses.






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






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






7. An object id with a value of 0.






8. The most flexible C data type: ______






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






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






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






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






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






15. An object that acts on behalf of another object.






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






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






18. ARC is susceptible to retain _____






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






20. There are ____ fundamental building blocks in Objective-C






21. ______ operators take a single operand






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






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






24. In the Objective-C language the declaration of a group of methods not associated with any particular class.






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






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






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






28. _____ operators take 2 operands






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






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






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






32. Pointers are declared by placing a(n) ___ between the type declaration and the variable name






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






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






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






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






37. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.






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






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






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






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






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






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






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






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






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






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






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






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






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