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. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.






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






3. A programming unit that groups together a data structure (instance variables) and the operations (methods) that can use or affect that data; the principal building blocks of object-oriented programs.






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






5. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct






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






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






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






9. A class is said to do this to a protocol if it (or a superclass) implements the methods declared in the protocol. An instance does this to a protocol if its class does. Thus an instance that does this to a protocol can perform any of the instance met






10. Any class that's one step below another class in the inheritance hierarchy.






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






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






13. The most flexible C data type: ______






14. This symbol denotes a method as being a class method






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






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






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






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






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






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






21. There are ____ fundamental building blocks in Objective-C






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






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






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






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






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






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






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






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






30. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.






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






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






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






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






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






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






37. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger






38. _____ data types can be both positive and negative






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






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






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






42. A tool that lets you graphically specify your application's user interface. It sets up the corresponding objects for you and makes it easy for you to establish connections between these objects and your own code where needed.






43. An object id with a value of 0.






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






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






46. Objective-C methods are called using ____ _____






47. A compiler feature that provides automated memory management






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






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






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