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...
instance
protocol
draw images
calling code that does the instantiation for you
2. NSSet...
the message release to all its entries
unordered collection of objects - objects must be unique
causes the program to immediately exit from the loop it is executing - whether its for - while or do
only the class and subclasses can access
3. What does autorelease mean?
instance variables
protocol
initializers
wait until the loop finishes processing the event - at the end release it
4. You use _ to implement the view
view
CGRect bounds - GCPoint center - CGRect frame
CGRect bounds
size and position
5. If you have extra work you want to do on the view...
pointer - class
do so in viewDidLoad
C Functionn
arguments[message]
6. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
object
view
setPossessionName
CGRect bounds - GCPoint center - CGRect frame
7. Name of the method to be executed
self
values
selector[message]
Core Graphics Framework
8. Any individual object belonging to any class...
CGRect bounds - GCPoint center - CGRect frame
is an instance of that class
superclass's
the instance variables
9. 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 _.
You take ownership for an object you want to keep a pointer to
has one root view controller
pointer - class
super - self
10. Also - because arrays only hold a pointer to an object...
a single-array can contain objects of different types
instance variables
superclass's
you must import the header file of that class
11. Asking a class or object to execute a method
message
dealloc - is called on the object & the object's memory is returned to the heap
a mechanism to enable specific callbacks
its dataSource
12. Center and frame are used to _ your view
data source - view controller and delegate
upper
position
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
13. super - is used...
lowercase - uppercase
parentViewController
for inheritance - adopting the superclasses implementation
its dataSource
14. When making a tableView always...
they need to be defined in the implementation file
Encapsulation of functionality
alloc - singleton - informational utility method?
reuse your cells
15. 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.
alloc - singleton - informational utility method?
for inheritance - adopting the superclasses implementation
causes the program to immediately exit from the loop it is executing - whether its for - while or do
instance variables
16. Whenever a UINavigationController is about to swap views - it sends out two messages
variable scope - if defined within a block
is called every time the event occurs
nil
viewWillDissapear: and viewWillAppear:
17. A view is a subclass of _
message
copy - retain
UIView
will be ignored
18. Reducing details to focus on the core concepts
object
receiver[message]
accessors - individually we call them 'getters' and 'setters'
Abstraction
19. class methods...
group of global functions already assigned to this class
header files declare
initializers
CGRect
20. When an NSMutableArray is deallocated - it sends...
instance
view controller
the message release to all its entries
parentViewController
21. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
header files declare
protocol
view controller's initialization method
CGFloat
22. A collection object - an ordered list of objects that can be accesed by an index
array[class - NSMutableArray]
Generic object wrapper for other non-object data types
will be ignored
type - name and value
23. 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
viewWillDissapear: and viewWillAppear:
(id)initWithFrame:(CGRect)aRect;
type - name and value
Functions
24. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
Ready-Made Instance
data
C Functionn
CGRect
25. 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 _.
a mechanism to enable specific callbacks
superclass's
wait until the loop finishes processing the event - at the end release it
subview(s)
26. In any application with UINavigationController - the navigation controller...
viewWillDissapear: and viewWillAppear:
Maintenance of state
has one root view controller
alloc - singleton - informational utility method?
27. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
method
Instantiation from scratch
self
delegates and dataSources
28. When an object is removed from an NSMutableArray - that object is sent the message release;...
class
message
the array relinquishes ownership of that object and no longer has a pointer to it
self
29. 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
30. Categories are an Objective C way to add _ to an existing class without subclassing
upper
methods
storage
CGRect bounds
31. If a break statement is executed from within a set of nested loops...
receiver
parentViewController
creates an instance of NSString that holds the character string
only the innermost loop in which the break is executed is terminated
32. if you implemented both the setter and getter - the @synthesize method...
alloc - singleton - informational utility method?
will be ignored
superclass's
array[class - NSMutableArray]
33. UITableViewController is a subclass of...
UIViewController
NSLog routine
size and position
arguments[message]
34. In the last line of an init method...
dealloc - is called on the object & the object's memory is returned to the heap
you always return the newly initialized object(return self)
viewWillDissapear: and viewWillAppear:
Object wrapper around primitive types like int - float - double - BOOl
35. In a class method you cannot access...
the instance variables
data source - delegate and view controller
CGRect bounds - GCPoint center - CGRect frame
calling code that does the instantiation for you
36. NSNumber - class...
Instantiation from scratch
Object wrapper around primitive types like int - float - double - BOOl
the array relinquishes ownership of that object and no longer has a pointer to it
method
37. The root view controller typically creates the next view controller - and the next _ creates the one after that
CF - Ref
cannot be added to an array
view controller
the array becomes an owner of that object and has a pointer to it.
38. Designated initializer makes sure that every...
do so in viewDidLoad
Encapsulation of functionality
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
instance variable of an object is valid
39. Use of class methods - there are three...
protocol
cannot be added to an array
alloc - singleton - informational utility method?
accessors - individually we call them 'getters' and 'setters'
40. An instance is a device for maintaining state. It's a box for _ of data.
Continue
@interface ClassName:SuperClassName
storage
rectangular
41. Property List...
parentViewController
viewWillDissapear: and viewWillAppear:
upper
collection of collections - NSArray of an NSArray
42. Files Owner...
Is a placeholder object
reuse your cells
Core Graphics Framework
CGRect bounds - GCPoint center - CGRect frame
43. UIView - designated initializer...
(id)initWithFrame:(CGRect)aRect;
create a XIB file
UIView
position
44. The only reason to temporarily own an object - is...
to give it someone else - or another object
super - self
safety - subclassability and makes code look more consistent with C structs
an object's property
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. Origin of a view's coordinate system is _ left
upper
message
retain
only the class and subclasses can access
47. 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
48. A view represents a _ area
rectangular
@synthesize
Abstraction
instance of UIView or one of its subclasses
49. In general - class methods tend to be factory methods - that is...
class's
methods for generating an instance
(id)initWithFrame:(CGRect)aRect;
superclass's
50. Only exists within the statement block there defined - outside of the block is fine
will be ignored
variable scope - if defined within a block
CF - Ref
lowercase - uppercase