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 logical subdivision of a program within which all names must be unique. Symbols in one do not conflict with identically named symbols in another.

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

3. A compiler feature that provides automated memory management

4. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.

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

6. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles

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

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

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

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

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

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

13. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.

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

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

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

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

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

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

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

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

22. _____ operators take 2 operands

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

24. Objective-C methods are called using ____ _____

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

26. An object id with a value of 0.

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

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

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

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

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

33. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.

34. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.

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

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

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

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

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

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

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

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

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

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

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

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

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

48. _____ data types can be both positive and negative

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

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