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 nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______






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






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. In a format string the place holder for an object is ______






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






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






7. Initializer method traditionally begin with the _____ prefix






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






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






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






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






12. An object id with a value of 0.






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






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






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






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






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






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






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






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






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






22. ______ data types are always zero or greate






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






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






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






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






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






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






30. Property attribute that causes the setter to store a copy of the assigned value






31. _____ data types can be both positive and negative






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






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






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






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






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






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






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






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






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






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






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






43. C-style strings always end with a ____ character






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






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






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






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






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






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






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