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 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 _.
view controller's initialization method
data source - delegate and view controller
parentViewController
nil
2. Property List...
collection of collections - NSArray of an NSArray
array[class - NSMutableArray]
upper
Controller Objects[Managers]
3. Three ways instances are created...
instance
view controller
ready-made instances - instantiation from scratch - and nib based instantiation
message
4. @property - is using methods...
receiving and handling events that are associated with it
to get and set variables
superclass's
attributes - behavior
5. Only exists within the statement block there defined - outside of the block is fine
variable scope - if defined within a block
viewWillDissapear: and viewWillAppear:
instance variables
'getters' and 'setters'
6. Center and frame are used to _ your view
'getters' and 'setters'
position
instance variable of an object is valid
only the innermost loop in which the break is executed is terminated
7. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
creating an initializer
creates an instance of NSString that holds the character string
retain
super - self
8. A pointer to the object being asked to execute a method
CGRect bounds - GCPoint center - CGRect frame
receiver[message]
pointer - class
initializers
9. [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.
the array becomes an owner of that object and has a pointer to it.
parentViewController
data
a mechanism to enable specific callbacks
10. NSString objects are usually sent _ rather than _...
viewWillDissapear: and viewWillAppear:
C Functionn
copy - retain
Instantiation from scratch
11. UITableViewController is a subclass of...
cannot be added to an array
UIViewController
(id)initWithFrame:(CGRect)aRect;
Functions
12. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
view controller
designated initializer
instance variables
Ready-Made Instance
13. 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....
instance variables
class methods - initializers
superclass's
define it in the implemenation file
14. In a class method you cannot access...
the instance variables
header files declare
NSLog routine
NSBundle
15. The class is responsible for what instance variables the instance has - but not the _ of those variables.
subview(s)
setPossessionName
values
Is a placeholder object
16. Hold data and know nothing about the user interface
ordered collection of objects - immutable
Continue
pointers
Model Objects[Factory Worker]
17. To load a Xib file manually - you use _
Functions
Is a placeholder object
NSBundle
pointers
18. NSSet...
is an instance of that class
unordered collection of objects - objects must be unique
Encapsulation of functionality
the array relinquishes ownership of that object and no longer has a pointer to it
19. Just a floating point number - but we always use it for graphics.
for inheritance - adopting the superclasses implementation
selector[message]
CGFloat
C Functionn
20. 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
21. A message is always contained in square brackets - and has three parts
callbacks
Abstraction
declaration and initialization of a variable
receiver - selector - arguments
22. Designated initializer makes sure that every...
the array relinquishes ownership of that object and no longer has a pointer to it
cannot be added to an array
causes the program to immediately exit from the loop it is executing - whether its for - while or do
instance variable of an object is valid
23. Categories are an Objective C way to add _ to an existing class without subclassing
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
methods
define it in the implemenation file
copy - retain
24. NSString *s = @'Hello - World'; is an example of...
CGRect bounds
ordered collection of objects - immutable
NSBundle
declaration and initialization of a variable
25. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
method
creating an initializer
group of global functions already assigned to this class
Ready-Made Instance
26. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
CGRect
%d
superclass's
the array relinquishes ownership of that object and no longer has a pointer to it
27. Use of class methods - there are three...
alloc - singleton - informational utility method?
Maintenance of state
delegates and dataSources
variable scope - if defined within a block
28. 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
29. Values to be supplied as the parameters to the method
pointer - class
new instances of the class or retrieve some global property of the class.
arguments[message]
NSBundle
30. Any individual object belonging to any class...
selector[message]
reuse your cells
instance variables
is an instance of that class
31. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
data source - delegate and view controller
class methods - initializers
NSBundle
header files declare
32. Class methods typically either create
new instances of the class or retrieve some global property of the class.
only the class and subclasses can access
CGRect
methods
33. In object oriented languages - we call methods that get and set instance variables
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
34. Also - because arrays only hold a pointer to an object...
Functions
a single-array can contain objects of different types
NSLog routine
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
35. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
class methods - initializers
%d
first responder
view
36. The integer prefix is...
Object wrapper around primitive types like int - float - double - BOOl
declaration and initialization of a variable
upper
%d
37. Proceed through the loop - jump back to the top and check again
they need to be defined in the implementation file
object
receiver[message]
Continue
38. How do I implement my drawRect?
to give it someone else - or another object
Core Graphics Framework
variable scope - if defined within a block
(id)initWithFrame:(CGRect)aRect;
39. A responder is responsible for...
upper
receiving and handling events that are associated with it
create a XIB file
method
40. What does autorelease mean?
receiver[message]
wait until the loop finishes processing the event - at the end release it
CGRect
calling code that does the instantiation for you
41. id is a...
You take ownership for an object you want to keep a pointer to
class methods - initializers
callbacks
pointer to an object
42. A collection object - an ordered list of objects that can be accesed by an index
variable scope - if defined within a block
initializers
creates an instance of NSString that holds the character string
array[class - NSMutableArray]
43. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
Instantiation from scratch
superclass's
instance of UIView or one of its subclasses
define it in the implemenation file
44. 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.
C Functionn
instance variable of an object is valid
designated initializer
45. Also if you send the NSObject the _ message - you own that object.
references to objects
storage
retain
accessors - individually we call them 'getters' and 'setters'
46. UIViewController has several methods that get called at certain times...
to give it someone else - or another object
calling code that does the instantiation for you
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
Maintenance of state
47. A UITableViewController can fill all three roles of...
will be ignored
class's
unordered collection of objects - objects must be unique
data source - view controller and delegate
48. Primitives and C Structures...
safety - subclassability and makes code look more consistent with C structs
creates an instance of NSString that holds the character string
cannot be added to an array
object
49. 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
50. If the view has no subviews - create it programmatically; if it has subviews
position
receiver
the array becomes an owner of that object and has a pointer to it.
create a XIB file