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. if you implemented both the setter and getter - the @synthesize method...
only the innermost loop in which the break is executed is terminated
implementation
will be ignored
Abstraction
2. A callback is a function that is supplied in advance of an event - and...
data
Model Objects[Factory Worker]
data source - delegate and view controller
is called every time the event occurs
3. @property declares - and _ implements the setter and getter...
dealloc - is called on the object & the object's memory is returned to the heap
an object's property
define it in the implemenation file
@synthesize
4. Use of class methods - there are three...
setPossessionName
instance
alloc - singleton - informational utility method?
Continue
5. In Cocoa Touch - the table view asks another object _ what it should display...
its dataSource
define it in the implemenation file
retain
an object's property
6. You use _ to implement the view
data source - delegate and view controller
Continue
CF - Ref
CGRect bounds
7. Hold data and know nothing about the user interface
draw images
Hash table - Look up objects using a key to get a value.
Object wrapper around primitive types like int - float - double - BOOl
Model Objects[Factory Worker]
8. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
Data Encapsulation
Functions
class methods - initializers
data
9. Ready-made instances...
you must import the header file of that class
calling code that does the instantiation for you
instance variables
Object wrapper around primitive types like int - float - double - BOOl
10. When an object is added to a NSMutableArray - that object is sent the message to retain;...
values
data source - view controller and delegate
the array becomes an owner of that object and has a pointer to it.
view
11. Delegation is an object oriented approach to
Abstraction
only the innermost loop in which the break is executed is terminated
callbacks
Used to find the time right now or to store past or future time/dates
12. A view represents a _ area
(id)initWithFrame:(CGRect)aRect;
CGRect bounds - GCPoint center - CGRect frame
rectangular
Generic object wrapper for other non-object data types
13. Any individual object belonging to any class...
to give it someone else - or another object
is an instance of that class
instance variable of an object is valid
you always return the newly initialized object(return self)
14. NSString *s = @'Hello - World'; is an example of...
Encapsulation of functionality
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
references to objects
declaration and initialization of a variable
15. Each class picks one _ as it's designated initializer....
protocol
CGRect
only the class and subclasses can access
initializer
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
nil
will be ignored
Functions
@interface ClassName:SuperClassName
17. A UITableView usually needs three different pieces...
CGRect
data source - delegate and view controller
Core Graphics Framework
designated initializer
18. Core foundation classes are prefixed with _ and suffixed with _
CGRect bounds
causes the program to immediately exit from the loop it is executing - whether its for - while or do
accessors - individually we call them 'getters' and 'setters'
CF - Ref
19. Typically the designated initializer has parameters for the most important and frequently used _ of an object
UIView
instance variables
draw images
causes the program to immediately exit from the loop it is executing - whether its for - while or do
20. When an object is removed from an NSMutableArray - that object is sent the message release;...
the array relinquishes ownership of that object and no longer has a pointer to it
instance variable of an object is valid
Anytime you call a method with new - alloc or copy. You own and must release that object.
implementation
21. Three ways instances are created...
data
retain
NSLog routine
ready-made instances - instantiation from scratch - and nib based instantiation
22. Name of the method to be executed
Instantiation from scratch
selector[message]
NSBundle
only the innermost loop in which the break is executed is terminated
23. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
they need to be defined in the implementation file
header files declare
protocol
do so in viewDidLoad
24. 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
25. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
C Functionn
view controller's initialization method
Generic object wrapper for other non-object data types
method
26. A command directed to an object is called an...
calling code that does the instantiation for you
%d
is called every time the event occurs
message
27. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
Controller Objects[Managers]
declaration and initialization of a variable
(id)initWithFrame:(CGRect)aRect;
callbacks
28. If a break statement is executed from within a set of nested loops...
size and position
group of global functions already assigned to this class
only the innermost loop in which the break is executed is terminated
pointer to an object
29. In any application with UINavigationController - the navigation controller...
has one root view controller
rectangular
UIView
a single-array can contain objects of different types
30. 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.
delegates and dataSources
you always return the newly initialized object(return self)
implementation
copy - retain
31. NSString objects are usually sent _ rather than _...
Functions
data
Used to find the time right now or to store past or future time/dates
copy - retain
32. Just a floating point number - but we always use it for graphics.
CGFloat
class's
alloc - singleton - informational utility method?
the array becomes an owner of that object and has a pointer to it.
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.
is an instance of that class
first responder
header files declare
UIViewController
34. At the top of any implementation file...
safety - subclassability and makes code look more consistent with C structs
you must import the header file of that class
define it in the implemenation file
declaration and initialization of a variable
35. Designated initializer makes sure that every...
Instantiation from scratch
instance variable of an object is valid
define it in the implemenation file
variable scope - if defined within a block
36. A UITableViewController can fill all three roles of...
the array relinquishes ownership of that object and no longer has a pointer to it
data source - view controller and delegate
designated initializer
subview(s)
37. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
pointer to an object
size and position
receiver
causes the program to immediately exit from the loop it is executing - whether its for - while or do
38. Files Owner...
Model Objects[Factory Worker]
selector[message]
Is a placeholder object
arguments[message]
39. Class methods typically either create
values
dealloc - is called on the object & the object's memory is returned to the heap
methods
new instances of the class or retrieve some global property of the class.
40. 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...
data
setPossessionName
collection of collections - NSArray of an NSArray
to get and set variables
41. In a class method you cannot access...
the instance variables
receiver
values
reuse your cells
42. Proceed through the loop - jump back to the top and check again
C Functionn
has one root view controller
Continue
is an instance of that class
43. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
will be ignored
method
only the innermost loop in which the break is executed is terminated
object
44. Reference Counting...
parentViewController
You take ownership for an object you want to keep a pointer to
nil
Anytime you call a method with new - alloc or copy. You own and must release that object.
45. 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
46. Instance Variables by default are called @protected meaning...
the instance variables
implementation
only the class and subclasses can access
Generic object wrapper for other non-object data types
47. A pointer to the object being asked to execute a method
C Functionn
receiver[message]
NSLog routine
retain
48. Execution of the break statement...
will be ignored
causes the program to immediately exit from the loop it is executing - whether its for - while or do
upper
Is a placeholder object
49. 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
Hash table - Look up objects using a key to get a value.
Continue
the instance variables
50. NSDictionary...
Hash table - Look up objects using a key to get a value.
a mechanism to enable specific callbacks
to get and set variables
Encapsulation of functionality