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. 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.
Ready-Made Instance
unordered collection of objects - objects must be unique
implementation
variable scope - if defined within a block
2. Three ways instances are created...
Controller Objects[Managers]
create a XIB file
the array becomes an owner of that object and has a pointer to it.
ready-made instances - instantiation from scratch - and nib based instantiation
3. In any application with UINavigationController - the navigation controller...
Abstraction
class methods - initializers
first responder
has one root view controller
4. 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
5. if you implemented both the setter and getter - the @synthesize method...
you must import the header file of that class
instance
will be ignored
subview(s)
6. 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
7. A pointer to the object being asked to execute a method
Anytime you call a method with new - alloc or copy. You own and must release that object.
references to objects
in the dealloc - or when a Controller's view is 'unloaded'
receiver[message]
8. 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.
Data Encapsulation
implementation
pointer - class
Maintenance of state
9. Use of class methods - there are three...
class
alloc - singleton - informational utility method?
arguments[message]
data
10. Just a floating point number - but we always use it for graphics.
CGFloat
safety - subclassability and makes code look more consistent with C structs
the instance variables
methods
11. Proceed through the loop - jump back to the top and check again
copy - retain
storage
Continue
object
12. NSArray - class...
ordered collection of objects - immutable
in the dealloc - or when a Controller's view is 'unloaded'
parentViewController
declaration and initialization of a variable
13. All objects are accessed using...
class's
parentViewController
instance
pointers
14. A command directed to an object is called an...
ordered collection of objects - immutable
@interface ClassName:SuperClassName
draw images
message
15. The root view controller typically creates the next view controller - and the next _ creates the one after that
the message release to all its entries
methods
view controller
receiving and handling events that are associated with it
16. 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 _.
you must import the header file of that class
initializers
wait until the loop finishes processing the event - at the end release it
nil
17. What does autorelease mean?
wait until the loop finishes processing the event - at the end release it
its dataSource
super - self
CGRect bounds - GCPoint center - CGRect frame
18. 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
method
the instance variables
creates an instance of NSString that holds the character string
parentViewController
19. A collection object - an ordered list of objects that can be accesed by an index
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
retain
array[class - NSMutableArray]
pointers
20. @property declares - and _ implements the setter and getter...
@synthesize
message
NSBundle
size and position
21. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
Hash table - Look up objects using a key to get a value.
class
designated initializer
Instantiation from scratch
22. When an object is added to a NSMutableArray - that object is sent the message to retain;...
values
arguments[message]
the array becomes an owner of that object and has a pointer to it.
in the dealloc - or when a Controller's view is 'unloaded'
23. 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
24. super - is used...
CGFloat
@interface ClassName:SuperClassName
safety - subclassability and makes code look more consistent with C structs
for inheritance - adopting the superclasses implementation
25. In Cocoa Touch - the table view asks another object _ what it should display...
its dataSource
method
first responder
Anytime you call a method with new - alloc or copy. You own and must release that object.
26. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
receiver
draw images
receiver - selector - arguments
self
27. NSDate - class...
for inheritance - adopting the superclasses implementation
Used to find the time right now or to store past or future time/dates
alloc - singleton - informational utility method?
instance variable of an object is valid
28. Center and frame are used to _ your view
position
CGRect bounds - GCPoint center - CGRect frame
to give it someone else - or another object
you always return the newly initialized object(return self)
29. An instance is a device for maintaining state. It's a box for _ of data.
@synthesize
storage
Abstraction
initializer
30. Only exists within the statement block there defined - outside of the block is fine
Data Encapsulation
collection of collections - NSArray of an NSArray
has one root view controller
variable scope - if defined within a block
31. Classes describe two things...
method
Used to find the time right now or to store past or future time/dates
attributes - behavior
size and position
32. 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....
CGFloat
CGRect bounds - GCPoint center - CGRect frame
define it in the implemenation file
NSCoder
33. A function in the objective c library that simply displays or logs it's argument
pointer to an object
CF - Ref
NSLog routine
ready-made instances - instantiation from scratch - and nib based instantiation
34. If a break statement is executed from within a set of nested loops...
class's
only the innermost loop in which the break is executed is terminated
pointers
implementation
35. A view represents a _ area
NSBundle
receiver
instance variables
rectangular
36. NSValue - class...
is an instance of that class
Generic object wrapper for other non-object data types
CF - Ref
group of global functions already assigned to this class
37. 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
38. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
you must import the header file of that class
position
NSCoder
will be ignored
39. Number one use of protocols in iOS...
delegates and dataSources
NSCoder
variable scope - if defined within a block
type - name and value
40. Any individual object belonging to any class...
is an instance of that class
(id)initWithFrame:(CGRect)aRect;
delegates and dataSources
only the class and subclasses can access
41. When making a tableView always...
Maintenance of state
safety - subclassability and makes code look more consistent with C structs
reuse your cells
instance variables
42. Delegation is an object oriented approach to
the instance variables
define it in the implemenation file
receiver
callbacks
43. Never access a view controller's view in that...
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
44. 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
Instantiation from scratch
Encapsulation of functionality
Functions
message
45. Name of the method to be executed
selector[message]
creating an initializer
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
CF - Ref
46. The class is responsible for what instance variables the instance has - but not the _ of those variables.
variable scope - if defined within a block
a single-array can contain objects of different types
values
C Functionn
47. If you have extra work you want to do on the view...
class
do so in viewDidLoad
first responder
message
48. 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
49. In general - class methods tend to be factory methods - that is...
NSBundle
a mechanism to enable specific callbacks
reuse your cells
methods for generating an instance
50. A callback is a function that is supplied in advance of an event - and...
safety - subclassability and makes code look more consistent with C structs
you must import the header file of that class
is called every time the event occurs
message