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






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






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






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






5. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.






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






7. The most flexible C data type: ______






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






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






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






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






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






13. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.






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






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






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






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






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






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






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






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






22. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.






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






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






25. A memory-management technique in which each entity that claims ownership of an object increments the object's reference count and later decrements it; allows one instance of an object to be safely shared among several other objects.






26. A logical subdivision of a program within which all names must be unique. Symbols in one do not conflict with identically named symbols in another.






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






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






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






30. A ____ ____ is a situation where you free memory and then accidentally continue to use it






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






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






33. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'






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






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






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






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






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






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






40. Objective-C methods are called using ____ _____






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






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






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






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






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






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






47. A compiler feature that provides automated memory management






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






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






50. ARC is susceptible to retain _____







Sorry!:) No result found.

Can you answer 50 questions in 15 minutes?


Let me suggest you:



Major Subjects



Tests & Exams


AP
CLEP
DSST
GRE
SAT
GMAT

Most popular tests