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. Name of the method to be executed
selector[message]
Generic object wrapper for other non-object data types
methods for generating an instance
you always return the newly initialized object(return self)
2. 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
3. Reference Counting...
data source - view controller and delegate
variable scope - if defined within a block
You take ownership for an object you want to keep a pointer to
first responder
4. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
NSCoder
data source - view controller and delegate
storage
receiving and handling events that are associated with it
5. Typically the designated initializer has parameters for the most important and frequently used _ of an object
UIViewController
initializers
instance variables
pointers
6. Whenever a UINavigationController is about to swap views - it sends out two messages
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
the array becomes an owner of that object and has a pointer to it.
viewWillDissapear: and viewWillAppear:
class's
7. 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 _.
accessors - individually we call them 'getters' and 'setters'
super - self
subview(s)
draw images
8. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
object
values
you always return the newly initialized object(return self)
collection of collections - NSArray of an NSArray
9. UITableViewController is a subclass of...
@synthesize
methods for generating an instance
pointer to an object
UIViewController
10. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
method
initializers
unordered collection of objects - objects must be unique
an object's property
11. Hold data and know nothing about the user interface
instance variable of an object is valid
Continue
Model Objects[Factory Worker]
references to objects
12. Three ways instances are created...
causes the program to immediately exit from the loop it is executing - whether its for - while or do
viewWillDissapear: and viewWillAppear:
you always return the newly initialized object(return self)
ready-made instances - instantiation from scratch - and nib based instantiation
13. Only exists within the statement block there defined - outside of the block is fine
copy - retain
its dataSource
UIView
variable scope - if defined within a block
14. @property declares - and _ implements the setter and getter...
has one root view controller
references to objects
@synthesize
view controller's initialization method
15. Files Owner...
Object wrapper around primitive types like int - float - double - BOOl
the array becomes an owner of that object and has a pointer to it.
creates an instance of NSString that holds the character string
Is a placeholder object
16. [Instance Variables] The code it gets from its class and in a sense is shared with all other instances of that class - but the _ belong to it alone.
first responder
data
header files declare
message
17. Center and frame are used to _ your view
the message release to all its entries
position
Instantiation from scratch
Maintenance of state
18. A message is always contained in square brackets - and has three parts
has one root view controller
receiver - selector - arguments
reuse your cells
view controller's initialization method
19. 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.
implementation
view controller
methods
superclass's
20. Use of class methods - there are three...
Functions
pointer - class
alloc - singleton - informational utility method?
the message release to all its entries
21. When do you take ownership?...
Anytime you call a method with new - alloc or copy. You own and must release that object.
to give it someone else - or another object
nil
Hash table - Look up objects using a key to get a value.
22. A method in a _ is required unless its preceded by an @optional.
arguments[message]
size and position
protocol
unordered collection of objects - objects must be unique
23. @property - is using methods...
array[class - NSMutableArray]
to get and set variables
initializers
attributes - behavior
24. A UITableViewController can fill all three roles of...
data source - view controller and delegate
the array relinquishes ownership of that object and no longer has a pointer to it
CGRect bounds - GCPoint center - CGRect frame
wait until the loop finishes processing the event - at the end release it
25. NSDate - class...
Abstraction
Used to find the time right now or to store past or future time/dates
view
ready-made instances - instantiation from scratch - and nib based instantiation
26. A function in the objective c library that simply displays or logs it's argument
protocol
subview(s)
callbacks
NSLog routine
27. UIViewController has several methods that get called at certain times...
Core Graphics Framework
super - self
is called every time the event occurs
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
28. 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
retain
Core Graphics Framework
29. A view represents a _ area
viewWillDissapear: and viewWillAppear:
the array becomes an owner of that object and has a pointer to it.
view
rectangular
30. A responder is responsible for...
view
delegates and dataSources
first responder
receiving and handling events that are associated with it
31. Why properties?
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
Object wrapper around primitive types like int - float - double - BOOl
safety - subclassability and makes code look more consistent with C structs
to give it someone else - or another object
32. In any application with UINavigationController - the navigation controller...
class's
has one root view controller
pointers
unordered collection of objects - objects must be unique
33. Defining variables - three parts...
size and position
safety - subclassability and makes code look more consistent with C structs
only the innermost loop in which the break is executed is terminated
type - name and value
34. Views have three properties related to their location and size: @property _ _;
for inheritance - adopting the superclasses implementation
CGRect bounds - GCPoint center - CGRect frame
creates an instance of NSString that holds the character string
data source - view controller and delegate
35. If you have extra work you want to do on the view...
the array becomes an owner of that object and has a pointer to it.
cannot be added to an array
wait until the loop finishes processing the event - at the end release it
do so in viewDidLoad
36. NSString *s = @'Hello - World'; is an example of...
they need to be defined in the implementation file
will be ignored
declaration and initialization of a variable
Encapsulation of functionality
37. Object Oriented based analogue to a function is called a...
method
creating an initializer
CGRect bounds
parentViewController
38. A callback is a function that is supplied in advance of an event - and...
Functions
an object's property
Is a placeholder object
is called every time the event occurs
39. 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
40. NSValue - class...
the array becomes an owner of that object and has a pointer to it.
wait until the loop finishes processing the event - at the end release it
receiver[message]
Generic object wrapper for other non-object data types
41. After accessors have been defined in the header file...
is an instance of that class
they need to be defined in the implementation file
pointer to an object
callbacks
42. A _ handles touch events.
cannot be added to an array
view
CGRect bounds - GCPoint center - CGRect frame
instance variables
43. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
type - name and value
(id)initWithFrame:(CGRect)aRect;
Ready-Made Instance
You take ownership for an object you want to keep a pointer to
44. UIView - designated initializer...
array[class - NSMutableArray]
header files declare
(id)initWithFrame:(CGRect)aRect;
they need to be defined in the implementation file
45. Just a floating point number - but we always use it for graphics.
CGFloat
retain
causes the program to immediately exit from the loop it is executing - whether its for - while or do
values
46. When an object is added to a NSMutableArray - that object is sent the message to retain;...
the array becomes an owner of that object and has a pointer to it.
pointer to an object
receiver[message]
UIView
47. if you implemented both the setter and getter - the @synthesize method...
Generic object wrapper for other non-object data types
CGRect bounds - GCPoint center - CGRect frame
will be ignored
Object wrapper around primitive types like int - float - double - BOOl
48. 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 _.
attributes - behavior
nil
for inheritance - adopting the superclasses implementation
(id)initWithFrame:(CGRect)aRect;
49. super - is used...
Hash table - Look up objects using a key to get a value.
reuse your cells
for inheritance - adopting the superclasses implementation
Controller Objects[Managers]
50. NSArray - important methods...
unordered collection of objects - objects must be unique
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
type - name and value
receiver - selector - arguments