Objective-C MCQ Test: Objective-C MCQs - Practice Questions
1. What is the syntax for creating a comment in Objective-C?
2. What is the purpose of the 'unowned' keyword in Objective-C ARC (Automatic Reference Counting)?
3. Which design pattern does the 'delegation' mechanism in Objective-C commonly follow?
4. How do you create a custom exception in Objective-C?
5. What is the purpose of the 'BOOL' data type in Objective-C?
6. What is the purpose of the 'NSAutoreleasePool' class in Objective-C memory management?
7. What is the purpose of the 'nonatomic' property attribute in Objective-C?
8. What is the purpose of the 'init' method in Objective-C?
9. What is the purpose of the 'NSNotification' class in Objective-C?
10. Which symbol is used for method declaration in Objective-C?
11. What is the purpose of the 'NSPredicate' class in Objective-C?
12. Explain the use of 'NSInvocationOperation' in Objective-C NSOperationQueue.
13. Which symbol is used for method chaining in Objective-C?
14. What is the significance of the '__block' specifier in Objective-C?
15. What is the purpose of the '__unsafe_unretained' specifier in Objective-C?
16. What is the purpose of the 'retain' keyword in Objective-C memory management?
17. How do you allocate memory for an object in Objective-C?
18. Explain the concept of 'Grand Central Dispatch' (GCD) in Objective-C.
19. Which data type is used for storing whole numbers in Objective-C?
20. How do you create a singleton in Objective-C?