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. Class methods do not operate on an _ or have any access to _ variables....
copy - retain
instance
you always return the newly initialized object(return self)
Abstraction
2. Each object does its own job - and presents to the rest of the world - to other objects - and indeed in a sense to the programmer - an opaque wall whose only entrances are the methods to which it promises to respond and the actions it promises to per
for inheritance - adopting the superclasses implementation
accessors - individually we call them 'getters' and 'setters'
Encapsulation of functionality
a mechanism to enable specific callbacks
3. 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.
(id)initWithFrame:(CGRect)aRect;
class's
instance variables
the message release to all its entries
4. Primitives and C Structures...
cannot be added to an array
C Functionn
data source - delegate and view controller
size and position
5. NSDate - class...
message
an object's property
Used to find the time right now or to store past or future time/dates
only the innermost loop in which the break is executed is terminated
6. Reducing details to focus on the core concepts
you must import the header file of that class
Abstraction
values
to get and set variables
7. 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
8. NSArray - important methods...
instance variables
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
has one root view controller
class methods - initializers
9. NSNumber - class...
receiver[message]
callbacks
Object wrapper around primitive types like int - float - double - BOOl
message
10. Reference Counting...
You take ownership for an object you want to keep a pointer to
receiver
they need to be defined in the implementation file
you must import the header file of that class
11. A method in a _ is required unless its preceded by an @optional.
values
protocol
pointers
Encapsulation of functionality
12. Instance Variables by default are called @protected meaning...
rectangular
new instances of the class or retrieve some global property of the class.
only the class and subclasses can access
attributes - behavior
13. 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
14. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
Used to find the time right now or to store past or future time/dates
self
upper
data source - delegate and view controller
15. 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
16. The integer prefix is...
data
callbacks
%d
creates an instance of NSString that holds the character string
17. 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
(id)initWithFrame:(CGRect)aRect;
'getters' and 'setters'
superclass's
a mechanism to enable specific callbacks
18. Center and frame are used to _ your view
data source - view controller and delegate
Ready-Made Instance
view controller
position
19. A view is an...
instance of UIView or one of its subclasses
Data Encapsulation
to get and set variables
causes the program to immediately exit from the loop it is executing - whether its for - while or do
20. NSString objects are usually sent _ rather than _...
'getters' and 'setters'
protocol
copy - retain
Hash table - Look up objects using a key to get a value.
21. Number one use of protocols in iOS...
delegates and dataSources
Anytime you call a method with new - alloc or copy. You own and must release that object.
instance
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
22. Object Oriented based analogue to a function is called a...
Instantiation from scratch
do so in viewDidLoad
UIViewController
method
23. Views have three properties related to their location and size: @property _ _;
CGRect bounds - GCPoint center - CGRect frame
references to objects
the instance variables
Core Graphics Framework
24. class methods...
Functions
group of global functions already assigned to this class
CGRect bounds
receiver
25. 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
callbacks
Functions
do so in viewDidLoad
wait until the loop finishes processing the event - at the end release it
26. 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....
view controller's initialization method
header files declare
define it in the implemenation file
retain
27. Categories are an Objective C way to add _ to an existing class without subclassing
NSLog routine
methods
is called every time the event occurs
receiving and handling events that are associated with it
28. In a class method you cannot access...
@synthesize
callbacks
the instance variables
super - self
29. Also - because arrays only hold a pointer to an object...
is an instance of that class
draw images
Abstraction
a single-array can contain objects of different types
30. When making a tableView always...
create a XIB file
self
reuse your cells
first responder
31. UIImageView is used to...
super - self
draw images
class methods - initializers
pointer to an object
32. You use _ to implement the view
object
NSLog routine
an object's property
CGRect bounds
33. 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
subview(s)
has one root view controller
message
34. Origin of a view's coordinate system is _ left
an object's property
upper
alloc - singleton - informational utility method?
You take ownership for an object you want to keep a pointer to
35. Three ways instances are created...
copy - retain
unordered collection of objects - objects must be unique
pointers
ready-made instances - instantiation from scratch - and nib based instantiation
36. Delegation is an object oriented approach to
callbacks
Used to find the time right now or to store past or future time/dates
Model Objects[Factory Worker]
NSLog routine
37. In the last line of an init method...
Abstraction
object
@interface ClassName:SuperClassName
you always return the newly initialized object(return self)
38. When an NSMutableArray is deallocated - it sends...
the message release to all its entries
accessors - individually we call them 'getters' and 'setters'
selector[message]
initializer
39. 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
40. NSValue - class...
receiver[message]
Generic object wrapper for other non-object data types
collection of collections - NSArray of an NSArray
safety - subclassability and makes code look more consistent with C structs
41. 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.
CGRect bounds
the instance variables
Generic object wrapper for other non-object data types
creating an initializer
42. All objects are accessed using...
Ready-Made Instance
a mechanism to enable specific callbacks
pointers
reuse your cells
43. Asking a class or object to execute a method
you must import the header file of that class
has one root view controller
you always return the newly initialized object(return self)
message
44. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
Abstraction
creates an instance of NSString that holds the character string
accessors - individually we call them 'getters' and 'setters'
receiver
45. A message is always contained in square brackets - and has three parts
super - self
receiver - selector - arguments
Maintenance of state
array[class - NSMutableArray]
46. 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
47. Just a floating point number - but we always use it for graphics.
CGFloat
do so in viewDidLoad
reuse your cells
header files declare
48. Name of the method to be executed
pointer - class
is an instance of that class
CGFloat
selector[message]
49. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
Core Graphics Framework
CGRect bounds
the instance variables
designated initializer
50. A command directed to an object is called an...
define it in the implemenation file
selector[message]
message
receiver