Test your basic knowledge |

Objective C Programming Basics

Subjects : it-skills, apple
  • 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. 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

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

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

4. Same as class object. (second way to say it.)

5. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.

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

7. A technique used in C-based languages where the operating system provides memory to a running application as it needs it instead of when it launches.

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

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

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

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

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

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

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

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

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

17. The root class in Objective-C

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

19. 3 Common Float data types: float - _____ - CGFloat

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

37. A method that can operate on class objects rather than instances of the class.

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

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

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

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

42. _____ data types can be both positive and negative

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

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

45. A class that's defined solely so that other classes can inherit from it. Programs don't use instances of this; they use only instances of its subclasses.

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

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

48. ______ operators take a single operand

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

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