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






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






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






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






5. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.






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






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






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






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






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






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






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






13. Initializer method traditionally begin with the _____ prefix






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






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






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






17. ______ operators take a single operand






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






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






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






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






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






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






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






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






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






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






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






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






30. ARC is susceptible to retain _____






31. Xcode sequence to examine an app for memory leaks or retain cycles






32. _____ data types can be both positive and negative






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






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






35. The most flexible C data type: ______






36. Square bracket syntax for calling a method






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






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






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






40. Objective-C methods are called using ____ _____






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






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






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






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






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






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






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






48. ______ data types are always zero or greate






49. Any variable that's part of the internal data structure of an instance; declared in a class definition and become part of all objects that are members of or inherit from the class.






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