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 remote message that returns immediately without waiting for the application that receives the message to respond. The sending application and the receiving application act independently and are therefore not in sync.






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






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






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






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






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






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






9. _____ operators take 2 operands






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






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






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






13. The root class in Objective-C






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






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






16. ARC is susceptible to retain _____






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






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






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






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






21. The most flexible C data type: ______






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






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






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. Objective-C binds methods and arguments at _____ instead of compile time






26. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods






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






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






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






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






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






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






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






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






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






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






37. All objects are created on the _____






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






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






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






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






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






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






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






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






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






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






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






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






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