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 is a _____ of the C language






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






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






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






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






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






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






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






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






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






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






12. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.






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






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






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






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






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






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






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






20. Initializer method traditionally begin with the _____ prefix






21. _____ data types can be both positive and negative






22. A class is said to do this when it declares that it implements all the methods in the protocol.






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






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






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






26. Square bracket syntax for calling a method






27. All objects are created on the _____






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






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






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






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






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






33. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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