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

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

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

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

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

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

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

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

9. ______ data types are always zero or greate

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

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

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

13. _____ data types can be both positive and negative

14. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.

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

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

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

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

19. Finding the method implementation to invoke in response to the message

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

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

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

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

24. A ____ ____ is a situation where you free memory and then accidentally continue to use it

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

26. Property attribute that synthesizes both a getter and setter for the property

27. _____ allow you to add new methods to existing classes

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

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

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

31. ______ operators take a single operand

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

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

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

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

36. A class is said to do this when it declares that it implements all the methods in the protocol.

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

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

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

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

41. Initializer method traditionally begin with the _____ prefix

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

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

44. _____ operators take 2 operands

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

46. An object id with a value of 0.

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

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

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

50. Property attribute that causes the setter to store a strong reference to the assigned value