</>
CodeWithZohaib
Toggle theme
Connect
Add
Swift Programming Guide
All Topics
Basic Concepts (1-20)
Advanced Topics (21-40)
Pointers & Memory
Structures & Unions
File Handling
1. What is Swift?
2. What is a variable in Swift?
3. Explain if-else statement in Swift.
4. What is a loop in Swift?
5. What is an array in Swift?
6. What is a dictionary in Swift?
7. Explain the for-in loop syntax.
8. How to define a function in Swift?
9. Explain the while loop.
10. What is a class in Swift?
11. Explain inheritance in Swift.
12. What is a protocol in Swift?
13. Explain optional in Swift.
14. What is a closure in Swift?
15. Explain enumerations in Swift.
16. What is a struct in Swift?
17. Explain the guard statement.
18. What are computed properties?
19. Explain lazy properties in Swift.
20. What is type casting?
21. Explain encapsulation.
22. What is a tuple in Swift?
23. Explain generics in Swift.
24. What are extensions?
25. Explain map, filter, and reduce functions.
26. What is a switch statement?
27. Explain higher-order functions.
28. What is ARC (Automatic Reference Counting)?
29. Explain weak and unowned references.
30. What are subscripts?
31. What is a dispatch queue?
31. What is optional chaining in Swift?
32. What is a singleton pattern?
33. Explain `defer` in Swift.
34. What is a custom initializer?
35. Explain error handling in Swift.
36. What are type aliases in Swift?
37. Explain property observers in Swift.
38. What is a higher-order function in Swift?
39. Explain Codable in Swift.
40. What is multithreading with GCD?