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

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

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

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

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

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

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

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

9. A tool that lets you graphically specify your application's user interface. It sets up the corresponding objects for you and makes it easy for you to establish connections between these objects and your own code where needed.

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

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

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

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

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

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

16. In object-oriented programming the object that is sent a message.

17. Square bracket syntax for calling a method

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

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

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

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

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

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

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

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

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

27. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods

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

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

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

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

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

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

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

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

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

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

38. A compiler feature that provides automated memory management

39. An object id with a value of 0.

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

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

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

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

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

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

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

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

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

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

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