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...
creating an initializer
view
receiver - selector - arguments
calling code that does the instantiation for you
2. Proceed through the loop - jump back to the top and check again
a single-array can contain objects of different types
calling code that does the instantiation for you
is an instance of that class
Continue
3. When overriding a method - all you need to is _ - you do not need to declare it in the header file because it has already been declared by the superclass....
its dataSource
class's
pointer to an object
define it in the implemenation file
4. In any application with UINavigationController - the navigation controller...
has one root view controller
instance variables
alloc - singleton - informational utility method?
causes the program to immediately exit from the loop it is executing - whether its for - while or do
5. 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 _.
Maintenance of state
%d
nil
(id)initWithFrame:(CGRect)aRect;
6. How do I implement my drawRect?
header files declare
Core Graphics Framework
Continue
they need to be defined in the implementation file
7. Views have three properties related to their location and size: @property _ _;
the message release to all its entries
Object wrapper around primitive types like int - float - double - BOOl
CGRect bounds - GCPoint center - CGRect frame
class's
8. 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
9. super - is used...
pointer to an object
receiving and handling events that are associated with it
nil
for inheritance - adopting the superclasses implementation
10. NSArray - important methods...
nil
self
reuse your cells
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
11. If you have extra work you want to do on the view...
wait until the loop finishes processing the event - at the end release it
do so in viewDidLoad
class
super - self
12. A UITableView usually needs three different pieces...
in the dealloc - or when a Controller's view is 'unloaded'
callbacks
data source - delegate and view controller
Encapsulation of functionality
13. Class methods typically either create
new instances of the class or retrieve some global property of the class.
unordered collection of objects - objects must be unique
%d
CF - Ref
14. Name of the method to be executed
instance variables
Hash table - Look up objects using a key to get a value.
selector[message]
designated initializer
15. When an object is removed from an NSMutableArray - that object is sent the message release;...
Controller Objects[Managers]
create a XIB file
Maintenance of state
the array relinquishes ownership of that object and no longer has a pointer to it
16. 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
17. 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.
setPossessionName
instance variables
its dataSource
Generic object wrapper for other non-object data types
18. A view represents a _ area
receiver - selector - arguments
rectangular
'getters' and 'setters'
type - name and value
19. 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)
'getters' and 'setters'
setPossessionName
super - self
20. Asking a class or object to execute a method
message
for inheritance - adopting the superclasses implementation
designated initializer
%d
21. A responder is responsible for...
Is a placeholder object
receiving and handling events that are associated with it
rectangular
for inheritance - adopting the superclasses implementation
22. Reference Counting...
attributes - behavior
You take ownership for an object you want to keep a pointer to
alloc - singleton - informational utility method?
CGRect bounds
23. Execution of the break statement...
the instance variables
self
collection of collections - NSArray of an NSArray
causes the program to immediately exit from the loop it is executing - whether its for - while or do
24. A callback is a function that is supplied in advance of an event - and...
instance
create a XIB file
is called every time the event occurs
rectangular
25. The only reason to temporarily own an object - is...
to give it someone else - or another object
designated initializer
methods
safety - subclassability and makes code look more consistent with C structs
26. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
creates an instance of NSString that holds the character string
upper
object
define it in the implemenation file
27. Only exists within the statement block there defined - outside of the block is fine
you must import the header file of that class
subview(s)
new instances of the class or retrieve some global property of the class.
variable scope - if defined within a block
28. Whenever a UINavigationController is about to swap views - it sends out two messages
viewWillDissapear: and viewWillAppear:
an object's property
Object wrapper around primitive types like int - float - double - BOOl
group of global functions already assigned to this class
29. A UITableViewController can fill all three roles of...
data source - view controller and delegate
protocol
Generic object wrapper for other non-object data types
unordered collection of objects - objects must be unique
30. 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.
is an instance of that class
you always return the newly initialized object(return self)
view controller
Data Encapsulation
31. 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 _.
Hash table - Look up objects using a key to get a value.
Maintenance of state
message
pointer - class
32. In Cocoa Touch - the table view asks another object _ what it should display...
NSCoder
instance variable of an object is valid
selector[message]
its dataSource
33. A method in a _ is required unless its preceded by an @optional.
protocol
the array relinquishes ownership of that object and no longer has a pointer to it
a mechanism to enable specific callbacks
Core Graphics Framework
34. NSString objects are usually sent _ rather than _...
copy - retain
is an instance of that class
Encapsulation of functionality
initializers
35. NSArray - class...
you always return the newly initialized object(return self)
CF - Ref
message
ordered collection of objects - immutable
36. 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
37. A pointer to the object being asked to execute a method
receiver[message]
initializer
Object wrapper around primitive types like int - float - double - BOOl
method
38. A block of statements identified by a name that can accept one or more arguments passed to it by value and can optionally return a value
you always return the newly initialized object(return self)
Functions
delegates and dataSources
message
39. Each individual instance is a bundle of data that it maintains. Typically that data is private - which means that it's encapsulated as well; no other object knows what that data is or in what form it is kept. The only way to discover from outside wha
Maintenance of state
Abstraction
size and position
variable scope - if defined within a block
40. All objects are accessed using...
pointers
ordered collection of objects - immutable
Maintenance of state
an object's property
41. 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
only the class and subclasses can access
a mechanism to enable specific callbacks
class
attributes - behavior
42. When an object is added to a NSMutableArray - that object is sent the message to retain;...
self
protocol
the array becomes an owner of that object and has a pointer to it.
super - self
43. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
Object wrapper around primitive types like int - float - double - BOOl
selector[message]
super - self
protocol
44. NSSet...
causes the program to immediately exit from the loop it is executing - whether its for - while or do
is an instance of that class
unordered collection of objects - objects must be unique
C Functionn
45. 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
46. @property - is using methods...
an object's property
self
to get and set variables
draw images
47. In object oriented languages - we call methods that get and set instance variables
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
48. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
ordered collection of objects - immutable
C Functionn
you must import the header file of that class
Ready-Made Instance
49. Any individual object belonging to any class...
ordered collection of objects - immutable
setPossessionName
is an instance of that class
accessors - individually we call them 'getters' and 'setters'
50. NSDate - class...
Used to find the time right now or to store past or future time/dates
receiver[message]
instance variables
storage