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. _____ allow you to add new methods to existing classes






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






3. All objects are created on the _____






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






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






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






7. Square bracket syntax for calling a method






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






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






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






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






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






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






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






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






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






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






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






19. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments






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






21. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.






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






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






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






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






26. A compiler feature that provides automated memory management






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






47. Initializer method traditionally begin with the _____ prefix






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






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






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