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. Short for mutual exclusion semaphore. An object used to synchronize thread execution.






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






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






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






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






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






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






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






9. Initializer method traditionally begin with the _____ prefix






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






11. ____ provide a concise & elegant method for defining a discrete set of values






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






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






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






15. ARC is susceptible to retain _____






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






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






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






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. A memory-management technique in which each entity that claims ownership of an object increments the object's reference count and later decrements it; allows one instance of an object to be safely shared among several other objects.






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






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






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






24. A class is said to do this to a protocol if it (or a superclass) implements the methods declared in the protocol. An instance does this to a protocol if its class does. Thus an instance that does this to a protocol can perform any of the instance met






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






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






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






28. An architecture that facilitates communication between objects in different address spaces.






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






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






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






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






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






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






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






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






37. Xcode sequence to convert non-ARC apps to ARC






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






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






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






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






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






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






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






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






46. A variable that points to the memory address of another value






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






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






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






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