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 class is said to do this when it declares that it implements all the methods in the protocol.






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






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






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






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






6. The time after a program is launched and while it's running. Decisions made at during this time can be influenced by choices the user makes.






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






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






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






10. The most flexible C data type: ______






11. An object id with a value of 0.






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. Property attribute that synthesizes accessors that are not thread safe






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






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






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. C-style strings always end with a ____ character






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. ARC is susceptible to retain _____






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






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






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






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






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






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






26. Initializer method traditionally begin with the _____ prefix






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






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






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






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






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






32. The root class in Objective-C






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






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






35. A technique used in C-based languages where the operating system provides memory to a running application as it needs it instead of when it launches.






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






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






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






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






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






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






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






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






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






45. _____ data types can be both positive and negative






46. Square bracket syntax for calling a method






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






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






49. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.






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






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