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. Property attribute where the setter stores the assigned value but does not perform any memory management.

2. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.

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

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

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

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

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

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

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

10. ______ data types are always zero or greate

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

12. The root class in Objective-C

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

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

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

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

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

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

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

20. Initializer method traditionally begin with the _____ prefix

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

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

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

24. C-style strings always end with a ____ character

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

26. Objective-C methods are called using ____ _____

27. ARC is susceptible to retain _____

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

43. A compiler feature that provides automated memory management

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

45. _____ operators take 2 operands

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

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

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

49. Rather than using arrays in Objective-C we often are able to use it's collection classes of NSArray - NSSet and NSDictionary with _____ for strings

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