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. The direct or indirect report of external activity especially user activity on the keyboard and mouse.






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






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






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






5. Initializer method traditionally begin with the _____ prefix






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






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






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






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






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






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






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






13. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions






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






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






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






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






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






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






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






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






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






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






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






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






26. ______ operators take a single operand






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






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






29. An object id with a value of 0.






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






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






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






33. The time when files compiled from different source modules are linked into a single program. Decisions made by the linker are constrained by the compiled code and ultimately by the information contained in source code.






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






35. Square bracket syntax for calling a method






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






37. 3 Common Float data types: float - _____ - CGFloat






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






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






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






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






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






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






44. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'






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






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






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






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






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






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