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. Symbol used to denote a placeholder in a format string

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

4. A programming technique that hides the implementation of an operation from its users behind an abstract interface; allows the implementation to be updated or changed without impacting the users of the interface.

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

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

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

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

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

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

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

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

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

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

15. ______ data types are always zero or greate

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

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

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

19. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments

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

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

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

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

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

25. All objects are created on the _____

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

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

28. Square bracket syntax for calling a method

29. The most flexible C data type: ______

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

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

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

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

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

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

36. Initializer method traditionally begin with the _____ prefix

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

38. A Cocoa framework that implements an application's user interface; provides a basic program structure for applications that draw on the screen and respond to events.

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

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

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

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

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

44. A remote message that returns immediately without waiting for the application that receives the message to respond. The sending application and the receiving application act independently and are therefore not in sync.

45. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.

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

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

48. In object-oriented programming the hierarchy of classes that's defined by the arrangement of superclasses and subclasses. Every class (except root classes such as NSObject) has a superclass and any class may have an unlimited number of subclasses.

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

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