Objective C Test
A class can conform to only one protocol.
A class can have two methods with the same name, but with different argument types.
A method can be tagged to be called only by a specific class and its subclasses.
As categories can't have instance variables, what class could you use to implement a full class only with categories?
Can an exception caught in @catch be re-thrown?
Can you send messages to nil?
How do you allocate an object?
How do you free an object?
How do you include the root "Object" class?
How do you throw an exception?
If you need to allocate custom memory, in which method will you do so?
In Obj-C 2.0, what do the fast enumeration protocols rely on to provide fast Enumerations?
In which version of Objective-C did the fast enumeration system appear?
In which version of Objective-C did the properties system appear?
Is the following code a correct allocation? MyClass myObj; [&myObj aMessage];
Protocols are like classes; they can inherit.
What are @try and @catch?
What can be linked to an Obj-C program without any particular process?
What can be used as Object instance variables?
What can you do with categories?
What can you use to avoid the msgSend function overhead?
What class specifiers are supported?
What comments are supported in Obj-C?
What does Obj-C not support?
What does the following imply? Worker *ceo = [[Worker alloc] init]; ceo->boss = nil;
What happens if two categories define methods with the same names for the same class?
What happens if you release an unretained object twice?
What is #import
What is a @finally block?
What is a category?
What is a protocol?
What is a SEL?
What is an autoreleased object?
What is an IMP?
What is nil?
What is not supported in Obj-C?
What is the C type used to work with objects in Obj-C?
What is the default visibility for instance variables?
What is the id type?
What is the isa variable in objects?
What is the Obj-C runtime?
What is true regarding @protected?
What is true regarding @public?
What is true regarding C functions inside .m files?
What is true regarding messaging?
What is true regarding strings?
What type of variable do you need to use to implement singletons?
What will be the output of the following code? static int a (void) { printf ("a "); return 0; } static int b (void) { printf ("b "); return 1; } static int c (void) { printf ("c "); return 2;...
What's the difference between copy and deepCopy?
When using the garbage collector, which method, that is normally called without the collector, is not called on your objects where they are collected?
Which C feature is not supported in Obj-C?
Which of the following can be inherited?
Which of the following creates a class that conforms to a protocol?
Which of the following declares a protocol?
Which of the following does not happen when you throw an exception in a @synchronized block?
Which of the following is false?
Which of the following is incorrect?
Which of the following is not recommended?
Which of the following is the fastest?