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






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






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






4. Square bracket syntax for calling a method






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






6. The _____ function can be used to print a message to the console






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






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






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






10. A compiler feature that provides automated memory management






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






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






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






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






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






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






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






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






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






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






21. _____ data types can be both positive and negative






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






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






24. All objects are created on the _____






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






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






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






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






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






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






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






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






33. ______ data types are always zero or greate






34. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______






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






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






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






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






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






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






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






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






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






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






45. ARC is susceptible to retain _____






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






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






48. Objective-C's protocols are really about communicating _____ _______






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






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