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. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct






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






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






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






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






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






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






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






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






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






11. ______ operators take a single operand






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






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






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






15. The part of an Objective-C class specification that defines public methods (those declared in the class's interface) as well as private methods (those not declared in the class's interface).






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






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






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






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






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






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






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






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






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






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






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






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






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. Instance variables are optional in iOS if ________ are used






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






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






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






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






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. A message sent from one application to an object in another application.






37. The time when files compiled from different source modules are linked into a single program. Decisions made by the linker are constrained by the compiled code and ultimately by the information contained in source code.






38. _____ operators take 2 operands






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






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






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






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






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






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






45. In object-oriented programming a procedure that can be executed by an object.






46. The most flexible C data type: ______






47. A compiler feature that provides automated memory management






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






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






50. An object id with a value of 0.