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. Placing a ____ before a normal variable name gives it's address






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






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






4. ______ data types are always zero or greate






5. _____ operators take 2 operands






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






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






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






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






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






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






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






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






14. Square bracket syntax for calling a method






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






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






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






18. The most flexible C data type: ______






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






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






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






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






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






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






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






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






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






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






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






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






31. Objective-C methods are called using ____ _____






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






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






34. _____ 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'.






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






50. Initializer method traditionally begin with the _____ prefix