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. _____ data types can be both positive and negative






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






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






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






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






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






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






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






9. A compiler feature that provides automated memory management






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






25. Square bracket syntax for calling a method






26. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.






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






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






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






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






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






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






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






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






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






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






37. The root class in Objective-C






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






39. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.






40. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.






41. _____ operators take 2 operands






42. Rather than using arrays in Objective-C we often are able to use it's collection classes of NSArray - NSSet and NSDictionary with _____ for strings






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






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






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






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






47. ______ operators take a single operand






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






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






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