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. You use _ to implement the view
nil
is an instance of that class
@synthesize
CGRect bounds
2. Each _ has a 'designated' initializer method....
Controller Objects[Managers]
creating an initializer
view
class
3. Ready-made instances...
calling code that does the instantiation for you
Instantiation from scratch
lowercase - uppercase
creates an instance of NSString that holds the character string
4. Three ways instances are created...
CGRect
the instance variables
new instances of the class or retrieve some global property of the class.
ready-made instances - instantiation from scratch - and nib based instantiation
5. When making a tableView always...
do so in viewDidLoad
the array becomes an owner of that object and has a pointer to it.
reuse your cells
is an instance of that class
6. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
instance of UIView or one of its subclasses
copy - retain
Model Objects[Factory Worker]
Ready-Made Instance
7. @property declares - and _ implements the setter and getter...
instance variables
has one root view controller
a single-array can contain objects of different types
@synthesize
8. In general - class methods tend to be factory methods - that is...
delegates and dataSources
Core Graphics Framework
viewWillDissapear: and viewWillAppear:
methods for generating an instance
9. Asking a class or object to execute a method
retain
message
Ready-Made Instance
values
10. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
object
class
view controller
11. Whenever a UINavigationController is about to swap views - it sends out two messages
viewWillDissapear: and viewWillAppear:
self
causes the program to immediately exit from the loop it is executing - whether its for - while or do
instance variables
12. What does autorelease mean?
NSLog routine
wait until the loop finishes processing the event - at the end release it
Used to find the time right now or to store past or future time/dates
to give it someone else - or another object
13. At the top of any implementation file...
you must import the header file of that class
C Functionn
Maintenance of state
instance
14. [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.
calling code that does the instantiation for you
data
pointer to an object
instance of UIView or one of its subclasses
15. NSArray - class...
ordered collection of objects - immutable
UIViewController
they need to be defined in the implementation file
C Functionn
16. id is a...
designated initializer
data source - view controller and delegate
C Functionn
pointer to an object
17. A collection object - an ordered list of objects that can be accesed by an index
cannot be added to an array
array[class - NSMutableArray]
class methods - initializers
they need to be defined in the implementation file
18. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
CGRect bounds
initializer
view controller's initialization method
Instantiation from scratch
19. Origin of a view's coordinate system is _ left
data
you must import the header file of that class
delegates and dataSources
upper
20. Use of class methods - there are three...
NSBundle
alloc - singleton - informational utility method?
collection of collections - NSArray of an NSArray
class methods - initializers
21. Views have three properties related to their location and size: @property _ _;
CGRect bounds - GCPoint center - CGRect frame
Generic object wrapper for other non-object data types
values
copy - retain
22. The root view controller typically creates the next view controller - and the next _ creates the one after that
lowercase - uppercase
ordered collection of objects - immutable
causes the program to immediately exit from the loop it is executing - whether its for - while or do
view controller
23. Reference Counting...
is called every time the event occurs
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
You take ownership for an object you want to keep a pointer to
Data Encapsulation
24. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
the array relinquishes ownership of that object and no longer has a pointer to it
a single-array can contain objects of different types
CGRect
position
25. NSSet...
they need to be defined in the implementation file
view controller's initialization method
(id)initWithFrame:(CGRect)aRect;
unordered collection of objects - objects must be unique
26. Primitives and C Structures...
creates an instance of NSString that holds the character string
cannot be added to an array
is an instance of that class
data source - view controller and delegate
27. If the view has no subviews - create it programmatically; if it has subviews
an object's property
storage
receiver[message]
create a XIB file
28. 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
29. @property - is using methods...
first responder
wait until the loop finishes processing the event - at the end release it
has one root view controller
to get and set variables
30. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
lowercase - uppercase
creates an instance of NSString that holds the character string
NSLog routine
will be ignored
31. In Cocoa Touch - the table view asks another object _ what it should display...
its dataSource
superclass's
creates an instance of NSString that holds the character string
Maintenance of state
32. Instance Variables by default are called @protected meaning...
has one root view controller
you always return the newly initialized object(return self)
setPossessionName
only the class and subclasses can access
33. Number one use of protocols in iOS...
declaration and initialization of a variable
delegates and dataSources
first responder
only the innermost loop in which the break is executed is terminated
34. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
unordered collection of objects - objects must be unique
receiving and handling events that are associated with it
ordered collection of objects - immutable
super - self
35. Prefixing a character string with an @ symbol [specific - NSString class]...
instance
retain
Model Objects[Factory Worker]
creates an instance of NSString that holds the character string
36. When an object is added to a NSMutableArray - that object is sent the message to retain;...
the array becomes an owner of that object and has a pointer to it.
is an instance of that class
Ready-Made Instance
a mechanism to enable specific callbacks
37. Values to be supplied as the parameters to the method
creating an initializer
cannot be added to an array
arguments[message]
draw images
38. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
receiving and handling events that are associated with it
selector[message]
(id)initWithFrame:(CGRect)aRect;
NSCoder
39. class methods...
class's
CF - Ref
group of global functions already assigned to this class
method
40. Class methods typically either create
Core Graphics Framework
new instances of the class or retrieve some global property of the class.
CGRect
UIView
41. Also - because arrays only hold a pointer to an object...
a single-array can contain objects of different types
subview(s)
the array relinquishes ownership of that object and no longer has a pointer to it
methods
42. An instance is a device for maintaining state. It's a box for _ of data.
%d
create a XIB file
storage
you always return the newly initialized object(return self)
43. 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
44. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
pointer to an object
collection of collections - NSArray of an NSArray
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
initializers
45. A pointer to the object being asked to execute a method
receiver[message]
Object wrapper around primitive types like int - float - double - BOOl
callbacks
calling code that does the instantiation for you
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 _.
a mechanism to enable specific callbacks
ordered collection of objects - immutable
receiver[message]
subview(s)
47. Categories are an Objective C way to add _ to an existing class without subclassing
the instance variables
do so in viewDidLoad
methods
you must import the header file of that class
48. How do I implement my drawRect?
to get and set variables
Core Graphics Framework
implementation
data source - delegate and view controller
49. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
parentViewController
unordered collection of objects - objects must be unique
create a XIB file
class methods - initializers
50. Center and frame are used to _ your view
Ready-Made Instance
Functions
methods for generating an instance
position