Home > iOS Programming > Quizzes > Objective C Fundamentals Test 2
Objective C Fundamentals Test 2
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 15% Most missed: “How can you add a new method foo to an existing class Bar?”
Objective C Fundamentals Test 2
Time left 00:00
25 Questions

1. How can you add a new method foo to an existing class Bar?
2. True or False? A method and a variable can have the same name in Objective-C.
3. What framework does the class UIButton come from?
4. True or False? Strings are one of the most common sources of buffer overflow attacks.
5. Which of the following is a Singleton?
6. What is the difference between #import and #include ?
7. What is a dependency in NSOperationQueue?
8. What does a CAEmitterCell do?
9. If you define a new class called Foo which inherits from NSObject - how do you create a new instance of it?
10. What is a persistent object store?
11. What class supports the sharing of small amounts of data such as strings or dates to iCloud?
12. How do you get the Unicode character set of a Core Text font?
13. True or False? Key value coding is used to indirectly access an object's attributes using indexes.
14. What does the 'id' type mean?
15. Which method - if defined - is guaranteed to be called once -- and only once -- when a class is first referenced?
16. The proper typedef syntax for an Objective-C block that takes an NSArray and returns an NSString is
17. What is a delegate?
18. How can you declare a method - that can be set as the action to be performed on various events?
19. In Core Data - what is the name of the object representation for the database schema?
20. True or False? You should use NSHost when connecting to a specific host.
21. What is the last chance for an object to handle a message?
22. What can happen if you use self inside a block?
23. What happens when you call retain on an object?
24. Can you call C++ code from objective C environment?
25. Are integers full-fledged objects in Objective-C?