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 prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.

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

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

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

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

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

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

8. Square bracket syntax for calling a method

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

10. Instance variables are optional in iOS if ________ are used

11. Objective-C objects should use strong or weak ______

12. _____ operators take 2 operands

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

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

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

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

17. Three main categories of more complicated data structures:_______ - arrays and structs

18. The most flexible C data type: ______

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

20. ______ data types are always zero or greate

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

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

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

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

25. The root class in Objective-C

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

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

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

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

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

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

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

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

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

35. Property attribute that synthesizes accessors that are not thread safe

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

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

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

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

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

41. ARC is susceptible to retain _____

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

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

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

45. ______ operators take a single operand

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

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

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

49. Property attribute that synthesizes only a getter for the property

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