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. Xcode sequence to examine an app for memory leaks or retain cycles






2. An object id with a value of 0.






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






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






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






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






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






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






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






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






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






12. In a home building analogy a ____ is the blueprint and the object is the house






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






14. Short for mutual exclusion semaphore. An object used to synchronize thread execution.






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






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






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






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






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






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






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






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






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






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






25. Initializer method traditionally begin with the _____ prefix






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






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






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






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






30. ______ operators take a single operand






31. _____ operators take 2 operands






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






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






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






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






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






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






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






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






40. The root class in Objective-C






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






42. There are ____ fundamental building blocks in Objective-C






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






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






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






46. The direct or indirect report of external activity especially user activity on the keyboard and mouse.






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






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






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






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






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