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






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






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






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






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






6. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.






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






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






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






10. Square bracket syntax for calling a method






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






12. ARC is susceptible to retain _____






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






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






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






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






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






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






19. The most flexible C data type: ______






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






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






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






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






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






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






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






27. ______ data types are always zero or greate






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






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






30. In a home building analogy a ____ is the blueprint and the object is the house






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






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






33. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method






34. The init... method that has primary responsibility for initializing new instances of a class. Each class defines or inherits its own. Through messages to self other init... methods in the same class directly or indirectly invoke it and then it - thro






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






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






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






38. A class is said to do this when it declares that it implements all the methods in the protocol.






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






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






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






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






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






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






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






46. 3 Common Float data types: float - _____ - CGFloat






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






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






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






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







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