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. A programming unit that groups together a data structure (instance variables) and the operations (methods) that can use or affect that data; the principal building blocks of object-oriented programs.






2. ______ operators take a single operand






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






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






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






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






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






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






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






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






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






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






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






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






15. An object id with a value of 0.






16. In the Objective-C language the declaration of a group of methods not associated with any particular class.






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






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






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






20. ______ data types are always zero or greate






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






37. ARC is susceptible to retain _____






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






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






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






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






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






45. Initializer method traditionally begin with the _____ prefix






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






47. Square bracket syntax for calling a method






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






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






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