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 ____ ____ is a situation where you free memory and then accidentally continue to use it






2. Objective-C methods are called using ____ _____






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






23. ______ data types are always zero or greate






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






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






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






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






28. _____ data types can be both positive and negative






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






30. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.






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






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






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






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






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






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






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






39. A method that can operate on class objects rather than instances of the class.






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






41. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.






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






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






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






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






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






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






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






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






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