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. After accessors have been defined in the header file...
they need to be defined in the implementation file
cannot be added to an array
the instance variables
data
2. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
only the innermost loop in which the break is executed is terminated
method
@synthesize
Instantiation from scratch
3. super - is used...
Used to find the time right now or to store past or future time/dates
self
receiver
for inheritance - adopting the superclasses implementation
4. Any other initializer a class has calls the _ designated initializer....
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
5. Reference Counting...
You take ownership for an object you want to keep a pointer to
draw images
attributes - behavior
NSBundle
6. 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.
You take ownership for an object you want to keep a pointer to
creating an initializer
CF - Ref
Maintenance of state
7. Instance Variables by default are called @protected meaning...
array[class - NSMutableArray]
a single-array can contain objects of different types
CGRect
only the class and subclasses can access
8. What does autorelease mean?
array[class - NSMutableArray]
draw images
alloc - singleton - informational utility method?
wait until the loop finishes processing the event - at the end release it
9. initWithFrame: the designated initializer for UIView gives the view
size and position
do so in viewDidLoad
class methods - initializers
message
10. Each _ has a 'designated' initializer method....
view controller
will be ignored
class
you always return the newly initialized object(return self)
11. A collection object - an ordered list of objects that can be accesed by an index
array[class - NSMutableArray]
collection of collections - NSArray of an NSArray
@synthesize
NSLog routine
12. A delegate is a pointer to an object with a set of methods the delegate-holder knows how to call. In other words - it's _ from a later created object
Abstraction
Data Encapsulation
a mechanism to enable specific callbacks
do so in viewDidLoad
13. NSString *s = @'Hello - World'; is an example of...
declaration and initialization of a variable
initializers
you always return the newly initialized object(return self)
will be ignored
14. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
Ready-Made Instance
retain
is an instance of that class
you always return the newly initialized object(return self)
15. The notion that the data for an object is stored in it's instance variables and is accessed only by the objects methods. This maintains the integrity of the data.
storage
(id)initWithFrame:(CGRect)aRect;
Data Encapsulation
setPossessionName
16. Delegation is an object oriented approach to
NSBundle
Core Graphics Framework
method
callbacks
17. In object oriented languages - we call methods that get and set instance variables accessors - individually we call them...
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
18. At the top of any implementation file...
will be ignored
instance
you must import the header file of that class
new instances of the class or retrieve some global property of the class.
19. NSArray - class...
CF - Ref
ordered collection of objects - immutable
for inheritance - adopting the superclasses implementation
initializer
20. UIViewController has several methods that get called at certain times...
a mechanism to enable specific callbacks
Used to find the time right now or to store past or future time/dates
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
the instance variables
21. If the view has no subviews - create it programmatically; if it has subviews
collection of collections - NSArray of an NSArray
pointer - class
Ready-Made Instance
create a XIB file
22. An instance is a device for maintaining state. It's a box for _ of data.
new instances of the class or retrieve some global property of the class.
object
storage
reuse your cells
23. 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
24. The class is responsible for what instance variables the instance has - but not the _ of those variables.
group of global functions already assigned to this class
NSLog routine
values
CGRect bounds - GCPoint center - CGRect frame
25. Values to be supplied as the parameters to the method
%d
Controller Objects[Managers]
arguments[message]
creates an instance of NSString that holds the character string
26. Each class picks one _ as it's designated initializer....
initializer
message
Controller Objects[Managers]
declaration and initialization of a variable
27. UIImageView is used to...
the array becomes an owner of that object and has a pointer to it.
calling code that does the instantiation for you
draw images
pointers
28. A view is an...
class
instance of UIView or one of its subclasses
is an instance of that class
arguments[message]
29. A message is always contained in square brackets - and has three parts
instance of UIView or one of its subclasses
instance variable of an object is valid
implementation
receiver - selector - arguments
30. How do I implement my drawRect?
Core Graphics Framework
initializer
viewWillDissapear: and viewWillAppear:
retain
31. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
rectangular
instance of UIView or one of its subclasses
receiver
superclass's
32. Class methods typically either create
define it in the implemenation file
new instances of the class or retrieve some global property of the class.
superclass's
CGRect bounds
33. A method in a _ is required unless its preceded by an @optional.
C Functionn
pointers
protocol
collection of collections - NSArray of an NSArray
34. In Cocoa Touch - the table view asks another object _ what it should display...
Data Encapsulation
class methods - initializers
message
its dataSource
35. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
draw images
new instances of the class or retrieve some global property of the class.
'getters' and 'setters'
Controller Objects[Managers]
36. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
subview(s)
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
designated initializer
retain
37. In any application with UINavigationController - the navigation controller...
has one root view controller
Hash table - Look up objects using a key to get a value.
creating an initializer
to get and set variables
38. Asking a class or object to execute a method
storage
creates an instance of NSString that holds the character string
message
Used to find the time right now or to store past or future time/dates
39. A pointer to the object being asked to execute a method
safety - subclassability and makes code look more consistent with C structs
receiver[message]
creating an initializer
retain
40. For view controllers that are closely related - like a table view controller and its detail view controller - you can simply give them _ that point to each other.
in the dealloc - or when a Controller's view is 'unloaded'
instance variables
view controller's initialization method
implementation
41. Designated initializer makes sure that every...
designated initializer
instance variable of an object is valid
to get and set variables
instance of UIView or one of its subclasses
42. 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
43. The root view controller typically creates the next view controller - and the next _ creates the one after that
they need to be defined in the implementation file
protocol
view controller
you always return the newly initialized object(return self)
44. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
only the innermost loop in which the break is executed is terminated
super - self
the message release to all its entries
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
45. Object Oriented based analogue to a function is called a...
CGRect
rectangular
method
view controller's initialization method
46. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
@interface ClassName:SuperClassName
ready-made instances - instantiation from scratch - and nib based instantiation
CGFloat
CGRect
47. Prefixing a character string with an @ symbol [specific - NSString class]...
draw images
class
creates an instance of NSString that holds the character string
%d
48. Execution of the break statement...
values
causes the program to immediately exit from the loop it is executing - whether its for - while or do
selector[message]
view controller
49. All objects are accessed using...
message
receiver - selector - arguments
collection of collections - NSArray of an NSArray
pointers
50. 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