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. Ready-made instances...
CGRect bounds
do so in viewDidLoad
viewWillDissapear: and viewWillAppear:
calling code that does the instantiation for you
2. After accessors have been defined in the header file...
Maintenance of state
they need to be defined in the implementation file
Continue
alloc - singleton - informational utility method?
3. An instance is a device for maintaining state. It's a box for _ of data.
ordered collection of objects - immutable
(id)initWithFrame:(CGRect)aRect;
pointer to an object
storage
4. 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
5. Execution of the break statement...
causes the program to immediately exit from the loop it is executing - whether its for - while or do
you always return the newly initialized object(return self)
view
data source - delegate and view controller
6. A callback is a function that is supplied in advance of an event - and...
is called every time the event occurs
ordered collection of objects - immutable
object
causes the program to immediately exit from the loop it is executing - whether its for - while or do
7. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
only the class and subclasses can access
receiver
methods for generating an instance
the message release to all its entries
8. 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 _.
subview(s)
Data Encapsulation
CGFloat
pointer - class
9. In any application with UINavigationController - the navigation controller...
the array becomes an owner of that object and has a pointer to it.
will be ignored
has one root view controller
accessors - individually we call them 'getters' and 'setters'
10. 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)
callbacks
superclass's
for inheritance - adopting the superclasses implementation
11. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
NSLog routine
self
subview(s)
to give it someone else - or another object
12. Defining variables - three parts...
subview(s)
superclass's
type - name and value
data
13. You use _ to implement the view
implementation
CGRect
storage
CGRect bounds
14. A command directed to an object is called an...
has one root view controller
safety - subclassability and makes code look more consistent with C structs
message
implementation
15. Only exists within the statement block there defined - outside of the block is fine
pointers
wait until the loop finishes processing the event - at the end release it
variable scope - if defined within a block
causes the program to immediately exit from the loop it is executing - whether its for - while or do
16. UITableViewController is a subclass of...
Is a placeholder object
will be ignored
UIViewController
protocol
17. 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
Object wrapper around primitive types like int - float - double - BOOl
a mechanism to enable specific callbacks
an object's property
Used to find the time right now or to store past or future time/dates
18. NSDate - class...
Used to find the time right now or to store past or future time/dates
class's
retain
instance variable of an object is valid
19. Any individual object belonging to any class...
is an instance of that class
has one root view controller
class
arguments[message]
20. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
initializers
array[class - NSMutableArray]
Instantiation from scratch
NSCoder
21. Whenever a UINavigationController is about to swap views - it sends out two messages
class's
accessors - individually we call them 'getters' and 'setters'
viewWillDissapear: and viewWillAppear:
instance variables
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. NSString objects are usually sent _ rather than _...
self
initializer
methods for generating an instance
copy - retain
24. Each object does its own job - and presents to the rest of the world - to other objects - and indeed in a sense to the programmer - an opaque wall whose only entrances are the methods to which it promises to respond and the actions it promises to per
%d
wait until the loop finishes processing the event - at the end release it
Encapsulation of functionality
class's
25. When an object is added to a NSMutableArray - that object is sent the message to retain;...
they need to be defined in the implementation file
you must import the header file of that class
UIView
the array becomes an owner of that object and has a pointer to it.
26. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
dealloc - is called on the object & the object's memory is returned to the heap
@interface ClassName:SuperClassName
arguments[message]
pointers
27. Core foundation classes are prefixed with _ and suffixed with _
CF - Ref
pointer - class
the array relinquishes ownership of that object and no longer has a pointer to it
header files declare
28. A pointer to the object being asked to execute a method
copy - retain
NSBundle
receiver[message]
implementation
29. Three ways instances are created...
new instances of the class or retrieve some global property of the class.
you must import the header file of that class
ready-made instances - instantiation from scratch - and nib based instantiation
@synthesize
30. NSArray - important methods...
a single-array can contain objects of different types
data
Controller Objects[Managers]
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
31. UIImageView is used to...
unordered collection of objects - objects must be unique
its dataSource
draw images
safety - subclassability and makes code look more consistent with C structs
32. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
create a XIB file
the array becomes an owner of that object and has a pointer to it.
Instantiation from scratch
methods
33. Asking a class or object to execute a method
methods for generating an instance
message
instance variables
Core Graphics Framework
34. Values to be supplied as the parameters to the method
the message release to all its entries
arguments[message]
an object's property
instance variables
35. When an object is removed from an NSMutableArray - that object is sent the message release;...
delegates and dataSources
the array relinquishes ownership of that object and no longer has a pointer to it
alloc - singleton - informational utility method?
CGRect
36. Designated initializer makes sure that every...
Encapsulation of functionality
instance variable of an object is valid
nil
receiver[message]
37. When making a tableView always...
'getters' and 'setters'
array[class - NSMutableArray]
reuse your cells
alloc - singleton - informational utility method?
38. Prefixing a character string with an @ symbol [specific - NSString class]...
initializers
creates an instance of NSString that holds the character string
data source - view controller and delegate
define it in the implemenation file
39. The class is responsible for what instance variables the instance has - but not the _ of those variables.
values
data source - view controller and delegate
'getters' and 'setters'
only the class and subclasses can access
40. A UITableViewController can fill all three roles of...
pointers
NSCoder
data source - view controller and delegate
causes the program to immediately exit from the loop it is executing - whether its for - while or do
41. When do you take ownership?...
class methods - initializers
Ready-Made Instance
attributes - behavior
Anytime you call a method with new - alloc or copy. You own and must release that object.
42. Just a floating point number - but we always use it for graphics.
in the dealloc - or when a Controller's view is 'unloaded'
collection of collections - NSArray of an NSArray
CGFloat
do so in viewDidLoad
43. Class methods do not operate on an _ or have any access to _ variables....
instance
data
group of global functions already assigned to this class
rectangular
44. Reducing details to focus on the core concepts
you must import the header file of that class
its dataSource
CGRect bounds - GCPoint center - CGRect frame
Abstraction
45. Hold data and know nothing about the user interface
unordered collection of objects - objects must be unique
Model Objects[Factory Worker]
receiving and handling events that are associated with it
nil
46. The only reason to temporarily own an object - is...
to give it someone else - or another object
collection of collections - NSArray of an NSArray
the array relinquishes ownership of that object and no longer has a pointer to it
group of global functions already assigned to this class
47. In general - class methods tend to be factory methods - that is...
is called every time the event occurs
has one root view controller
data source - delegate and view controller
methods for generating an instance
48. 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
49. In a class method you cannot access...
Hash table - Look up objects using a key to get a value.
instance variables
declaration and initialization of a variable
the instance variables
50. Classes describe two things...
Object wrapper around primitive types like int - float - double - BOOl
Is a placeholder object
Generic object wrapper for other non-object data types
attributes - behavior