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. A view is a subclass of _
C Functionn
data source - delegate and view controller
UIView
ordered collection of objects - immutable
2. 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 _.
type - name and value
viewWillDissapear: and viewWillAppear:
group of global functions already assigned to this class
pointer - class
3. Delegation is an object oriented approach to
values
callbacks
is an instance of that class
method
4. Class methods do not operate on an _ or have any access to _ variables....
size and position
instance
upper
view
5. Object Oriented based analogue to a function is called a...
declaration and initialization of a variable
method
CGRect
the instance variables
6. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
lowercase - uppercase
ready-made instances - instantiation from scratch - and nib based instantiation
receiving and handling events that are associated with it
position
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. All objects are accessed using...
pointers
create a XIB file
data source - delegate and view controller
they need to be defined in the implementation file
9. After accessors have been defined in the header file...
they need to be defined in the implementation file
causes the program to immediately exit from the loop it is executing - whether its for - while or do
'getters' and 'setters'
safety - subclassability and makes code look more consistent with C structs
10. Execution of the break statement...
causes the program to immediately exit from the loop it is executing - whether its for - while or do
instance
has one root view controller
@interface ClassName:SuperClassName
11. Typically the designated initializer has parameters for the most important and frequently used _ of an object
instance variables
retain
pointer - class
you always return the newly initialized object(return self)
12. Property List...
CF - Ref
collection of collections - NSArray of an NSArray
methods for generating an instance
header files declare
13. class methods...
methods
group of global functions already assigned to this class
declaration and initialization of a variable
NSLog routine
14. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
data
super - self
UIView
size and position
15. In any application with UINavigationController - the navigation controller...
array[class - NSMutableArray]
CF - Ref
has one root view controller
C Functionn
16. If the view has no subviews - create it programmatically; if it has subviews
protocol
parentViewController
viewWillDissapear: and viewWillAppear:
create a XIB file
17. Core foundation classes are prefixed with _ and suffixed with _
class
CF - Ref
create a XIB file
self
18. NSDate - class...
CGRect bounds
Abstraction
Instantiation from scratch
Used to find the time right now or to store past or future time/dates
19. @property - is using methods...
cannot be added to an array
to get and set variables
view
UIView
20. UIViewController has several methods that get called at certain times...
define it in the implemenation file
'getters' and 'setters'
instance variables
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
21. The only reason to temporarily own an object - is...
methods for generating an instance
super - self
to give it someone else - or another object
position
22. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
array[class - NSMutableArray]
CGRect bounds - GCPoint center - CGRect frame
the message release to all its entries
CGRect
23. Primitives and C Structures...
Hash table - Look up objects using a key to get a value.
cannot be added to an array
C Functionn
receiver - selector - arguments
24. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
the array becomes an owner of that object and has a pointer to it.
Maintenance of state
@synthesize
Instantiation from scratch
25. To load a Xib file manually - you use _
the array becomes an owner of that object and has a pointer to it.
You take ownership for an object you want to keep a pointer to
NSBundle
unordered collection of objects - objects must be unique
26. UIView - designated initializer...
instance variables
(id)initWithFrame:(CGRect)aRect;
instance
creating an initializer
27. If a break statement is executed from within a set of nested loops...
only the innermost loop in which the break is executed is terminated
callbacks
you must import the header file of that class
creates an instance of NSString that holds the character string
28. You use _ to implement the view
ready-made instances - instantiation from scratch - and nib based instantiation
CGRect bounds
Is a placeholder object
storage
29. Just a floating point number - but we always use it for graphics.
Controller Objects[Managers]
receiver[message]
Continue
CGFloat
30. Each class picks one _ as it's designated initializer....
new instances of the class or retrieve some global property of the class.
initializer
Hash table - Look up objects using a key to get a value.
methods
31. What does autorelease mean?
NSBundle
Core Graphics Framework
you always return the newly initialized object(return self)
wait until the loop finishes processing the event - at the end release it
32. UITableViewController is a subclass of...
UIViewController
will be ignored
causes the program to immediately exit from the loop it is executing - whether its for - while or do
collection of collections - NSArray of an NSArray
33. Name of the method to be executed
selector[message]
a single-array can contain objects of different types
an object's property
upper
34. Origin of a view's coordinate system is _ left
size and position
upper
receiver - selector - arguments
data source - delegate and view controller
35. 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...
data source - view controller and delegate
setPossessionName
they need to be defined in the implementation file
CGRect
36. 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
'getters' and 'setters'
super - self
Maintenance of state
attributes - behavior
37. A callback is a function that is supplied in advance of an event - and...
is called every time the event occurs
pointer to an object
initializer
Controller Objects[Managers]
38. 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
39. NSDictionary...
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
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
create a XIB file
40. Ready-made instances...
CGFloat
instance of UIView or one of its subclasses
calling code that does the instantiation for you
to give it someone else - or another object
41. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
arguments[message]
initializers
wait until the loop finishes processing the event - at the end release it
create a XIB file
42. In Objective C arrays can hold only...
methods
references to objects
Core Graphics Framework
has one root view controller
43. super - is used...
Anytime you call a method with new - alloc or copy. You own and must release that object.
Abstraction
for inheritance - adopting the superclasses implementation
initializer
44. Each _ has a 'designated' initializer method....
class
nil
Core Graphics Framework
Continue
45. NSArray - important methods...
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
method
new instances of the class or retrieve some global property of the class.
is an instance of that class
46. Three ways instances are created...
ready-made instances - instantiation from scratch - and nib based instantiation
CGRect bounds - GCPoint center - CGRect frame
collection of collections - NSArray of an NSArray
instance
47. 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
methods for generating an instance
class methods - initializers
storage
48. Number one use of protocols in iOS...
receiving and handling events that are associated with it
calling code that does the instantiation for you
pointer - class
delegates and dataSources
49. 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
implementation
the array relinquishes ownership of that object and no longer has a pointer to it
unordered collection of objects - objects must be unique
50. It's class is sent the message alloc - which creates an instance of that class and returns a pointer to it - and then that instance is sent the message init - which gives its instance variables initial values.
cannot be added to an array
parentViewController
upper
creating an initializer