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






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






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






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






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






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






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






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






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






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






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






12. _____ operators take 2 operands






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






28. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.






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






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






31. An object id with a value of 0.






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






33. All objects are created on the _____






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






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






36. In object-oriented programming the hierarchy of classes that's defined by the arrangement of superclasses and subclasses. Every class (except root classes such as NSObject) has a superclass and any class may have an unlimited number of subclasses.






37. Square bracket syntax for calling a method






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






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






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






41. A message sent from one application to an object in another application.






42. ______ operators take a single operand






43. Objective-C methods are called using ____ _____






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






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






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






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






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






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






50. _____ data types can be both positive and negative







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