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 binds methods and arguments at _____ instead of compile time






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






3. Rather than using arrays in Objective-C we often are able to use it's collection classes of NSArray - NSSet and NSDictionary with _____ for strings






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






5. The root class in Objective-C






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






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






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






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






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






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






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






13. Xcode sequence to examine an app for memory leaks or retain cycles






14. Objective-C methods are called using ____ _____






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






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






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






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






19. _____ allow you to add new methods to existing classes






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






36. Property attribute that synthesizes both a getter and setter for the property






37. ARC is susceptible to retain _____






38. Square bracket syntax for calling a method






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






40. Placing a ____ before a normal variable name gives it's address






41. A compiler feature that provides automated memory management






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






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






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






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






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






47. The most flexible C data type: ______






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






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






50. _____ allow indirect access and modification of a variable's value.







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