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. NSString objects are usually sent _ rather than _...
message
initializer
group of global functions already assigned to this class
copy - retain
2. NSNumber - class...
instance variables
Core Graphics Framework
Object wrapper around primitive types like int - float - double - BOOl
methods
3. Core foundation classes are prefixed with _ and suffixed with _
class
Encapsulation of functionality
Ready-Made Instance
CF - Ref
4. A responder is responsible for...
'getters' and 'setters'
receiving and handling events that are associated with it
alloc - singleton - informational utility method?
ready-made instances - instantiation from scratch - and nib based instantiation
5. In the last line of an init method...
you always return the newly initialized object(return self)
Hash table - Look up objects using a key to get a value.
ordered collection of objects - immutable
message
6. Asking a class or object to execute a method
message
rectangular
creates an instance of NSString that holds the character string
self
7. 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.
you always return the newly initialized object(return self)
protocol
instance variables
the instance variables
8. Proceed through the loop - jump back to the top and check again
NSBundle
accessors - individually we call them 'getters' and 'setters'
Continue
parentViewController
9. 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.
header files declare
'getters' and 'setters'
@interface ClassName:SuperClassName
10. 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
11. If you have extra work you want to do on the view...
do so in viewDidLoad
class methods - initializers
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
storage
12. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
Maintenance of state
CGRect bounds - GCPoint center - CGRect frame
lowercase - uppercase
view
13. You use _ to implement the view
CGRect
pointer to an object
draw images
CGRect bounds
14. The integer prefix is...
dealloc - is called on the object & the object's memory is returned to the heap
%d
class's
Used to find the time right now or to store past or future time/dates
15. In a class method you cannot access...
type - name and value
UIViewController
retain
the instance variables
16. When an object is removed from an NSMutableArray - that object is sent the message release;...
a mechanism to enable specific callbacks
the array relinquishes ownership of that object and no longer has a pointer to it
copy - retain
object
17. When making a tableView always...
UIViewController
(id)initWithFrame:(CGRect)aRect;
for inheritance - adopting the superclasses implementation
reuse your cells
18. A view is a subclass of _
message
Hash table - Look up objects using a key to get a value.
UIView
size and position
19. super - is used...
for inheritance - adopting the superclasses implementation
protocol
calling code that does the instantiation for you
alloc - singleton - informational utility method?
20. A method in a _ is required unless its preceded by an @optional.
class
protocol
UIView
the array relinquishes ownership of that object and no longer has a pointer to it
21. A collection object - an ordered list of objects that can be accesed by an index
upper
array[class - NSMutableArray]
receiver[message]
do so in viewDidLoad
22. Designated initializer makes sure that every...
instance variable of an object is valid
retain
accessors - individually we call them 'getters' and 'setters'
for inheritance - adopting the superclasses implementation
23. Only exists within the statement block there defined - outside of the block is fine
variable scope - if defined within a block
copy - retain
you must import the header file of that class
creating an initializer
24. 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....
you always return the newly initialized object(return self)
the array becomes an owner of that object and has a pointer to it.
superclass's
define it in the implemenation file
25. In Cocoa Touch - the table view asks another object _ what it should display...
class's
receiving and handling events that are associated with it
for inheritance - adopting the superclasses implementation
its dataSource
26. 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
new instances of the class or retrieve some global property of the class.
causes the program to immediately exit from the loop it is executing - whether its for - while or do
CGRect bounds - GCPoint center - CGRect frame
27. 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.
You take ownership for an object you want to keep a pointer to
Encapsulation of functionality
first responder
Maintenance of state
28. The root view controller typically creates the next view controller - and the next _ creates the one after that
view controller
receiver - selector - arguments
an object's property
the array becomes an owner of that object and has a pointer to it.
29. The class is responsible for what instance variables the instance has - but not the _ of those variables.
values
methods for generating an instance
storage
designated initializer
30. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
%d
Functions
ready-made instances - instantiation from scratch - and nib based instantiation
class methods - initializers
31. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
Maintenance of state
message
its dataSource
CGRect
32. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
variable scope - if defined within a block
self
wait until the loop finishes processing the event - at the end release it
CGRect bounds
33. class methods...
receiving and handling events that are associated with it
methods for generating an instance
creating an initializer
group of global functions already assigned to this class
34. Each _ has a 'designated' initializer method....
rectangular
class
UIViewController
delegates and dataSources
35. Instance Variables by default are called @protected meaning...
only the class and subclasses can access
Continue
subview(s)
instance
36. Origin of a view's coordinate system is _ left
define it in the implemenation file
reuse your cells
upper
nil
37. id is a...
pointer to an object
upper
C Functionn
in the dealloc - or when a Controller's view is 'unloaded'
38. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
an object's property
a single-array can contain objects of different types
Instantiation from scratch
viewWillDissapear: and viewWillAppear:
39. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
@interface ClassName:SuperClassName
data
size and position
Object wrapper around primitive types like int - float - double - BOOl
40. Ready-made instances...
NSCoder
do so in viewDidLoad
calling code that does the instantiation for you
@interface ClassName:SuperClassName
41. Number one use of protocols in iOS...
delegates and dataSources
view
is an instance of that class
super - self
42. A message is always contained in square brackets - and has three parts
C Functionn
new instances of the class or retrieve some global property of the class.
CGFloat
receiver - selector - arguments
43. 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.
'getters' and 'setters'
%d
position
implementation
44. Primitives and C Structures...
declaration and initialization of a variable
arguments[message]
Object wrapper around primitive types like int - float - double - BOOl
cannot be added to an array
45. Reducing details to focus on the core concepts
(id)initWithFrame:(CGRect)aRect;
Abstraction
self
is called every time the event occurs
46. In Objective C arrays can hold only...
references to objects
create a XIB file
selector[message]
Abstraction
47. All objects are accessed using...
Generic object wrapper for other non-object data types
pointers
reuse your cells
method
48. NSValue - class...
Generic object wrapper for other non-object data types
class's
define it in the implemenation file
first responder
49. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
implementation
view controller's initialization method
only the innermost loop in which the break is executed is terminated
Controller Objects[Managers]
50. A pointer to the object being asked to execute a method
retain
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
receiver[message]
unordered collection of objects - objects must be unique