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. In a home building analogy a ____ is the blueprint and the object is the house






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






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






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






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






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






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






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






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






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






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






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






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






14. ______ operators take a single operand






15. A compiler feature that provides automated memory management






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






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






18. An instance variable that points to another object; _____ instance variables are a way for an object to keep track of the other objects to which it may need to send messages.






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






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






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






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






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






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






25. Square bracket syntax for calling a method






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






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






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






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






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






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






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






33. _____ operators take 2 operands






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






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






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






37. 3 Common Float data types: float - _____ - CGFloat






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






39. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.






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






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






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






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






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






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






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






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






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






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






50. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct







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