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. Same as class object. (second way to say it.)






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






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






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






5. _____ data types can be both positive and negative






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






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






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






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






10. In object-oriented programming an expression that sends a message to an object. In the Objective-C language they are enclosed within square brackets and consist of a receiver followed by a message (method selector and parameters).






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






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






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






14. Xcode sequence to convert non-ARC apps to ARC






15. Symbol used to denote a placeholder in a format string






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






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






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






19. The most flexible C data type: ______






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






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






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






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






24. In a format string the place holder for an object is ______






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






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






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






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






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






30. ______ data types are always zero or greate






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






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






33. The general type for any kind of object regardless of class; defined as a pointer to an object data structure; can be used for both class objects and instances of a class.






34. A struct may contain multiple ____ consisting of different data types






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






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






37. ______ operators take a single operand






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






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






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






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






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






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






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






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






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






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






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






49. Property attribute that synthesizes only a getter for the property






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