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






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






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






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






5. Square bracket syntax for calling a method






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






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






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






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






10. ______ data types are always zero or greate






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






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






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






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






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






16. All objects are created on the _____






17. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions






18. ______ operators take a single operand






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






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






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






22. _____ operators take 2 operands






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






24. ARC is susceptible to retain _____






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






26. Xcode sequence to examine an app for memory leaks or retain cycles






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






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






29. Any variable that's part of the internal data structure of an instance; declared in a class definition and become part of all objects that are members of or inherit from the class.






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






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






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






33. _____ data types can be both positive and negative






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






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






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






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






38. This symbol denotes a method as being a class method






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






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






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






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






43. A protocol that's declared with the @protocol directive. Classes can adopt these - objects can respond at runtime when asked if they conform to them and instances can be typed by those that they conform to.






44. The _____ function can be used to print a message to the console






45. A tool that lets you graphically specify your application's user interface. It sets up the corresponding objects for you and makes it easy for you to establish connections between these objects and your own code where needed.






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






47. A compiler feature that provides automated memory management






48. An object that acts on behalf of another object.






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






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