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. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments






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






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






4. The root class in Objective-C






5. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.






6. Finding the method implementation to invoke in response to the message






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






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






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






10. a+b; is an example of using a _____ operator






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






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






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






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






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






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






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






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






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






20. Objective-C is a _____ of the C language






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






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






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






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






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






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






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






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






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






30. This symbol denotes a method as being an instance method






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






32. ______ data types are always zero or greate






33. Same as class object. (first way to say it.)






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






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






36. A technique used in C-based languages where the operating system provides memory to a running application as it needs it instead of when it launches.






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






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






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






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






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






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






43. Objective-C's protocols are really about communicating _____ _______






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






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






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






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






48. Square bracket syntax for calling a method






49. Initializer method traditionally begin with the _____ prefix






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