Objective-C MCQ Test: Objective-C MCQs - Practice Questions
1. How do you perform asynchronous network requests in Objective-C?
2. How do you implement 'copy' for your custom class in Objective-C?
3. What is the purpose of the 'NSRunLoop' class in Objective-C?
4. How do you create a custom exception in Objective-C?
5. How do you import a header file in Objective-C?
6. How do you use 'NSThread' for multithreading in Objective-C?
7. How do you define a constant in Objective-C?
8. What is the purpose of the 'init' method in Objective-C?
9. How do you create a custom view in Objective-C?
10. What is the purpose of the 'dispatch_async' function in Objective-C?
11. What is the purpose of the '__strong' specifier in Objective-C?
12. What is the purpose of the 'NSNotification' class in Objective-C?
13. How do you declare a block in Objective-C?
14. What is the purpose of the 'dispatch_semaphore' in Objective-C GCD?
15. What is the purpose of the 'atomic' property attribute in Objective-C?
16. Which data type is used for storing whole numbers in Objective-C?
17. What is the purpose of the '@synthesize' keyword in Objective-C?
18. What is the purpose of the '__weak' specifier in Objective-C?
19. How do you implement multithreading in Objective-C?
20. How do you declare a property in Objective-C?
21. What is the file extension for Objective-C source code files?
22. How do you perform background tasks in Objective-C?
23. Which symbol is used for pointers in Objective-C?
24. How do you perform asynchronous image loading in Objective-C?
25. What is the purpose of the 'NSPredicateEditor' in Objective-C?
26. How do you handle exceptions in Objective-C?
27. What is the significance of the '__block' specifier in Objective-C?
28. How do you handle memory management for properties in Objective-C?
29. What is the purpose of the 'IBAction' keyword in Objective-C?
30. What is the purpose of the 'NSCache' class in Objective-C?
31. What is the purpose of the 'self' keyword in Objective-C?
32. What is the purpose of the 'NSPredicate' class in Objective-C?
33. What is the purpose of the 'BOOL' data type in Objective-C?
34. How do you implement a custom setter for a property in Objective-C?
35. What is the purpose of the 'nonatomic' property attribute in Objective-C?
36. What is the purpose of the 'dispatch_source' in Objective-C GCD?
37. Which symbol is used for method declaration in Objective-C?
38. Which method is called when an object is deallocated in Objective-C?
39. Explain the concept of 'method swizzling' in Objective-C.
40. What is the purpose of the 'dispatch_suspend' function in Objective-C GCD?