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. UIViewController has several methods that get called at certain times...
CGRect bounds
declaration and initialization of a variable
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
Maintenance of state
2. 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
3. A collection object - an ordered list of objects that can be accesed by an index
to give it someone else - or another object
header files declare
array[class - NSMutableArray]
Hash table - Look up objects using a key to get a value.
4. Also - because arrays only hold a pointer to an object...
array[class - NSMutableArray]
Used to find the time right now or to store past or future time/dates
data source - view controller and delegate
a single-array can contain objects of different types
5. NSValue - class...
CGRect
CGRect bounds
draw images
Generic object wrapper for other non-object data types
6. Just a floating point number - but we always use it for graphics.
CGFloat
(id)initWithFrame:(CGRect)aRect;
nil
Used to find the time right now or to store past or future time/dates
7. After accessors have been defined in the header file...
CGRect bounds
CGRect
they need to be defined in the implementation file
initializer
8. 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
9. Also if you send the NSObject the _ message - you own that object.
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
CGFloat
data source - delegate and view controller
retain
10. When an object is added to a NSMutableArray - that object is sent the message to retain;...
a single-array can contain objects of different types
pointer to an object
the array becomes an owner of that object and has a pointer to it.
values
11. A command directed to an object is called an...
dealloc - is called on the object & the object's memory is returned to the heap
methods for generating an instance
size and position
message
12. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
parentViewController
instance variables
to give it someone else - or another object
super - self
13. In a class method you cannot access...
view
the instance variables
arguments[message]
Generic object wrapper for other non-object data types
14. An instance is a device for maintaining state. It's a box for _ of data.
storage
Is a placeholder object
array[class - NSMutableArray]
superclass's
15. 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 _.
instance variables
is called every time the event occurs
has one root view controller
subview(s)
16. 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
Functions
type - name and value
pointer - class
You take ownership for an object you want to keep a pointer to
17. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
self
creates an instance of NSString that holds the character string
instance of UIView or one of its subclasses
cannot be added to an array
18. 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
19. A message is always contained in square brackets - and has three parts
receiver - selector - arguments
methods for generating an instance
storage
CF - Ref
20. When an object is removed from an NSMutableArray - that object is sent the message release;...
initializer
the instance variables
the array relinquishes ownership of that object and no longer has a pointer to it
NSBundle
21. Object Oriented based analogue to a function is called a...
a single-array can contain objects of different types
a mechanism to enable specific callbacks
method
receiver
22. 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.
receiving and handling events that are associated with it
type - name and value
implementation
size and position
23. 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
Encapsulation of functionality
Generic object wrapper for other non-object data types
a mechanism to enable specific callbacks
retain
24. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
variable scope - if defined within a block
CGRect
class
'getters' and 'setters'
25. Property List...
wait until the loop finishes processing the event - at the end release it
collection of collections - NSArray of an NSArray
viewWillDissapear: and viewWillAppear:
@synthesize
26. The class is responsible for what instance variables the instance has - but not the _ of those variables.
designated initializer
protocol
Object wrapper around primitive types like int - float - double - BOOl
values
27. Center and frame are used to _ your view
the array relinquishes ownership of that object and no longer has a pointer to it
methods
'getters' and 'setters'
position
28. Ready-made instances...
calling code that does the instantiation for you
message
NSLog routine
instance of UIView or one of its subclasses
29. When the message endEditing: is sent to a view - if it or any of its subviews or currently the _ - it will resign its first responder statues - and the keyboard will be dismissed.
CGRect bounds
first responder
calling code that does the instantiation for you
implementation
30. @property declares - and _ implements the setter and getter...
@synthesize
Is a placeholder object
CGRect
class's
31. NSDictionary...
to give it someone else - or another object
Hash table - Look up objects using a key to get a value.
arguments[message]
causes the program to immediately exit from the loop it is executing - whether its for - while or do
32. Use of class methods - there are three...
Object wrapper around primitive types like int - float - double - BOOl
Data Encapsulation
alloc - singleton - informational utility method?
self
33. NSDate - class...
pointer to an object
Continue
super - self
Used to find the time right now or to store past or future time/dates
34. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
array[class - NSMutableArray]
lowercase - uppercase
Generic object wrapper for other non-object data types
instance variables
35. 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
Encapsulation of functionality
Maintenance of state
the instance variables
position
36. NSArray - class...
variable scope - if defined within a block
storage
ordered collection of objects - immutable
class methods - initializers
37. When do you take ownership?...
pointer - class
methods
Anytime you call a method with new - alloc or copy. You own and must release that object.
variable scope - if defined within a block
38. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
Functions
object
instance
Model Objects[Factory Worker]
39. In general - class methods tend to be factory methods - that is...
methods for generating an instance
NSCoder
receiving and handling events that are associated with it
instance variables
40. At the top of any implementation file...
you must import the header file of that class
its dataSource
Instantiation from scratch
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
41. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
Instantiation from scratch
Ready-Made Instance
method
pointer - class
42. Whenever a UINavigationController is about to swap views - it sends out two messages
CGRect bounds
selector[message]
viewWillDissapear: and viewWillAppear:
self
43. Core foundation classes are prefixed with _ and suffixed with _
array[class - NSMutableArray]
is called every time the event occurs
references to objects
CF - Ref
44. If a break statement is executed from within a set of nested loops...
the array becomes an owner of that object and has a pointer to it.
only the innermost loop in which the break is executed is terminated
class methods - initializers
they need to be defined in the implementation file
45. How do I implement my drawRect?
values
instance of UIView or one of its subclasses
view controller's initialization method
Core Graphics Framework
46. Values to be supplied as the parameters to the method
arguments[message]
Functions
pointers
unordered collection of objects - objects must be unique
47. Class methods do not operate on an _ or have any access to _ variables....
receiver - selector - arguments
%d
selector[message]
instance
48. Any other initializer a class has calls the _ designated initializer....
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
49. UIView - designated initializer...
You take ownership for an object you want to keep a pointer to
receiver
@interface ClassName:SuperClassName
(id)initWithFrame:(CGRect)aRect;
50. 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