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 protocol declared as a category usually as a category of the NSObject class.






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






3. ______ operators take a single operand






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






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






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






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






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






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






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






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






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






13. The root class in Objective-C






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






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






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. Placing a ____ before a normal variable name gives it's address






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






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






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






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






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






23. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block






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






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






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






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






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






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






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






31. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct






32. A remote message that returns immediately without waiting for the application that receives the message to respond. The sending application and the receiving application act independently and are therefore not in sync.






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






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






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






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






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






38. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.






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






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






41. A remote message that doesn't return until the receiving application finishes responding to the message. Because the application that sends the message waits for an acknowledgment or return information from the receiving application - the two applica






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






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






45. Square bracket syntax for calling a method






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






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






48. An object id with a value of 0.






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






50. Data (like nouns) represent the information we are processing and in Objective-C this made up of the four elements of C types - _____ - enums and objects







Sorry!:) No result found.

Can you answer 50 questions in 15 minutes?


Let me suggest you:



Major Subjects



Tests & Exams


AP
CLEP
DSST
GRE
SAT
GMAT

Most popular tests