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. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages






2. Property attribute where the setter stores the assigned value but does not perform any memory management.






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






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






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






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. In object-oriented programming the object that is sent a message.






8. A method that can operate on class objects rather than instances of the class.






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






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






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






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. Objective-C methods are called using ____ _____






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






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






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






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






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






19. Initializer method traditionally begin with the _____ prefix






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. A set of method definitions that is segregated from the rest of the class definition.






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






37. _____ operators take 2 operands






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






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






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






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






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






43. The root class in Objective-C






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






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






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






47. The most flexible C data type: ______






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






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






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






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