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. ____ provide a concise & elegant method for defining a discrete set of values






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






3. ______ operators take a single operand






4. Same as class object. (second way to say it.)






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






21. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.






22. ______ data types are always zero or greate






23. _____ allow you to add new methods to existing classes






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






39. Property attribute that synthesizes both a getter and setter for the property






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






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






42. Any method that can be used by an instance of a class rather than by the class object.






43. A class that's defined solely so that other classes can inherit from it. Programs don't use instances of this; they use only instances of its subclasses.






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






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






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






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






48. Placing a ____ before a normal variable name gives it's address






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






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