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. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






30. All objects are created on the _____






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. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages






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






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






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






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






37. Square bracket syntax for calling a method






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






39. _____ data types can be both positive and negative






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






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






42. Xcode sequence to convert non-ARC apps to ARC






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






44. Placing a ____ before a normal variable name gives it's address






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






46. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles






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






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






49. An object id with a value of 0.






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