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. NSNumber - class...
unordered collection of objects - objects must be unique
Object wrapper around primitive types like int - float - double - BOOl
has one root view controller
you always return the newly initialized object(return self)
2. 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...
group of global functions already assigned to this class
type - name and value
upper
setPossessionName
3. Property List...
draw images
collection of collections - NSArray of an NSArray
delegates and dataSources
variable scope - if defined within a block
4. 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
5. Name of the method to be executed
selector[message]
designated initializer
delegates and dataSources
only the innermost loop in which the break is executed is terminated
6. Classes describe two things...
class methods - initializers
attributes - behavior
to give it someone else - or another object
UIViewController
7. 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
You take ownership for an object you want to keep a pointer to
Core Graphics Framework
creates an instance of NSString that holds the character string
8. Core foundation classes are prefixed with _ and suffixed with _
NSCoder
viewWillDissapear: and viewWillAppear:
declaration and initialization of a variable
CF - Ref
9. Object Oriented based analogue to a function is called a...
method
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
Ready-Made Instance
UIViewController
10. An instance is a device for maintaining state. It's a box for _ of data.
CGRect bounds
storage
attributes - behavior
methods for generating an instance
11. id is a...
ordered collection of objects - immutable
references to objects
pointer to an object
instance of UIView or one of its subclasses
12. A UITableViewController can fill all three roles of...
will be ignored
pointers
the array becomes an owner of that object and has a pointer to it.
data source - view controller and delegate
13. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
declaration and initialization of a variable
storage
receiver
Controller Objects[Managers]
14. super - is used...
for inheritance - adopting the superclasses implementation
has one root view controller
only the class and subclasses can access
instance variable of an object is valid
15. Ready-made instances...
object
unordered collection of objects - objects must be unique
a mechanism to enable specific callbacks
calling code that does the instantiation for you
16. UIImageView is used to...
@synthesize
Generic object wrapper for other non-object data types
the instance variables
draw images
17. NSSet...
an object's property
instance
unordered collection of objects - objects must be unique
object
18. A view represents a _ area
array[class - NSMutableArray]
values
its dataSource
rectangular
19. 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
they need to be defined in the implementation file
Functions
accessors - individually we call them 'getters' and 'setters'
callbacks
20. 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
view controller
initializers
UIViewController
21. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
values
initializer
Instantiation from scratch
nil
22. 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
23. Defining variables - three parts...
type - name and value
upper
(id)initWithFrame:(CGRect)aRect;
declaration and initialization of a variable
24. Delegation is an object oriented approach to
'getters' and 'setters'
viewWillDissapear: and viewWillAppear:
method
callbacks
25. @property - is using methods...
implementation
data source - delegate and view controller
create a XIB file
to get and set variables
26. A view is an...
instance of UIView or one of its subclasses
parentViewController
data source - delegate and view controller
wait until the loop finishes processing the event - at the end release it
27. Any individual object belonging to any class...
type - name and value
CGRect bounds - GCPoint center - CGRect frame
is an instance of that class
Controller Objects[Managers]
28. Three ways instances are created...
ready-made instances - instantiation from scratch - and nib based instantiation
instance of UIView or one of its subclasses
reuse your cells
creating an initializer
29. When making a tableView always...
Data Encapsulation
view controller's initialization method
copy - retain
reuse your cells
30. 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 _.
lowercase - uppercase
class's
pointer - class
subview(s)
31. NSDate - class...
Used to find the time right now or to store past or future time/dates
a mechanism to enable specific callbacks
has one root view controller
for inheritance - adopting the superclasses implementation
32. At the top of any implementation file...
NSCoder
you must import the header file of that class
cannot be added to an array
superclass's
33. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
class's
receiver
setPossessionName
method
34. Designated initializer makes sure that every...
delegates and dataSources
instance variable of an object is valid
callbacks
arguments[message]
35. How do I implement my drawRect?
Core Graphics Framework
the array becomes an owner of that object and has a pointer to it.
selector[message]
data source - view controller and delegate
36. if you implemented both the setter and getter - the @synthesize method...
will be ignored
data
upper
creates an instance of NSString that holds the character string
37. Also if you send the NSObject the _ message - you own that object.
retain
references to objects
copy - retain
wait until the loop finishes processing the event - at the end release it
38. After accessors have been defined in the header file...
they need to be defined in the implementation file
parentViewController
lowercase - uppercase
causes the program to immediately exit from the loop it is executing - whether its for - while or do
39. Views have three properties related to their location and size: @property _ _;
data source - view controller and delegate
Anytime you call a method with new - alloc or copy. You own and must release that object.
is called every time the event occurs
CGRect bounds - GCPoint center - CGRect frame
40. Asking a class or object to execute a method
message
@synthesize
you always return the newly initialized object(return self)
pointer - class
41. In the last line of an init method...
view controller's initialization method
you always return the newly initialized object(return self)
instance variables
create a XIB file
42. Only exists within the statement block there defined - outside of the block is fine
variable scope - if defined within a block
(id)initWithFrame:(CGRect)aRect;
will be ignored
Maintenance of state
43. A function in the objective c library that simply displays or logs it's argument
UIView
the array becomes an owner of that object and has a pointer to it.
NSLog routine
references to objects
44. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
designated initializer
you always return the newly initialized object(return self)
Abstraction
collection of collections - NSArray of an NSArray
45. Primitives and C Structures...
Continue
cannot be added to an array
methods for generating an instance
to give it someone else - or another object
46. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
Anytime you call a method with new - alloc or copy. You own and must release that object.
receiver
class methods - initializers
object
47. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
references to objects
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
@interface ClassName:SuperClassName
Instantiation from scratch
48. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
Hash table - Look up objects using a key to get a value.
header files declare
declaration and initialization of a variable
superclass's
49. A responder is responsible for...
receiving and handling events that are associated with it
pointer - class
instance
type - name and value
50. Categories are an Objective C way to add _ to an existing class without subclassing
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
methods
you always return the newly initialized object(return self)
method