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. A message sent from one application to an object in another application.

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

3. The direct or indirect report of external activity especially user activity on the keyboard and mouse.

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

5. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.

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

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

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

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

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

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

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

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

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

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

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

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

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

19. A compiler feature that provides automated memory management

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

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

22. ARC is susceptible to retain _____

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

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

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

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

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

28. An object in another application - one that's a potential receiver for a remote message.

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

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

31. A ____ _____ is where you forget to free up memory

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

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

34. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.

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

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

37. _____ data types can be both positive and negative

38. ______ operators take a single operand

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

40. Square bracket syntax for calling a method

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

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

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

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

45. Objective-C methods are called using ____ _____

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

47. ____ provide a concise & elegant method for defining a discrete set of values

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

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

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