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 the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.






2. Initializer method traditionally begin with the _____ prefix






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






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






5. _____ is one of the main advantages of object-oriented code and allows objects to 'hide away' much of their complexity operating at times like a proverbial 'black-box'.






6. In object-oriented programming a procedure that can be executed by an object.






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






8. An object id with a value of 0.






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






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






11. Xcode sequence to convert non-ARC apps to ARC






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






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






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






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






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






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






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






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






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






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






22. Objective-C methods are called using ____ _____






23. _____ allow indirect access and modification of a variable's value.






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






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






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






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






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






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






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






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






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






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






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






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






36. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership






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






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






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






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






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






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






43. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method






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






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






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






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






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






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






50. Property attribute that synthesizes only a getter for the property