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* s2 = [s uppercase String]; Is an example of what kind of instance?
class
Ready-Made Instance
view controller
lowercase - uppercase
2. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
class methods - initializers
nil
subview(s)
header files declare
3. Instance Variables by default are called @protected meaning...
view controller
method
only the class and subclasses can access
data source - delegate and view controller
4. NSNumber - class...
new instances of the class or retrieve some global property of the class.
Abstraction
Object wrapper around primitive types like int - float - double - BOOl
reuse your cells
5. 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
6. Ready-made instances...
@synthesize
define it in the implemenation file
method
calling code that does the instantiation for you
7. Why properties?
viewWillDissapear: and viewWillAppear:
do so in viewDidLoad
safety - subclassability and makes code look more consistent with C structs
%d
8. After accessors have been defined in the header file...
Ready-Made Instance
unordered collection of objects - objects must be unique
size and position
they need to be defined in the implementation file
9. Three ways instances are created...
Model Objects[Factory Worker]
ready-made instances - instantiation from scratch - and nib based instantiation
You take ownership for an object you want to keep a pointer to
Generic object wrapper for other non-object data types
10. A pointer to the object being asked to execute a method
implementation
calling code that does the instantiation for you
initializers
receiver[message]
11. You use _ to implement the view
Data Encapsulation
to get and set variables
CGRect bounds
type - name and value
12. A view represents a _ area
attributes - behavior
a single-array can contain objects of different types
rectangular
the array becomes an owner of that object and has a pointer to it.
13. 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 _.
nil
receiving and handling events that are associated with it
calling code that does the instantiation for you
to give it someone else - or another object
14. The integer prefix is...
@synthesize
rectangular
a single-array can contain objects of different types
%d
15. A method in a _ is required unless its preceded by an @optional.
its dataSource
initializers
rectangular
protocol
16. Execution of the break statement...
data source - delegate and view controller
C Functionn
'getters' and 'setters'
causes the program to immediately exit from the loop it is executing - whether its for - while or do
17. [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.
instance of UIView or one of its subclasses
is an instance of that class
data
Functions
18. NSValue - class...
C Functionn
@synthesize
Generic object wrapper for other non-object data types
instance of UIView or one of its subclasses
19. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
@interface ClassName:SuperClassName
view controller's initialization method
accessors - individually we call them 'getters' and 'setters'
pointer - class
20. Object Oriented based analogue to a function is called a...
do so in viewDidLoad
method
declaration and initialization of a variable
data source - delegate and view controller
21. 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
Model Objects[Factory Worker]
data source - view controller and delegate
array[class - NSMutableArray]
Functions
22. If the view has no subviews - create it programmatically; if it has subviews
create a XIB file
nil
class
cannot be added to an array
23. 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
24. In the last line of an init method...
NSBundle
protocol
you always return the newly initialized object(return self)
Anytime you call a method with new - alloc or copy. You own and must release that object.
25. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
(id)initWithFrame:(CGRect)aRect;
C Functionn
UIView
view
26. To load a Xib file manually - you use _
data
NSCoder
NSBundle
ready-made instances - instantiation from scratch - and nib based instantiation
27. NSArray - class...
they need to be defined in the implementation file
receiver[message]
Anytime you call a method with new - alloc or copy. You own and must release that object.
ordered collection of objects - immutable
28. 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
for inheritance - adopting the superclasses implementation
values
the array relinquishes ownership of that object and no longer has a pointer to it
a mechanism to enable specific callbacks
29. In any application with UINavigationController - the navigation controller...
ordered collection of objects - immutable
in the dealloc - or when a Controller's view is 'unloaded'
has one root view controller
Instantiation from scratch
30. Delegation is an object oriented approach to
cannot be added to an array
receiving and handling events that are associated with it
callbacks
is an instance of that class
31. A message is always contained in square brackets - and has three parts
receiver - selector - arguments
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
cannot be added to an array
is an instance of that class
32. 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...
setPossessionName
its dataSource
storage
(id)initWithFrame:(CGRect)aRect;
33. Core foundation classes are prefixed with _ and suffixed with _
Controller Objects[Managers]
CF - Ref
Data Encapsulation
%d
34. UIViewController has several methods that get called at certain times...
storage
variable scope - if defined within a block
Used to find the time right now or to store past or future time/dates
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
35. Views have three properties related to their location and size: @property _ _;
Functions
CGRect bounds - GCPoint center - CGRect frame
Maintenance of state
Is a placeholder object
36. A function in the objective c library that simply displays or logs it's argument
data source - delegate and view controller
cannot be added to an array
NSLog routine
Instantiation from scratch
37. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
CGRect bounds
Functions
methods
Controller Objects[Managers]
38. 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....
UIView
Abstraction
define it in the implemenation file
self
39. Use of class methods - there are three...
alloc - singleton - informational utility method?
variable scope - if defined within a block
nil
%d
40. A command directed to an object is called an...
message
group of global functions already assigned to this class
pointer - class
CGRect bounds - GCPoint center - CGRect frame
41. UITableViewController is a subclass of...
UIViewController
UIView
self
Controller Objects[Managers]
42. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
variable scope - if defined within a block
object
You take ownership for an object you want to keep a pointer to
receiver
43. Each individual instance is a bundle of data that it maintains. Typically that data is private - which means that it's encapsulated as well; no other object knows what that data is or in what form it is kept. The only way to discover from outside wha
Maintenance of state
Object wrapper around primitive types like int - float - double - BOOl
NSCoder
callbacks
44. NSString objects are usually sent _ rather than _...
Anytime you call a method with new - alloc or copy. You own and must release that object.
copy - retain
NSBundle
calling code that does the instantiation for you
45. NSSet...
Is a placeholder object
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
Maintenance of state
unordered collection of objects - objects must be unique
46. A view exists within a hierarchy. The window (an instance of UIWindow) is a view and the root of the hierarchy. It has _ (that appear on the window). Those views can also have _.
pointer to an object
subview(s)
CGFloat
create a XIB file
47. 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.
retain
first responder
class methods - initializers
a single-array can contain objects of different types
48. The only reason to temporarily own an object - is...
copy - retain
draw images
CF - Ref
to give it someone else - or another object
49. The class is responsible for what instance variables the instance has - but not the _ of those variables.
unordered collection of objects - objects must be unique
an object's property
the array becomes an owner of that object and has a pointer to it.
values
50. class methods...
group of global functions already assigned to this class
CGFloat
implementation
receiving and handling events that are associated with it