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. 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
2. Only exists within the statement block there defined - outside of the block is fine
define it in the implemenation file
NSCoder
variable scope - if defined within a block
view controller
3. When an object is removed from an NSMutableArray - that object is sent the message release;...
the array relinquishes ownership of that object and no longer has a pointer to it
the array becomes an owner of that object and has a pointer to it.
receiving and handling events that are associated with it
UIView
4. Why properties?
safety - subclassability and makes code look more consistent with C structs
you always return the newly initialized object(return self)
variable scope - if defined within a block
pointer to an object
5. A UITableView usually needs three different pieces...
Encapsulation of functionality
upper
data source - delegate and view controller
to give it someone else - or another object
6. Defining variables - three parts...
UIViewController
header files declare
Core Graphics Framework
type - name and value
7. 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.
super - self
implementation
Hash table - Look up objects using a key to get a value.
message
8. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
CGRect bounds
lowercase - uppercase
define it in the implemenation file
C Functionn
9. 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 _.
instance variables
rectangular
nil
Ready-Made Instance
10. A method in a _ is required unless its preceded by an @optional.
Model Objects[Factory Worker]
CGRect bounds
protocol
superclass's
11. 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
view controller
setPossessionName
Functions
you always return the newly initialized object(return self)
12. Typically the designated initializer has parameters for the most important and frequently used _ of an object
nil
they need to be defined in the implementation file
instance variables
initializers
13. 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...
its dataSource
is called every time the event occurs
setPossessionName
causes the program to immediately exit from the loop it is executing - whether its for - while or do
14. NSSet...
CF - Ref
unordered collection of objects - objects must be unique
callbacks
designated initializer
15. Files Owner...
class's
a mechanism to enable specific callbacks
accessors - individually we call them 'getters' and 'setters'
Is a placeholder object
16. The integer prefix is...
NSBundle
%d
group of global functions already assigned to this class
CF - Ref
17. When an NSMutableArray is deallocated - it sends...
receiver[message]
Controller Objects[Managers]
class
the message release to all its entries
18. Reference Counting...
Encapsulation of functionality
methods for generating an instance
collection of collections - NSArray of an NSArray
You take ownership for an object you want to keep a pointer to
19. A callback is a function that is supplied in advance of an event - and...
is called every time the event occurs
view controller
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
array[class - NSMutableArray]
20. In general - class methods tend to be factory methods - that is...
methods for generating an instance
array[class - NSMutableArray]
ready-made instances - instantiation from scratch - and nib based instantiation
Hash table - Look up objects using a key to get a value.
21. Each _ has a 'designated' initializer method....
class
values
first responder
subview(s)
22. 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....
define it in the implemenation file
UIViewController
the array relinquishes ownership of that object and no longer has a pointer to it
Continue
23. What does autorelease mean?
wait until the loop finishes processing the event - at the end release it
the instance variables
Anytime you call a method with new - alloc or copy. You own and must release that object.
only the innermost loop in which the break is executed is terminated
24. A delegate is a pointer to an object with a set of methods the delegate-holder knows how to call. In other words - it's _ from a later created object
a mechanism to enable specific callbacks
message
cannot be added to an array
C Functionn
25. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
the instance variables
object
creates an instance of NSString that holds the character string
calling code that does the instantiation for you
26. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
a single-array can contain objects of different types
position
@interface ClassName:SuperClassName
the instance variables
27. All objects are accessed using...
selector[message]
pointers
subview(s)
size and position
28. Also - because arrays only hold a pointer to an object...
position
a single-array can contain objects of different types
arguments[message]
declaration and initialization of a variable
29. Three ways instances are created...
pointers
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
ready-made instances - instantiation from scratch - and nib based instantiation
CGFloat
30. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
instance variables
define it in the implemenation file
super - self
new instances of the class or retrieve some global property of the class.
31. In Objective C arrays can hold only...
data
receiver
references to objects
NSCoder
32. NSString *s = @'Hello - World'; is an example of...
declaration and initialization of a variable
variable scope - if defined within a block
Object wrapper around primitive types like int - float - double - BOOl
in the dealloc - or when a Controller's view is 'unloaded'
33. A UITableViewController can fill all three roles of...
instance
lowercase - uppercase
draw images
data source - view controller and delegate
34. A view represents a _ area
they need to be defined in the implementation file
rectangular
You take ownership for an object you want to keep a pointer to
pointer to an object
35. A _ handles touch events.
Anytime you call a method with new - alloc or copy. You own and must release that object.
Core Graphics Framework
view
rectangular
36. @property - is using methods...
instance
to get and set variables
CGRect bounds - GCPoint center - CGRect frame
Anytime you call a method with new - alloc or copy. You own and must release that object.
37. The class is responsible for what instance variables the instance has - but not the _ of those variables.
references to objects
values
array[class - NSMutableArray]
draw images
38. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
declaration and initialization of a variable
initializer
receiver
size and position
39. A view is a subclass of _
ready-made instances - instantiation from scratch - and nib based instantiation
protocol
UIView
array[class - NSMutableArray]
40. Object Oriented based analogue to a function is called a...
Abstraction
superclass's
method
Continue
41. Number one use of protocols in iOS...
parentViewController
attributes - behavior
delegates and dataSources
you always return the newly initialized object(return self)
42. 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.
instance variables
method
Used to find the time right now or to store past or future time/dates
causes the program to immediately exit from the loop it is executing - whether its for - while or do
43. UIImageView is used to...
define it in the implemenation file
draw images
an object's property
ready-made instances - instantiation from scratch - and nib based instantiation
44. Hold data and know nothing about the user interface
Model Objects[Factory Worker]
for inheritance - adopting the superclasses implementation
safety - subclassability and makes code look more consistent with C structs
references to objects
45. If you have extra work you want to do on the view...
do so in viewDidLoad
ordered collection of objects - immutable
Instantiation from scratch
instance variables
46. 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
47. 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
48. An instance is a device for maintaining state. It's a box for _ of data.
is an instance of that class
object
callbacks
storage
49. A function in the objective c library that simply displays or logs it's argument
initializers
NSLog routine
@interface ClassName:SuperClassName
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
50. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
copy - retain
storage
initializers
data source - view controller and delegate