SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
JOIN
|
LOGIN
Business Skills
|
Soft Skills
|
Basic Literacy
|
Certifications
About
|
Help
|
Privacy
|
Terms
|
Email
Search
Test your basic knowledge |
iOS 5 App Development Objective C
Start Test
Study First
Subjects
:
it-skills
,
apple
Instructions:
Answer 50 questions in 15 minutes.
If you are not ready to take this test, you can
study here
.
Match each statement with the correct term.
Don't refresh. All questions and answers are randomly picked and ordered every time you load a test.
This is a study tool. The 3 wrong answers for each question are randomly chosen from answers to other questions. So, you might find at times the answers obvious, but you will see it re-enforces your understanding as you take the test each time.
1. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
CGFloat
data
group of global functions already assigned to this class
CGRect
2. UIView - designated initializer...
(id)initWithFrame:(CGRect)aRect;
the instance variables
they need to be defined in the implementation file
header files declare
3. A collection object - an ordered list of objects that can be accesed by an index
creating an initializer
define it in the implemenation file
group of global functions already assigned to this class
array[class - NSMutableArray]
4. initWithFrame: the designated initializer for UIView gives the view
accessors - individually we call them 'getters' and 'setters'
Generic object wrapper for other non-object data types
size and position
wait until the loop finishes processing the event - at the end release it
5. A pointer to the object being asked to execute a method
unordered collection of objects - objects must be unique
NSBundle
method
receiver[message]
6. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
Generic object wrapper for other non-object data types
Data Encapsulation
CF - Ref
Instantiation from scratch
7. @property declares - and _ implements the setter and getter...
variable scope - if defined within a block
Object wrapper around primitive types like int - float - double - BOOl
@synthesize
superclass's
8. Also - because arrays only hold a pointer to an object...
new instances of the class or retrieve some global property of the class.
a single-array can contain objects of different types
only the innermost loop in which the break is executed is terminated
safety - subclassability and makes code look more consistent with C structs
9. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
self
only the innermost loop in which the break is executed is terminated
cannot be added to an array
implementation
10. After accessors have been defined in the header file...
instance variable of an object is valid
@interface ClassName:SuperClassName
CGRect bounds
they need to be defined in the implementation file
11. UITableViewController is a subclass of...
UIViewController
the instance variables
protocol
Data Encapsulation
12. In general - in Objective-C - a reference to an instance is a _ - and the name of the data type of what's at the far end of that pointer is the name of the instances's _.
will be ignored
@synthesize
message
pointer - class
13. NSValue - class...
Generic object wrapper for other non-object data types
receiver - selector - arguments
CF - Ref
Ready-Made Instance
14. Primitives and C Structures...
cannot be added to an array
Anytime you call a method with new - alloc or copy. You own and must release that object.
do so in viewDidLoad
instance variables
15. A _ handles touch events.
has one root view controller
attributes - behavior
Continue
view
16. Core foundation classes are prefixed with _ and suffixed with _
the array relinquishes ownership of that object and no longer has a pointer to it
calling code that does the instantiation for you
CGRect bounds
CF - Ref
17. Each _ has a 'designated' initializer method....
class
Abstraction
the array becomes an owner of that object and has a pointer to it.
UIView
18. In any application with UINavigationController - the navigation controller...
object
has one root view controller
NSBundle
the instance variables
19. Never access a view controller's view in that...
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
20. The root view controller typically creates the next view controller - and the next _ creates the one after that
subview(s)
position
view controller
CGRect bounds
21. It's class is sent the message alloc - which creates an instance of that class and returns a pointer to it - and then that instance is sent the message init - which gives its instance variables initial values.
only the class and subclasses can access
pointer to an object
for inheritance - adopting the superclasses implementation
creating an initializer
22. How do I implement my drawRect?
@synthesize
Core Graphics Framework
collection of collections - NSArray of an NSArray
the message release to all its entries
23. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
@interface ClassName:SuperClassName
creates an instance of NSString that holds the character string
dealloc - is called on the object & the object's memory is returned to the heap
will be ignored
24. NSArray - class...
ordered collection of objects - immutable
the array becomes an owner of that object and has a pointer to it.
first responder
Encapsulation of functionality
25. NSNumber - class...
instance
Object wrapper around primitive types like int - float - double - BOOl
CGRect bounds - GCPoint center - CGRect frame
create a XIB file
26. Each individual instance is a bundle of data that it maintains. Typically that data is private - which means that it's encapsulated as well; no other object knows what that data is or in what form it is kept. The only way to discover from outside wha
Maintenance of state
do so in viewDidLoad
Anytime you call a method with new - alloc or copy. You own and must release that object.
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
27. We can use dot notation to reference...
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
28. Property List...
upper
storage
attributes - behavior
collection of collections - NSArray of an NSArray
29. In Objective C - the name of a setter method is set plus the name of the instance variable it is changing - for example PossessionName would be...
alloc - singleton - informational utility method?
setPossessionName
an object's property
Functions
30. If you aren't going to initialize an instance reference pointer at the moment you declare it by assigning a real value - it's a good idea to assign it _.
wait until the loop finishes processing the event - at the end release it
class's
will be ignored
nil
31. All objects are accessed using...
pointers
view controller
callbacks
instance
32. Asking a class or object to execute a method
nil
implementation
message
CF - Ref
33. NSArray - important methods...
cannot be added to an array
instance of UIView or one of its subclasses
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
message
34. Views have three properties related to their location and size: @property _ _;
is called every time the event occurs
CGRect bounds - GCPoint center - CGRect frame
instance variables
reuse your cells
35. NSString objects are usually sent _ rather than _...
methods for generating an instance
copy - retain
position
receiving and handling events that are associated with it
36. Class methods typically either create
new instances of the class or retrieve some global property of the class.
'getters' and 'setters'
reuse your cells
Object wrapper around primitive types like int - float - double - BOOl
37. If you have extra work you want to do on the view...
@synthesize
do so in viewDidLoad
Controller Objects[Managers]
declaration and initialization of a variable
38. Values to be supplied as the parameters to the method
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
superclass's
Controller Objects[Managers]
arguments[message]
39. Dynamic binding means that when we call a certain object's method - and there are several _ of that method - the right one is figured out at runtime.
implementation
subview(s)
designated initializer
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
40. if you implemented both the setter and getter - the @synthesize method...
will be ignored
@interface ClassName:SuperClassName
Ready-Made Instance
method
41. Reducing details to focus on the core concepts
Abstraction
only the class and subclasses can access
its dataSource
to give it someone else - or another object
42. A UITableViewController can fill all three roles of...
data source - view controller and delegate
define it in the implemenation file
NSLog routine
header files declare
43. Object Oriented based analogue to a function is called a...
references to objects
its dataSource
only the innermost loop in which the break is executed is terminated
method
44. In general - class methods tend to be factory methods - that is...
pointers
header files declare
protocol
methods for generating an instance
45. When a view controller presents a modal view controller - the _ of the modal view controller is set to be the parent of the presenting controller
storage
(id)initWithFrame:(CGRect)aRect;
view controller
parentViewController
46. When do we need to release our outlets?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
47. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
has one root view controller
super - self
setPossessionName
draw images
48. What happens when the last owner calls release?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
49. When overriding a method - all you need to is _ - you do not need to declare it in the header file because it has already been declared by the superclass....
define it in the implemenation file
collection of collections - NSArray of an NSArray
Encapsulation of functionality
first responder
50. UIImageView is used to...
draw images
instance variables
for inheritance - adopting the superclasses implementation
Controller Objects[Managers]