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. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
CGRect bounds
instance variables
super - self
initializers
2. When an object is removed from an NSMutableArray - that object is sent the message release;...
the array relinquishes ownership of that object and no longer has a pointer to it
define it in the implemenation file
calling code that does the instantiation for you
for inheritance - adopting the superclasses implementation
3. All objects are accessed using...
setPossessionName
pointers
calling code that does the instantiation for you
selector[message]
4. if you implemented both the setter and getter - the @synthesize method...
callbacks
instance of UIView or one of its subclasses
will be ignored
draw images
5. Primitives and C Structures...
methods
Ready-Made Instance
cannot be added to an array
UIView
6. Delegation is an object oriented approach to
subview(s)
CGRect bounds - GCPoint center - CGRect frame
callbacks
the array relinquishes ownership of that object and no longer has a pointer to it
7. 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
8. Class methods typically either create
NSBundle
ready-made instances - instantiation from scratch - and nib based instantiation
new instances of the class or retrieve some global property of the class.
data source - view controller and delegate
9. In the last line of an init method...
you always return the newly initialized object(return self)
viewWillDissapear: and viewWillAppear:
@synthesize
instance of UIView or one of its subclasses
10. 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
11. A function in the objective c library that simply displays or logs it's argument
NSLog routine
Continue
data source - delegate and view controller
class's
12. Whenever a UINavigationController is about to swap views - it sends out two messages
subview(s)
viewWillDissapear: and viewWillAppear:
reuse your cells
define it in the implemenation file
13. A view exists within a hierarchy. The window (an instance of UIWindow) is a view and the root of the hierarchy. It has _ (that appear on the window). Those views can also have _.
attributes - behavior
subview(s)
receiver[message]
values
14. Hold data and know nothing about the user interface
Model Objects[Factory Worker]
variable scope - if defined within a block
new instances of the class or retrieve some global property of the class.
'getters' and 'setters'
15. 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
16. Values to be supplied as the parameters to the method
arguments[message]
group of global functions already assigned to this class
creates an instance of NSString that holds the character string
Hash table - Look up objects using a key to get a value.
17. A responder is responsible for...
NSLog routine
Is a placeholder object
receiving and handling events that are associated with it
accessors - individually we call them 'getters' and 'setters'
18. Ready-made instances...
rectangular
arguments[message]
calling code that does the instantiation for you
creating an initializer
19. NSArray - class...
Hash table - Look up objects using a key to get a value.
nil
view
ordered collection of objects - immutable
20. After accessors have been defined in the header file...
Functions
they need to be defined in the implementation file
only the innermost loop in which the break is executed is terminated
attributes - behavior
21. When making a tableView always...
create a XIB file
%d
Instantiation from scratch
reuse your cells
22. In Cocoa Touch - the table view asks another object _ what it should display...
upper
its dataSource
Functions
only the class and subclasses can access
23. A view represents a _ area
receiver - selector - arguments
rectangular
Anytime you call a method with new - alloc or copy. You own and must release that object.
pointer to an object
24. A view is a subclass of _
delegates and dataSources
Core Graphics Framework
Ready-Made Instance
UIView
25. A method in a _ is required unless its preceded by an @optional.
ordered collection of objects - immutable
CF - Ref
in the dealloc - or when a Controller's view is 'unloaded'
protocol
26. Just a floating point number - but we always use it for graphics.
parentViewController
CGFloat
an object's property
storage
27. What does autorelease mean?
view
wait until the loop finishes processing the event - at the end release it
data source - delegate and view controller
ordered collection of objects - immutable
28. An instance is a device for maintaining state. It's a box for _ of data.
storage
arguments[message]
Model Objects[Factory Worker]
selector[message]
29. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
class methods - initializers
@interface ClassName:SuperClassName
protocol
message
30. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
upper
you must import the header file of that class
object
pointer - class
31. A UITableView usually needs three different pieces...
initializer
NSLog routine
%d
data source - delegate and view controller
32. Reducing details to focus on the core concepts
Abstraction
draw images
Controller Objects[Managers]
CGFloat
33. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
to get and set variables
Controller Objects[Managers]
data
receiving and handling events that are associated with it
34. id is a...
class methods - initializers
Used to find the time right now or to store past or future time/dates
selector[message]
pointer to an object
35. The integer prefix is...
%d
copy - retain
they need to be defined in the implementation file
instance variables
36. Asking a class or object to execute a method
ordered collection of objects - immutable
view controller's initialization method
message
group of global functions already assigned to this class
37. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
references to objects
Is a placeholder object
Instantiation from scratch
upper
38. If the view has no subviews - create it programmatically; if it has subviews
accessors - individually we call them 'getters' and 'setters'
causes the program to immediately exit from the loop it is executing - whether its for - while or do
create a XIB file
only the innermost loop in which the break is executed is terminated
39. super - is used...
receiver
for inheritance - adopting the superclasses implementation
a single-array can contain objects of different types
instance variables
40. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
unordered collection of objects - objects must be unique
lowercase - uppercase
a mechanism to enable specific callbacks
object
41. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
C Functionn
is an instance of that class
pointers
CF - Ref
42. NSValue - class...
Generic object wrapper for other non-object data types
creates an instance of NSString that holds the character string
storage
in the dealloc - or when a Controller's view is 'unloaded'
43. Class methods do not operate on an _ or have any access to _ variables....
designated initializer
CGFloat
instance
Ready-Made Instance
44. A view is an...
an object's property
initializers
values
instance of UIView or one of its subclasses
45. A callback is a function that is supplied in advance of an event - and...
is called every time the event occurs
nil
lowercase - uppercase
dealloc - is called on the object & the object's memory is returned to the heap
46. UIImageView is used to...
copy - retain
draw images
message
accessors - individually we call them 'getters' and 'setters'
47. Typically the designated initializer has parameters for the most important and frequently used _ of an object
create a XIB file
instance variables
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
data
48. 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.
instance of UIView or one of its subclasses
creating an initializer
instance variable of an object is valid
Model Objects[Factory Worker]
49. At the top of any implementation file...
super - self
draw images
the array relinquishes ownership of that object and no longer has a pointer to it
you must import the header file of that class
50. You use _ to implement the view
@synthesize
initializer
CGRect bounds
dealloc - is called on the object & the object's memory is returned to the heap