Test your basic knowledge |

Objective C Programming Basics

Subjects : it-skills, apple
Instructions:
  • 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. ______ operators take a single operand






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






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






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






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






6. The root class in Objective-C






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






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






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






10. ______ data types are always zero or greate






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






12. An object of unknown class. Interface is published through protocol declaration.






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






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






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






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






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






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






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






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






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






22. _____ operators take 2 operands






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






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






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






26. A compiler feature that provides automated memory management






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






28. The most flexible C data type: ______






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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