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 C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments

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

3. An object that acts on behalf of another object.

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

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

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

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

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

9. A technique used in C-based languages where the operating system provides memory to a running application as it needs it instead of when it launches.

10. There are ____ fundamental building blocks in Objective-C

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

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

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

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

15. A remote message that doesn't return until the receiving application finishes responding to the message. Because the application that sends the message waits for an acknowledgment or return information from the receiving application - the two applica

16. Property attribute where the setter stores the assigned value but does not perform any memory management.

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

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

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

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

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

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

23. ______ operators take a single operand

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

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

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

27. _____ operators take 2 operands

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

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

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

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

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

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

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

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

36. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.

37. The time when files compiled from different source modules are linked into a single program. Decisions made by the linker are constrained by the compiled code and ultimately by the information contained in source code.

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

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

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

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

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

43. The most flexible C data type: ______

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

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

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

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

48. Finding the method implementation to invoke in response to the message

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

50. C-style strings always end with a ____ character