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. NSArray - class...
'getters' and 'setters'
first responder
ordered collection of objects - immutable
method
2. NSNumber - class...
nil
Object wrapper around primitive types like int - float - double - BOOl
type - name and value
reuse your cells
3. Execution of the break statement...
protocol
causes the program to immediately exit from the loop it is executing - whether its for - while or do
methods for generating an instance
instance
4. A command directed to an object is called an...
selector[message]
is an instance of that class
NSLog routine
message
5. In general - in Objective-C - a reference to an instance is a _ - and the name of the data type of what's at the far end of that pointer is the name of the instances's _.
an object's property
calling code that does the instantiation for you
a mechanism to enable specific callbacks
pointer - class
6. 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
7. @property - is using methods...
to get and set variables
CGRect
methods for generating an instance
setPossessionName
8. A collection object - an ordered list of objects that can be accesed by an index
class's
array[class - NSMutableArray]
to give it someone else - or another object
lowercase - uppercase
9. 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
10. 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
nil
parentViewController
Functions
CGRect
11. When an NSMutableArray is deallocated - it sends...
the message release to all its entries
class
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
draw images
12. NSValue - class...
subview(s)
Generic object wrapper for other non-object data types
Continue
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...
Used to find the time right now or to store past or future time/dates
they need to be defined in the implementation file
setPossessionName
values
14. @property declares - and _ implements the setter and getter...
class methods - initializers
you always return the newly initialized object(return self)
@synthesize
superclass's
15. 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
16. Primitives and C Structures...
create a XIB file
data source - delegate and view controller
receiver - selector - arguments
cannot be added to an array
17. Core foundation classes are prefixed with _ and suffixed with _
Encapsulation of functionality
CF - Ref
the message release to all its entries
CGFloat
18. Center and frame are used to _ your view
unordered collection of objects - objects must be unique
position
only the class and subclasses can access
instance variables
19. Typically the designated initializer has parameters for the most important and frequently used _ of an object
the array relinquishes ownership of that object and no longer has a pointer to it
they need to be defined in the implementation file
Object wrapper around primitive types like int - float - double - BOOl
instance variables
20. An instance is a device for maintaining state. It's a box for _ of data.
object
storage
instance
class
21. After accessors have been defined in the header file...
attributes - behavior
they need to be defined in the implementation file
view controller
cannot be added to an array
22. Classes describe two things...
C Functionn
you always return the newly initialized object(return self)
attributes - behavior
lowercase - uppercase
23. NSDictionary...
Hash table - Look up objects using a key to get a value.
methods
Controller Objects[Managers]
a single-array can contain objects of different types
24. All objects are accessed using...
pointers
declaration and initialization of a variable
UIViewController
unordered collection of objects - objects must be unique
25. Class methods do not operate on an _ or have any access to _ variables....
instance
position
delegates and dataSources
an object's property
26. Delegation is an object oriented approach to
class methods - initializers
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
receiver - selector - arguments
callbacks
27. 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
28. 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
NSLog routine
Encapsulation of functionality
class's
29. A method in a _ is required unless its preceded by an @optional.
Core Graphics Framework
header files declare
receiver - selector - arguments
protocol
30. Use of class methods - there are three...
creating an initializer
unordered collection of objects - objects must be unique
CGFloat
alloc - singleton - informational utility method?
31. A UITableViewController can fill all three roles of...
data source - view controller and delegate
instance variable of an object is valid
viewWillDissapear: and viewWillAppear:
nil
32. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
variable scope - if defined within a block
super - self
accessors - individually we call them 'getters' and 'setters'
safety - subclassability and makes code look more consistent with C structs
33. A message is always contained in square brackets - and has three parts
declaration and initialization of a variable
cannot be added to an array
collection of collections - NSArray of an NSArray
receiver - selector - arguments
34. 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
is an instance of that class
Abstraction
self
35. A callback is a function that is supplied in advance of an event - and...
the array becomes an owner of that object and has a pointer to it.
the message release to all its entries
is called every time the event occurs
NSCoder
36. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
initializers
methods
alloc - singleton - informational utility method?
nil
37. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
parentViewController
@interface ClassName:SuperClassName
an object's property
Core Graphics Framework
38. In Objective C arrays can hold only...
references to objects
view controller
ordered collection of objects - immutable
wait until the loop finishes processing the event - at the end release it
39. 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 _.
Abstraction
nil
protocol
instance of UIView or one of its subclasses
40. Reference Counting...
callbacks
NSLog routine
create a XIB file
You take ownership for an object you want to keep a pointer to
41. UIViewController has several methods that get called at certain times...
receiving and handling events that are associated with it
rectangular
values
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
42. How do I implement my drawRect?
Core Graphics Framework
only the innermost loop in which the break is executed is terminated
class
instance variable of an object is valid
43. What does autorelease mean?
Instantiation from scratch
setPossessionName
only the class and subclasses can access
wait until the loop finishes processing the event - at the end release it
44. 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
45. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
CGRect
selector[message]
Anytime you call a method with new - alloc or copy. You own and must release that object.
parentViewController
46. Any individual object belonging to any class...
pointers
is an instance of that class
class
the array relinquishes ownership of that object and no longer has a pointer to it
47. In any application with UINavigationController - the navigation controller...
has one root view controller
pointers
references to objects
view controller
48. id is a...
ordered collection of objects - immutable
pointer to an object
group of global functions already assigned to this class
Ready-Made Instance
49. Why properties?
safety - subclassability and makes code look more consistent with C structs
storage
in the dealloc - or when a Controller's view is 'unloaded'
CGRect bounds
50. If a break statement is executed from within a set of nested loops...
message
copy - retain
references to objects
only the innermost loop in which the break is executed is terminated