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. When creating a class header file you begin with the _____ keyword and close with the @end keyword






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






4. _____ operators take 2 operands






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






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






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






8. Objective-C is a _____ of the C language






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






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






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






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






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






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






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






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






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






18. A variable that points to the memory address of another value






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






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






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






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






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






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






25. Objective-C objects should use strong or weak ______






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






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






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






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






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






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






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






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






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






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






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






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






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






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






40. A compiler feature that provides automated memory management






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






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






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






44. In a format string the place holder for an object is ______






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






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






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






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






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






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