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. 3 Common Float data types: float - _____ - CGFloat






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






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






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






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






6. a+b; is an example of using a _____ operator






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






8. Same as class object. (second way to say it.)






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






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






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






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






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






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






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. All objects are created on the _____






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






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






19. _____ data types can be both positive and negative






20. This symbol denotes a method as being an instance method






21. In the Objective-C language the declaration of a group of methods not associated with any particular class.






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






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






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






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






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






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






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






29. The process of setting or reading the value at an address pointed to by a pointer






30. The root class in Objective-C






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






46. An object id with a value of 0.






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






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






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






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






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