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. Square bracket syntax for calling a method






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






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






4. This symbol denotes a method as being a class method






5. The most flexible C data type: ______






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






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






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






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






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






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






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






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






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






15. _____ data types can be both positive and negative






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






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






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






19. _____ operators take 2 operands






20. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions






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






22. The time when files compiled from different source modules are linked into a single program. Decisions made by the linker are constrained by the compiled code and ultimately by the information contained in source code.






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






24. The part of an Objective-C class specification that defines public methods (those declared in the class's interface) as well as private methods (those not declared in the class's interface).






25. Initializer method traditionally begin with the _____ prefix






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






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






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






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






30. A protocol declared as a category usually as a category of the NSObject class.






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






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






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






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






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






36. In a format string the place holder for an object is ______






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






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






39. ______ data types are always zero or greate






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






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






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






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






44. An object id with a value of 0.






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






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






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






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






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






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