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. The direct or indirect report of external activity especially user activity on the keyboard and mouse.






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






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






4. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.






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






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






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






8. ______ data types are always zero or greate






9. An object id with a value of 0.






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






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






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






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






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






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






16. Discovering the class of an object at runtime rather than at compile time.






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






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






19. ______ operators take a single operand






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. Xcode sequence to examine an app for memory leaks or retain cycles






22. An object of unknown class. Interface is published through protocol declaration.






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






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






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






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






27. Short for mutual exclusion semaphore. An object used to synchronize thread execution.






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






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






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






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






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






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






34. Property attribute that synthesizes accessors that are not thread safe






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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