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

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

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

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

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

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

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

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

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

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

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

12. A protocol declared as a category usually as a category of the NSObject class.

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

14. The most flexible C data type: ______

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

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

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

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

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

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

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

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

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

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

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

26. A compiler feature that provides automated memory management

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

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

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

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

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

32. ARC is susceptible to retain _____

33. In a format string the place holder for an object is ______

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

35. Xcode sequence to examine an app for memory leaks or retain cycles

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

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

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

39. _____ operators take 2 operands

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

41. A remote message that doesn't return until the receiving application finishes responding to the message. Because the application that sends the message waits for an acknowledgment or return information from the receiving application - the two applica

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

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

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

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

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

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

48. Objective-C is a _____ of the C language

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

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