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. A method that can operate on class objects rather than instances of the class.






2. _____ operators take 2 operands






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






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






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






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






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






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






9. Initializer method traditionally begin with the _____ prefix






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






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






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






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






14. An object id with a value of 0.






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






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






17. A memory-management technique in which each entity that claims ownership of an object increments the object's reference count and later decrements it; allows one instance of an object to be safely shared among several other objects.






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






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






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






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






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






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






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






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






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






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






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






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






30. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.






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






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






33. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.






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






35. _____ data types can be both positive and negative






36. The most flexible C data type: ______






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






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






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






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






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






42. An architecture that facilitates communication between objects in different address spaces.






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. The _____ function can be used to print a message to the console






45. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.






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






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






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






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






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







Sorry!:) No result found.

Can you answer 50 questions in 15 minutes?


Let me suggest you:



Major Subjects



Tests & Exams


AP
CLEP
DSST
GRE
SAT
GMAT

Most popular tests