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 have extra work you want to do on the view...
NSCoder
CGRect bounds - GCPoint center - CGRect frame
header files declare
do so in viewDidLoad
2. Files Owner...
Functions
class's
type - name and value
Is a placeholder object
3. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
class's
(id)initWithFrame:(CGRect)aRect;
viewWillDissapear: and viewWillAppear:
Instantiation from scratch
4. 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
5. Class methods typically either create
size and position
viewWillDissapear: and viewWillAppear:
references to objects
new instances of the class or retrieve some global property of the class.
6. When an NSMutableArray is deallocated - it sends...
the message release to all its entries
will be ignored
data source - view controller and delegate
values
7. Classes describe two things...
the instance variables
receiver[message]
attributes - behavior
Data Encapsulation
8. NSArray - class...
ordered collection of objects - immutable
receiving and handling events that are associated with it
'getters' and 'setters'
@synthesize
9. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
array[class - NSMutableArray]
NSCoder
superclass's
object
10. A UITableView usually needs three different pieces...
Used to find the time right now or to store past or future time/dates
data source - delegate and view controller
superclass's
callbacks
11. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
initializers
class
object
safety - subclassability and makes code look more consistent with C structs
12. Three ways instances are created...
CGRect bounds - GCPoint center - CGRect frame
Encapsulation of functionality
Continue
ready-made instances - instantiation from scratch - and nib based instantiation
13. Ready-made instances...
creates an instance of NSString that holds the character string
calling code that does the instantiation for you
designated initializer
Continue
14. A view is an...
instance of UIView or one of its subclasses
initializers
UIView
instance variables
15. id is a...
pointer to an object
message
implementation
causes the program to immediately exit from the loop it is executing - whether its for - while or do
16. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
Abstraction
self
to get and set variables
data source - delegate and view controller
17. A pointer to the object being asked to execute a method
is an instance of that class
receiver[message]
class's
first responder
18. Only exists within the statement block there defined - outside of the block is fine
data source - view controller and delegate
draw images
you must import the header file of that class
variable scope - if defined within a block
19. In general - class methods tend to be factory methods - that is...
@synthesize
method
methods for generating an instance
references to objects
20. 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.
safety - subclassability and makes code look more consistent with C structs
instance variables
you always return the newly initialized object(return self)
view controller
21. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
callbacks
receiver
calling code that does the instantiation for you
CGRect bounds - GCPoint center - CGRect frame
22. NSDictionary...
Hash table - Look up objects using a key to get a value.
instance variables
pointer - class
self
23. Delegation is an object oriented approach to
CGRect bounds
callbacks
the array relinquishes ownership of that object and no longer has a pointer to it
ordered collection of objects - immutable
24. Asking a class or object to execute a method
message
reuse your cells
creating an initializer
causes the program to immediately exit from the loop it is executing - whether its for - while or do
25. NSString *s = @'Hello - World'; is an example of...
create a XIB file
CF - Ref
declaration and initialization of a variable
dealloc - is called on the object & the object's memory is returned to the heap
26. Also - because arrays only hold a pointer to an object...
a single-array can contain objects of different types
a mechanism to enable specific callbacks
an object's property
class methods - initializers
27. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
creating an initializer
message
Maintenance of state
@interface ClassName:SuperClassName
28. All objects are accessed using...
wait until the loop finishes processing the event - at the end release it
message
pointers
Generic object wrapper for other non-object data types
29. Proceed through the loop - jump back to the top and check again
creating an initializer
Continue
type - name and value
dealloc - is called on the object & the object's memory is returned to the heap
30. Why properties?
safety - subclassability and makes code look more consistent with C structs
you always return the newly initialized object(return self)
receiver - selector - arguments
alloc - singleton - informational utility method?
31. Center and frame are used to _ your view
lowercase - uppercase
first responder
position
Is a placeholder object
32. A view represents a _ area
Maintenance of state
rectangular
storage
selector[message]
33. Prefixing a character string with an @ symbol [specific - NSString class]...
creates an instance of NSString that holds the character string
reuse your cells
cannot be added to an array
nil
34. 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....
Instantiation from scratch
UIViewController
the instance variables
define it in the implemenation file
35. The root view controller typically creates the next view controller - and the next _ creates the one after that
declaration and initialization of a variable
class's
view controller
receiver - selector - arguments
36. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
designated initializer
creates an instance of NSString that holds the character string
a single-array can contain objects of different types
you always return the newly initialized object(return self)
37. Categories are an Objective C way to add _ to an existing class without subclassing
draw images
methods
first responder
Model Objects[Factory Worker]
38. An instance is a device for maintaining state. It's a box for _ of data.
Model Objects[Factory Worker]
storage
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
first responder
39. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
you always return the newly initialized object(return self)
implementation
retain
initializers
40. A callback is a function that is supplied in advance of an event - and...
collection of collections - NSArray of an NSArray
view
pointer - class
is called every time the event occurs
41. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
in the dealloc - or when a Controller's view is 'unloaded'
Ready-Made Instance
object
lowercase - uppercase
42. When an object is removed from an NSMutableArray - that object is sent the message release;...
receiving and handling events that are associated with it
object
the array relinquishes ownership of that object and no longer has a pointer to it
CGRect bounds - GCPoint center - CGRect frame
43. Class methods do not operate on an _ or have any access to _ variables....
size and position
Controller Objects[Managers]
instance
has one root view controller
44. Each object does its own job - and presents to the rest of the world - to other objects - and indeed in a sense to the programmer - an opaque wall whose only entrances are the methods to which it promises to respond and the actions it promises to per
Encapsulation of functionality
calling code that does the instantiation for you
receiving and handling events that are associated with it
dealloc - is called on the object & the object's memory is returned to the heap
45. If a break statement is executed from within a set of nested loops...
arguments[message]
@interface ClassName:SuperClassName
instance variables
only the innermost loop in which the break is executed is terminated
46. Hold data and know nothing about the user interface
rectangular
instance variable of an object is valid
Model Objects[Factory Worker]
CF - Ref
47. The class is responsible for what instance variables the instance has - but not the _ of those variables.
values
CGRect bounds - GCPoint center - CGRect frame
instance
you always return the newly initialized object(return self)
48. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
class methods - initializers
self
the array becomes an owner of that object and has a pointer to it.
lowercase - uppercase
49. A function in the objective c library that simply displays or logs it's argument
callbacks
create a XIB file
Instantiation from scratch
NSLog routine
50. Primitives and C Structures...
cannot be added to an array
is an instance of that class
designated initializer
unordered collection of objects - objects must be unique