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. Use of class methods - there are three...
NSLog routine
implementation
cannot be added to an array
alloc - singleton - informational utility method?
2. In the last line of an init method...
Is a placeholder object
you always return the newly initialized object(return self)
wait until the loop finishes processing the event - at the end release it
UIViewController
3. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
Maintenance of state
instance variables
Controller Objects[Managers]
object
4. In Cocoa Touch - the table view asks another object _ what it should display...
collection of collections - NSArray of an NSArray
retain
CGFloat
its dataSource
5. NSArray - class...
ordered collection of objects - immutable
define it in the implemenation file
initializer
size and position
6. initWithFrame: the designated initializer for UIView gives the view
ordered collection of objects - immutable
size and position
collection of collections - NSArray of an NSArray
nil
7. 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
8. Reference Counting...
setPossessionName
NSCoder
You take ownership for an object you want to keep a pointer to
parentViewController
9. Any individual object belonging to any class...
is an instance of that class
Core Graphics Framework
is called every time the event occurs
Generic object wrapper for other non-object data types
10. 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 _.
CGRect bounds
create a XIB file
receiving and handling events that are associated with it
nil
11. All objects are accessed using...
pointers
arguments[message]
setPossessionName
designated initializer
12. 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
(id)initWithFrame:(CGRect)aRect;
Used to find the time right now or to store past or future time/dates
Generic object wrapper for other non-object data types
13. 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.
first responder
its dataSource
protocol
ordered collection of objects - immutable
14. After accessors have been defined in the header file...
to get and set variables
they need to be defined in the implementation file
position
receiver[message]
15. Hold data and know nothing about the user interface
Model Objects[Factory Worker]
cannot be added to an array
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
Used to find the time right now or to store past or future time/dates
16. Only exists within the statement block there defined - outside of the block is fine
variable scope - if defined within a block
calling code that does the instantiation for you
will be ignored
upper
17. UIViewController has several methods that get called at certain times...
group of global functions already assigned to this class
nil
super - self
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
18. To load a Xib file manually - you use _
UIViewController
Anytime you call a method with new - alloc or copy. You own and must release that object.
NSBundle
CGRect
19. Just a floating point number - but we always use it for graphics.
NSBundle
CGFloat
NSLog routine
will be ignored
20. NSNumber - class...
class's
its dataSource
Object wrapper around primitive types like int - float - double - BOOl
CGRect bounds - GCPoint center - CGRect frame
21. 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.
rectangular
instance variables
selector[message]
message
22. A callback is a function that is supplied in advance of an event - and...
is called every time the event occurs
method
callbacks
subview(s)
23. When an NSMutableArray is deallocated - it sends...
initializer
the message release to all its entries
data
variable scope - if defined within a block
24. The only reason to temporarily own an object - is...
safety - subclassability and makes code look more consistent with C structs
reuse your cells
to give it someone else - or another object
instance of UIView or one of its subclasses
25. super - is used...
for inheritance - adopting the superclasses implementation
subview(s)
only the class and subclasses can access
variable scope - if defined within a block
26. id is a...
you always return the newly initialized object(return self)
pointer to an object
pointers
view
27. Why properties?
CGRect bounds
safety - subclassability and makes code look more consistent with C structs
Maintenance of state
self
28. Primitives and C Structures...
class methods - initializers
for inheritance - adopting the superclasses implementation
define it in the implemenation file
cannot be added to an array
29. if you implemented both the setter and getter - the @synthesize method...
Data Encapsulation
superclass's
calling code that does the instantiation for you
will be ignored
30. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
C Functionn
Instantiation from scratch
a mechanism to enable specific callbacks
Encapsulation of functionality
31. What does autorelease mean?
wait until the loop finishes processing the event - at the end release it
lowercase - uppercase
alloc - singleton - informational utility method?
instance variables
32. A command directed to an object is called an...
Controller Objects[Managers]
pointer - class
draw images
message
33. Class methods do not operate on an _ or have any access to _ variables....
delegates and dataSources
creates an instance of NSString that holds the character string
instance
pointer to an object
34. 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
receiver - selector - arguments
super - self
selector[message]
35. When an object is added to a NSMutableArray - that object is sent the message to retain;...
declaration and initialization of a variable
Core Graphics Framework
the array becomes an owner of that object and has a pointer to it.
storage
36. Reducing details to focus on the core concepts
super - self
Abstraction
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.
37. 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
38. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
C Functionn
a mechanism to enable specific callbacks
create a XIB file
Hash table - Look up objects using a key to get a value.
39. Proceed through the loop - jump back to the top and check again
Used to find the time right now or to store past or future time/dates
Continue
view
Object wrapper around primitive types like int - float - double - BOOl
40. [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.
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
group of global functions already assigned to this class
data
receiver - selector - arguments
41. UIView - designated initializer...
to give it someone else - or another object
dealloc - is called on the object & the object's memory is returned to the heap
an object's property
(id)initWithFrame:(CGRect)aRect;
42. Defining variables - three parts...
type - name and value
C Functionn
class's
only the class and subclasses can access
43. It's class is sent the message alloc - which creates an instance of that class and returns a pointer to it - and then that instance is sent the message init - which gives its instance variables initial values.
cannot be added to an array
receiver
creating an initializer
instance of UIView or one of its subclasses
44. NSArray - important methods...
CGRect
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
cannot be added to an array
you must import the header file of that class
45. NSValue - class...
an object's property
Generic object wrapper for other non-object data types
values
CGRect bounds
46. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
creating an initializer
define it in the implemenation file
new instances of the class or retrieve some global property of the class.
self
47. Also - because arrays only hold a pointer to an object...
Hash table - Look up objects using a key to get a value.
a mechanism to enable specific callbacks
a single-array can contain objects of different types
self
48. 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
49. Center and frame are used to _ your view
causes the program to immediately exit from the loop it is executing - whether its for - while or do
position
Maintenance of state
Is a placeholder object
50. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
CGRect
only the class and subclasses can access
initializers
arguments[message]