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. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
(id)initWithFrame:(CGRect)aRect;
message
Instantiation from scratch
you must import the header file of that class
2. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
class
retain
message
initializers
3. Class methods do not operate on an _ or have any access to _ variables....
lowercase - uppercase
CGRect
instance
rectangular
4. Property List...
designated initializer
receiver - selector - arguments
collection of collections - NSArray of an NSArray
view controller
5. Proceed through the loop - jump back to the top and check again
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
to give it someone else - or another object
object
Continue
6. NSNumber - class...
@synthesize
will be ignored
Object wrapper around primitive types like int - float - double - BOOl
CGRect
7. At the top of any implementation file...
NSLog routine
instance variables
you must import the header file of that class
callbacks
8. Files Owner...
Is a placeholder object
an object's property
super - self
class
9. id is a...
first responder
designated initializer
pointer to an object
CGRect bounds
10. NSValue - class...
Generic object wrapper for other non-object data types
viewWillDissapear: and viewWillAppear:
instance of UIView or one of its subclasses
the instance variables
11. In the last line of an init method...
you always return the newly initialized object(return self)
its dataSource
viewWillDissapear: and viewWillAppear:
group of global functions already assigned to this class
12. Hold data and know nothing about the user interface
Model Objects[Factory Worker]
values
Functions
methods for generating an instance
13. In Cocoa Touch - the table view asks another object _ what it should display...
define it in the implemenation file
message
its dataSource
do so in viewDidLoad
14. Any individual object belonging to any class...
methods for generating an instance
cannot be added to an array
is an instance of that class
instance variable of an object is valid
15. Delegation is an object oriented approach to
Functions
callbacks
Maintenance of state
values
16. In Objective C arrays can hold only...
instance
methods
references to objects
implementation
17. NSDate - class...
Used to find the time right now or to store past or future time/dates
method
retain
@synthesize
18. A callback is a function that is supplied in advance of an event - and...
upper
is called every time the event occurs
an object's property
you must import the header file of that class
19. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
reuse your cells
receiver
callbacks
Generic object wrapper for other non-object data types
20. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
super - self
instance of UIView or one of its subclasses
delegates and dataSources
references to objects
21. Reducing details to focus on the core concepts
Abstraction
draw images
unordered collection of objects - objects must be unique
data source - view controller and delegate
22. When an object is added to a NSMutableArray - that object is sent the message to retain;...
type - name and value
the array becomes an owner of that object and has a pointer to it.
the instance variables
only the class and subclasses can access
23. You use _ to implement the view
CGRect bounds
NSCoder
protocol
Object wrapper around primitive types like int - float - double - BOOl
24. If you have extra work you want to do on the view...
Abstraction
do so in viewDidLoad
the message release to all its entries
for inheritance - adopting the superclasses implementation
25. UITableViewController is a subclass of...
Model Objects[Factory Worker]
UIViewController
its dataSource
declaration and initialization of a variable
26. 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
initializer
receiving and handling events that are associated with it
its dataSource
parentViewController
27. 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
28. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
@interface ClassName:SuperClassName
Continue
data source - view controller and delegate
object
29. A view is a subclass of _
values
UIView
type - name and value
object
30. class methods...
group of global functions already assigned to this class
pointer to an object
class's
CF - Ref
31. A UITableViewController can fill all three roles of...
data source - view controller and delegate
Functions
is an instance of that class
instance of UIView or one of its subclasses
32. Number one use of protocols in iOS...
first responder
delegates and dataSources
pointer - class
Abstraction
33. A method in a _ is required unless its preceded by an @optional.
storage
Is a placeholder object
receiver
protocol
34. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
values
subview(s)
NSCoder
class methods - initializers
35. Values to be supplied as the parameters to the method
arguments[message]
Anytime you call a method with new - alloc or copy. You own and must release that object.
Encapsulation of functionality
only the class and subclasses can access
36. A responder is responsible for...
receiving and handling events that are associated with it
lowercase - uppercase
safety - subclassability and makes code look more consistent with C structs
receiver
37. Why properties?
lowercase - uppercase
rectangular
safety - subclassability and makes code look more consistent with C structs
for inheritance - adopting the superclasses implementation
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
unordered collection of objects - objects must be unique
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
Functions
group of global functions already assigned to this class
39. If the view has no subviews - create it programmatically; if it has subviews
create a XIB file
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
Instantiation from scratch
designated initializer
40. Instance Variables by default are called @protected meaning...
size and position
to give it someone else - or another object
the instance variables
only the class and subclasses can access
41. 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....
class methods - initializers
instance variables
size and position
define it in the implemenation file
42. Only exists within the statement block there defined - outside of the block is fine
message
CGRect
variable scope - if defined within a block
message
43. The integer prefix is...
CGRect bounds
is called every time the event occurs
%d
for inheritance - adopting the superclasses implementation
44. What happens when the last owner calls release?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
45. Execution of the break statement...
instance variable of an object is valid
wait until the loop finishes processing the event - at the end release it
causes the program to immediately exit from the loop it is executing - whether its for - while or do
instance variables
46. Core foundation classes are prefixed with _ and suffixed with _
Object wrapper around primitive types like int - float - double - BOOl
CF - Ref
message
receiver - selector - arguments
47. In any application with UINavigationController - the navigation controller...
NSCoder
has one root view controller
they need to be defined in the implementation file
view controller
48. The class is responsible for what instance variables the instance has - but not the _ of those variables.
nil
safety - subclassability and makes code look more consistent with C structs
values
upper
49. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
lowercase - uppercase
group of global functions already assigned to this class
@interface ClassName:SuperClassName
viewWillDissapear: and viewWillAppear:
50. UIViewController has several methods that get called at certain times...
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
NSBundle
attributes - behavior
collection of collections - NSArray of an NSArray