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. Asking a class or object to execute a method
method
lowercase - uppercase
CGRect
message
2. Also if you send the NSObject the _ message - you own that object.
retain
cannot be added to an array
pointers
group of global functions already assigned to this class
3. When making a tableView always...
CGRect
receiver[message]
reuse your cells
is an instance of that class
4. 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 _.
define it in the implemenation file
UIViewController
declaration and initialization of a variable
pointer - class
5. UIImageView is used to...
methods
draw images
unordered collection of objects - objects must be unique
its dataSource
6. Values to be supplied as the parameters to the method
header files declare
the message release to all its entries
delegates and dataSources
arguments[message]
7. 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
8. If a break statement is executed from within a set of nested loops...
initializers
receiver - selector - arguments
rectangular
only the innermost loop in which the break is executed is terminated
9. A _ handles touch events.
view
CGRect
parentViewController
You take ownership for an object you want to keep a pointer to
10. Primitives and C Structures...
Instantiation from scratch
cannot be added to an array
Core Graphics Framework
new instances of the class or retrieve some global property of the class.
11. Class methods do not operate on an _ or have any access to _ variables....
instance
an object's property
object
causes the program to immediately exit from the loop it is executing - whether its for - while or do
12. 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
13. In a class method you cannot access...
CGRect bounds - GCPoint center - CGRect frame
the instance variables
CGRect
Instantiation from scratch
14. 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
rectangular
is called every time the event occurs
upper
parentViewController
15. After accessors have been defined in the header file...
they need to be defined in the implementation file
upper
class
Continue
16. In general - class methods tend to be factory methods - that is...
methods for generating an instance
arguments[message]
data source - delegate and view controller
%d
17. NSArray - important methods...
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
Object wrapper around primitive types like int - float - double - BOOl
setPossessionName
delegates and dataSources
18. Each class picks one _ as it's designated initializer....
view controller
initializer
instance variables
Encapsulation of functionality
19. A callback is a function that is supplied in advance of an event - and...
@interface ClassName:SuperClassName
a mechanism to enable specific callbacks
is called every time the event occurs
calling code that does the instantiation for you
20. initWithFrame: the designated initializer for UIView gives the view
size and position
instance variables
NSLog routine
CGFloat
21. What does autorelease mean?
type - name and value
group of global functions already assigned to this class
wait until the loop finishes processing the event - at the end release it
NSLog routine
22. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
the array becomes an owner of that object and has a pointer to it.
data
receiver
UIView
23. Center and frame are used to _ your view
a mechanism to enable specific callbacks
position
wait until the loop finishes processing the event - at the end release it
NSBundle
24. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
C Functionn
to give it someone else - or another object
you always return the newly initialized object(return self)
only the innermost loop in which the break is executed is terminated
25. Whenever a UINavigationController is about to swap views - it sends out two messages
Hash table - Look up objects using a key to get a value.
its dataSource
self
viewWillDissapear: and viewWillAppear:
26. A collection object - an ordered list of objects that can be accesed by an index
Abstraction
array[class - NSMutableArray]
storage
Continue
27. The only reason to temporarily own an object - is...
UIView
to give it someone else - or another object
safety - subclassability and makes code look more consistent with C structs
declaration and initialization of a variable
28. In any application with UINavigationController - the navigation controller...
CF - Ref
has one root view controller
message
for inheritance - adopting the superclasses implementation
29. id is a...
pointer to an object
Is a placeholder object
CGRect bounds
the array relinquishes ownership of that object and no longer has a pointer to it
30. NSDate - class...
cannot be added to an array
declaration and initialization of a variable
Used to find the time right now or to store past or future time/dates
a mechanism to enable specific callbacks
31. NSString *s = @'Hello - World'; is an example of...
declaration and initialization of a variable
an object's property
methods
Anytime you call a method with new - alloc or copy. You own and must release that object.
32. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
cannot be added to an array
nil
references to objects
CGRect
33. UIView - designated initializer...
the instance variables
the array becomes an owner of that object and has a pointer to it.
(id)initWithFrame:(CGRect)aRect;
references to objects
34. Any individual object belonging to any class...
superclass's
create a XIB file
copy - retain
is an instance of that class
35. 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.
view controller's initialization method
declaration and initialization of a variable
CGRect bounds - GCPoint center - CGRect frame
first responder
36. Classes describe two things...
dealloc - is called on the object & the object's memory is returned to the heap
causes the program to immediately exit from the loop it is executing - whether its for - while or do
attributes - behavior
its dataSource
37. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
view
retain
self
creating an initializer
38. Each _ has a 'designated' initializer method....
only the class and subclasses can access
reuse your cells
rectangular
class
39. @property declares - and _ implements the setter and getter...
new instances of the class or retrieve some global property of the class.
references to objects
data
@synthesize
40. Instance Variables by default are called @protected meaning...
references to objects
data source - delegate and view controller
retain
only the class and subclasses can access
41. Origin of a view's coordinate system is _ left
Hash table - Look up objects using a key to get a value.
instance of UIView or one of its subclasses
Functions
upper
42. In Objective C arrays can hold only...
parentViewController
references to objects
CGRect
creates an instance of NSString that holds the character string
43. Also - because arrays only hold a pointer to an object...
a single-array can contain objects of different types
Data Encapsulation
subview(s)
%d
44. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
new instances of the class or retrieve some global property of the class.
references to objects
super - self
create a XIB file
45. A pointer to the object being asked to execute a method
delegates and dataSources
C Functionn
receiver[message]
you must import the header file of that class
46. A method in a _ is required unless its preceded by an @optional.
CGRect
an object's property
protocol
unordered collection of objects - objects must be unique
47. Proceed through the loop - jump back to the top and check again
Continue
UIView
Data Encapsulation
a mechanism to enable specific callbacks
48. @property - is using methods...
receiving and handling events that are associated with it
to give it someone else - or another object
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
to get and set variables
49. All objects are accessed using...
to get and set variables
class methods - initializers
pointers
is called every time the event occurs
50. Use of class methods - there are three...
subview(s)
the array becomes an owner of that object and has a pointer to it.
alloc - singleton - informational utility method?
Anytime you call a method with new - alloc or copy. You own and must release that object.