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






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






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






4. The most flexible C data type: ______






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






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






7. ARC is susceptible to retain _____






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






27. ______ operators take a single operand






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






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






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






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






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






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






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






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






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






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






38. _____ operators take 2 operands






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






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






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






42. _____ is one of the main advantages of object-oriented code and allows objects to 'hide away' much of their complexity operating at times like a proverbial 'black-box'.






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






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






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






46. In object-oriented programming a procedure that can be executed by an object.






47. An object in another application - one that's a potential receiver for a remote message.






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






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






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






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