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 UITableViewController can fill all three roles of...
first responder
calling code that does the instantiation for you
data source - view controller and delegate
data source - delegate and view controller
2. Also - because arrays only hold a pointer to an object...
group of global functions already assigned to this class
Anytime you call a method with new - alloc or copy. You own and must release that object.
receiver - selector - arguments
a single-array can contain objects of different types
3. 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.
header files declare
do so in viewDidLoad
Data Encapsulation
NSBundle
4. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
initializers
nil
parentViewController
a single-array can contain objects of different types
5. When making a tableView always...
ready-made instances - instantiation from scratch - and nib based instantiation
attributes - behavior
reuse your cells
setPossessionName
6. Three ways instances are created...
ready-made instances - instantiation from scratch - and nib based instantiation
only the innermost loop in which the break is executed is terminated
delegates and dataSources
header files declare
7. A view is an...
instance of UIView or one of its subclasses
creating an initializer
nil
a single-array can contain objects of different types
8. When do you take ownership?...
rectangular
Anytime you call a method with new - alloc or copy. You own and must release that object.
they need to be defined in the implementation file
view
9. How do I implement my drawRect?
collection of collections - NSArray of an NSArray
Core Graphics Framework
class methods - initializers
variable scope - if defined within a block
10. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
Abstraction
class methods - initializers
CF - Ref
array[class - NSMutableArray]
11. Also if you send the NSObject the _ message - you own that object.
UIView
ordered collection of objects - immutable
retain
pointer to an object
12. Property List...
causes the program to immediately exit from the loop it is executing - whether its for - while or do
object
collection of collections - NSArray of an NSArray
alloc - singleton - informational utility method?
13. Views have three properties related to their location and size: @property _ _;
instance of UIView or one of its subclasses
Ready-Made Instance
message
CGRect bounds - GCPoint center - CGRect frame
14. In general - class methods tend to be factory methods - that is...
Data Encapsulation
wait until the loop finishes processing the event - at the end release it
methods for generating an instance
NSCoder
15. NSString objects are usually sent _ rather than _...
view
You take ownership for an object you want to keep a pointer to
copy - retain
cannot be added to an array
16. 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 _.
UIView
instance variables
pointer - class
is an instance of that class
17. Object Oriented based analogue to a function is called a...
only the class and subclasses can access
receiving and handling events that are associated with it
method
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
18. if you implemented both the setter and getter - the @synthesize method...
'getters' and 'setters'
will be ignored
instance variables
designated initializer
19. In Objective C arrays can hold only...
they need to be defined in the implementation file
Data Encapsulation
references to objects
view controller's initialization method
20. Typically the designated initializer has parameters for the most important and frequently used _ of an object
receiver
instance variables
Generic object wrapper for other non-object data types
they need to be defined in the implementation file
21. class methods...
instance of UIView or one of its subclasses
ordered collection of objects - immutable
they need to be defined in the implementation file
group of global functions already assigned to this class
22. 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
23. Whenever a UINavigationController is about to swap views - it sends out two messages
has one root view controller
reuse your cells
viewWillDissapear: and viewWillAppear:
group of global functions already assigned to this class
24. Any individual object belonging to any class...
cannot be added to an array
is an instance of that class
data source - delegate and view controller
class's
25. Hold data and know nothing about the user interface
calling code that does the instantiation for you
Model Objects[Factory Worker]
CGRect
you must import the header file of that class
26. A callback is a function that is supplied in advance of an event - and...
subview(s)
nil
a single-array can contain objects of different types
is called every time the event occurs
27. 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 _.
unordered collection of objects - objects must be unique
nil
setPossessionName
data source - view controller and delegate
28. The root view controller typically creates the next view controller - and the next _ creates the one after that
Core Graphics Framework
lowercase - uppercase
Object wrapper around primitive types like int - float - double - BOOl
view controller
29. A method in a _ is required unless its preceded by an @optional.
a mechanism to enable specific callbacks
methods for generating an instance
accessors - individually we call them 'getters' and 'setters'
protocol
30. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
receiver[message]
message
first responder
lowercase - uppercase
31. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
ready-made instances - instantiation from scratch - and nib based instantiation
its dataSource
NSCoder
Used to find the time right now or to store past or future time/dates
32. @property declares - and _ implements the setter and getter...
new instances of the class or retrieve some global property of the class.
NSLog routine
class's
@synthesize
33. Just a floating point number - but we always use it for graphics.
causes the program to immediately exit from the loop it is executing - whether its for - while or do
CGFloat
group of global functions already assigned to this class
calling code that does the instantiation for you
34. When the message endEditing: is sent to a view - if it or any of its subviews or currently the _ - it will resign its first responder statues - and the keyboard will be dismissed.
first responder
declaration and initialization of a variable
message
'getters' and 'setters'
35. Use of class methods - there are three...
an object's property
NSCoder
You take ownership for an object you want to keep a pointer to
alloc - singleton - informational utility method?
36. A _ handles touch events.
view controller's initialization method
viewWillDissapear: and viewWillAppear:
arguments[message]
view
37. When an object is added to a NSMutableArray - that object is sent the message to retain;...
instance variable of an object is valid
implementation
methods for generating an instance
the array becomes an owner of that object and has a pointer to it.
38. The only reason to temporarily own an object - is...
to give it someone else - or another object
a mechanism to enable specific callbacks
'getters' and 'setters'
references to objects
39. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
Anytime you call a method with new - alloc or copy. You own and must release that object.
CGRect
you must import the header file of that class
arguments[message]
40. At the top of any implementation file...
you must import the header file of that class
view controller's initialization method
only the class and subclasses can access
wait until the loop finishes processing the event - at the end release it
41. If a break statement is executed from within a set of nested loops...
only the innermost loop in which the break is executed is terminated
CGRect bounds - GCPoint center - CGRect frame
ready-made instances - instantiation from scratch - and nib based instantiation
view
42. UIImageView is used to...
instance variable of an object is valid
draw images
Encapsulation of functionality
data
43. A responder is responsible for...
receiving and handling events that are associated with it
class methods - initializers
the array becomes an owner of that object and has a pointer to it.
class
44. In any application with UINavigationController - the navigation controller...
has one root view controller
Controller Objects[Managers]
Hash table - Look up objects using a key to get a value.
data source - view controller and delegate
45. 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...
in the dealloc - or when a Controller's view is 'unloaded'
instance
setPossessionName
methods for generating an instance
46. Categories are an Objective C way to add _ to an existing class without subclassing
draw images
instance of UIView or one of its subclasses
methods
is an instance of that class
47. If the view has no subviews - create it programmatically; if it has subviews
to get and set variables
designated initializer
declaration and initialization of a variable
create a XIB file
48. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
only the class and subclasses can access
Ready-Made Instance
'getters' and 'setters'
Data Encapsulation
49. Only exists within the statement block there defined - outside of the block is fine
retain
variable scope - if defined within a block
data
object
50. Execution of the break statement...
Ready-Made Instance
causes the program to immediately exit from the loop it is executing - whether its for - while or do
protocol
first responder