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. Square bracket syntax for calling a method

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

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

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

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

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

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

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

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

10. The root class in Objective-C

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

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

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

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

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

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

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

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

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

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

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

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

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

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

25. The part of an Objective-C class specification that defines public methods (those declared in the class's interface) as well as private methods (those not declared in the class's interface).

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. Initializer method traditionally begin with the _____ prefix

28. The direct or indirect report of external activity especially user activity on the keyboard and mouse.

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

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

31. _____ operators take 2 operands

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

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

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

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

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

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

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

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

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

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

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

43. In the Objective-C language an object that belongs to (is a member of) a particular class; created at runtime according to the specification in the class definition.

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

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

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

47. _____ data types can be both positive and negative

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

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. Same as class object. (first way to say it.)