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 language such as C that organizes a program as a set of procedures that have definite beginnings and ends.

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

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

4. Square bracket syntax for calling a method

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

21. The init... method that has primary responsibility for initializing new instances of a class. Each class defines or inherits its own. Through messages to self other init... methods in the same class directly or indirectly invoke it and then it - thro

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

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

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

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

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

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

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

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

30. ______ data types are always zero or greate

31. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct

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

33. ARC is susceptible to retain _____

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 root class in Objective-C

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

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

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

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

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

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

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

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

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

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

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

47. A class is said to do this to a protocol if it (or a superclass) implements the methods declared in the protocol. An instance does this to a protocol if its class does. Thus an instance that does this to a protocol can perform any of the instance met

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

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

50. Symbol used to denote a placeholder in a format string