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 computer science the mathematical concept of 'order of operations' is known as the 'order of ______'






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






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






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






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






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






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






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






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






10. C-style strings always end with a ____ character






11. Same as class object. (second way to say it.)






12. Objective-C binds methods and arguments at _____ instead of compile time






13. The first index in an array is valued at ____






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






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






16. Square bracket syntax for calling a method






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






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






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






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






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






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






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






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






25. A remote message that doesn't return until the receiving application finishes responding to the message. Because the application that sends the message waits for an acknowledgment or return information from the receiving application - the two applica






26. Three main categories of more complicated data structures:_______ - arrays and structs






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






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






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






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






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






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






33. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.






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






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






36. Objective-C methods are called using ____ _____






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






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






39. A set of method definitions that is segregated from the rest of the class definition.






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






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






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






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






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






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






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






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






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






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






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







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