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






2. To destroy an object set the variable that points to it to _____






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






4. _____ data types can be both positive and negative






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






25. ______ operators take a single operand






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






27. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.






28. The most flexible C data type: ______






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






30. _____ operators take 2 operands






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






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






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






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






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






36. ______ data types are always zero or greate






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






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






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






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






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






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






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






44. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct






45. The process of setting or reading the value at an address pointed to by a pointer






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






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






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






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






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