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 struct may contain multiple ____ consisting of different data types






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






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






4. Property attribute that causes the setter to store a copy of the assigned value






5. _____ operators take 2 operands






6. Xcode sequence to examine an app for memory leaks or retain cycles






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






8. Objective-C objects should use strong or weak ______






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






10. All objects are created on the _____






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






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






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






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






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






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






17. In object-oriented programming a procedure that can be executed by an object.






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






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






20. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.






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






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






23. Property attribute that synthesizes accessors that are not thread safe






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






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






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






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






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






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






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






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






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






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






34. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.






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






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






37. The most flexible C data type: ______






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






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






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






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






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






43. ARC is susceptible to retain _____






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






45. _____ data types can be both positive and negative






46. A Cocoa framework that implements an application's user interface; provides a basic program structure for applications that draw on the screen and respond to events.






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






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






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






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







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