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. In general - class methods tend to be factory methods - that is...
position
creating an initializer
You take ownership for an object you want to keep a pointer to
methods for generating an instance
2. A function in the objective c library that simply displays or logs it's argument
parentViewController
Data Encapsulation
NSCoder
NSLog routine
3. @property - is using methods...
creates an instance of NSString that holds the character string
@synthesize
to get and set variables
values
4. A UITableView usually needs three different pieces...
UIView
define it in the implemenation file
data source - delegate and view controller
NSBundle
5. Hold data and know nothing about the user interface
Model Objects[Factory Worker]
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
to give it someone else - or another object
accessors - individually we call them 'getters' and 'setters'
6. A method in a _ is required unless its preceded by an @optional.
Abstraction
protocol
view controller
causes the program to immediately exit from the loop it is executing - whether its for - while or do
7. Ready-made instances...
has one root view controller
array[class - NSMutableArray]
instance
calling code that does the instantiation for you
8. A view is a subclass of _
CGFloat
an object's property
UIView
you always return the newly initialized object(return self)
9. Views have three properties related to their location and size: @property _ _;
instance
new instances of the class or retrieve some global property of the class.
data source - delegate and view controller
CGRect bounds - GCPoint center - CGRect frame
10. The class is responsible for what instance variables the instance has - but not the _ of those variables.
unordered collection of objects - objects must be unique
Anytime you call a method with new - alloc or copy. You own and must release that object.
is called every time the event occurs
values
11. A pointer to the object being asked to execute a method
for inheritance - adopting the superclasses implementation
subview(s)
upper
receiver[message]
12. Execution of the break statement...
class's
Instantiation from scratch
rectangular
causes the program to immediately exit from the loop it is executing - whether its for - while or do
13. At the top of any implementation file...
you must import the header file of that class
pointers
variable scope - if defined within a block
data source - view controller and delegate
14. 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
15. Class methods do not operate on an _ or have any access to _ variables....
instance
you must import the header file of that class
for inheritance - adopting the superclasses implementation
Model Objects[Factory Worker]
16. To load a Xib file manually - you use _
instance of UIView or one of its subclasses
NSBundle
declaration and initialization of a variable
its dataSource
17. Designated initializer makes sure that every...
calling code that does the instantiation for you
instance variable of an object is valid
creates an instance of NSString that holds the character string
has one root view controller
18. When do you take ownership?...
Anytime you call a method with new - alloc or copy. You own and must release that object.
Abstraction
alloc - singleton - informational utility method?
copy - retain
19. Reducing details to focus on the core concepts
Object wrapper around primitive types like int - float - double - BOOl
the array becomes an owner of that object and has a pointer to it.
CGRect bounds
Abstraction
20. NSNumber - class...
initializers
Object wrapper around primitive types like int - float - double - BOOl
a single-array can contain objects of different types
dealloc - is called on the object & the object's memory is returned to the heap
21. The designated initializer calls the _ designated initializer....
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
22. A responder is responsible for...
receiving and handling events that are associated with it
object
they need to be defined in the implementation file
copy - retain
23. Categories are an Objective C way to add _ to an existing class without subclassing
to give it someone else - or another object
the instance variables
methods
variable scope - if defined within a block
24. 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
Core Graphics Framework
NSLog routine
CGFloat
parentViewController
25. 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.
data source - view controller and delegate
implementation
CGFloat
an object's property
26. Any individual object belonging to any class...
you must import the header file of that class
NSLog routine
variable scope - if defined within a block
is an instance of that class
27. Just a floating point number - but we always use it for graphics.
its dataSource
CGFloat
lowercase - uppercase
Instantiation from scratch
28. Reference Counting...
instance of UIView or one of its subclasses
class methods - initializers
You take ownership for an object you want to keep a pointer to
to give it someone else - or another object
29. NSDictionary...
Hash table - Look up objects using a key to get a value.
in the dealloc - or when a Controller's view is 'unloaded'
(id)initWithFrame:(CGRect)aRect;
message
30. NSSet...
unordered collection of objects - objects must be unique
Model Objects[Factory Worker]
only the innermost loop in which the break is executed is terminated
protocol
31. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
object
data source - view controller and delegate
NSBundle
Ready-Made Instance
32. [Instance Variables] The code it gets from its class and in a sense is shared with all other instances of that class - but the _ belong to it alone.
collection of collections - NSArray of an NSArray
instance variable of an object is valid
data source - delegate and view controller
data
33. Number one use of protocols in iOS...
will be ignored
Encapsulation of functionality
delegates and dataSources
You take ownership for an object you want to keep a pointer to
34. If the view has no subviews - create it programmatically; if it has subviews
create a XIB file
declaration and initialization of a variable
data source - delegate and view controller
you must import the header file of that class
35. Primitives and C Structures...
safety - subclassability and makes code look more consistent with C structs
cannot be added to an array
You take ownership for an object you want to keep a pointer to
selector[message]
36. When an object is added to a NSMutableArray - that object is sent the message to retain;...
Ready-Made Instance
the array becomes an owner of that object and has a pointer to it.
NSCoder
Abstraction
37. NSString objects are usually sent _ rather than _...
Core Graphics Framework
copy - retain
its dataSource
Encapsulation of functionality
38. 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...
ordered collection of objects - immutable
setPossessionName
rectangular
values
39. A message is always contained in square brackets - and has three parts
will be ignored
delegates and dataSources
receiver - selector - arguments
self
40. The only reason to temporarily own an object - is...
instance
message
to give it someone else - or another object
nil
41. If a break statement is executed from within a set of nested loops...
pointers
only the innermost loop in which the break is executed is terminated
protocol
has one root view controller
42. A view is an...
a mechanism to enable specific callbacks
only the class and subclasses can access
in the dealloc - or when a Controller's view is 'unloaded'
instance of UIView or one of its subclasses
43. Also - because arrays only hold a pointer to an object...
they need to be defined in the implementation file
the array relinquishes ownership of that object and no longer has a pointer to it
copy - retain
a single-array can contain objects of different types
44. UIView - designated initializer...
(id)initWithFrame:(CGRect)aRect;
CGRect bounds
UIViewController
attributes - behavior
45. In the last line of an init method...
You take ownership for an object you want to keep a pointer to
you always return the newly initialized object(return self)
Hash table - Look up objects using a key to get a value.
wait until the loop finishes processing the event - at the end release it
46. 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
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
method
CF - Ref
47. Center and frame are used to _ your view
class methods - initializers
position
alloc - singleton - informational utility method?
class
48. You use _ to implement the view
the instance variables
@synthesize
position
CGRect bounds
49. 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 _.
subview(s)
arguments[message]
message
new instances of the class or retrieve some global property of the class.
50. The root view controller typically creates the next view controller - and the next _ creates the one after that
new instances of the class or retrieve some global property of the class.
view controller
causes the program to immediately exit from the loop it is executing - whether its for - while or do
self