Objective-C MCQ Test: Objective-C MCQs - Practice Questions
1. Which Objective-C framework is used for user interface development?
2. How do you work with key-value observing (KVO) in Objective-C?
3. What is the purpose of the 'SEL' data type in Objective-C?
4. Explain the purpose of 'NSLocale' in Objective-C.
5. How do you allocate memory for an object in Objective-C?
6. What is the syntax for creating a comment in Objective-C?
7. Which design pattern does the 'delegation' mechanism in Objective-C commonly follow?
8. What is the purpose of the 'NSOperationQueue' class in Objective-C?
9. Which symbol is used for pointers in Objective-C?
10. Which symbol is used for method chaining in Objective-C?
11. Which symbol is used for method declaration in Objective-C?
12. How do you perform asynchronous network requests in Objective-C?
13. Explain the purpose of the 'NSInvocation' class in Objective-C.
14. Which method is used for sorting an NSArray of custom objects based on a specific key in Objective-C?
15. What is the purpose of the 'dispatch_async' function in Objective-C?
16. What is the purpose of the 'instancetype' keyword in Objective-C?
17. How do you implement a custom setter for a property in Objective-C?
18. How do you perform asynchronous image loading in Objective-C?
19. How do you define a constant in Objective-C?
20. What is the purpose of the 'NSCache' class in Objective-C?
21. What is the purpose of the 'NSDecimalNumber' class in Objective-C?
22. What is the primary design philosophy of Objective-C?
23. What is the purpose of the 'dispatch_source' in Objective-C GCD?
24. What is the purpose of the 'dispatch_io' functions in Objective-C GCD?
25. What is the purpose of the 'NSLog' function in Objective-C?
26. Which data type is used for storing whole numbers in Objective-C?
27. What is the purpose of the 'dispatch_semaphore' in Objective-C GCD?
28. Which keyword is used to define a protocol in Objective-C?
29. What is the purpose of the 'NSAutoreleasePool' class in Objective-C memory management?
30. What is the file extension for Objective-C source code files?