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 _.
causes the program to immediately exit from the loop it is executing - whether its for - while or do
the array relinquishes ownership of that object and no longer has a pointer to it
nil
view
2. NSSet...
@interface ClassName:SuperClassName
unordered collection of objects - objects must be unique
the message release to all its entries
initializer
3. Classes describe two things...
a mechanism to enable specific callbacks
declaration and initialization of a variable
NSLog routine
attributes - behavior
4. A function in the objective c library that simply displays or logs it's argument
accessors - individually we call them 'getters' and 'setters'
%d
values
NSLog routine
5. A method in a _ is required unless its preceded by an @optional.
NSLog routine
Used to find the time right now or to store past or future time/dates
the array becomes an owner of that object and has a pointer to it.
protocol
6. UITableViewController is a subclass of...
for inheritance - adopting the superclasses implementation
UIViewController
message
'getters' and 'setters'
7. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
rectangular
creating an initializer
Instantiation from scratch
pointers
8. In general - in Objective-C - a reference to an instance is a _ - and the name of the data type of what's at the far end of that pointer is the name of the instances's _.
draw images
pointer - class
receiver
setPossessionName
9. 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
10. Reference Counting...
only the class and subclasses can access
a mechanism to enable specific callbacks
You take ownership for an object you want to keep a pointer to
is an instance of that class
11. At the top of any implementation file...
you must import the header file of that class
an object's property
You take ownership for an object you want to keep a pointer to
ready-made instances - instantiation from scratch - and nib based instantiation
12. Just a floating point number - but we always use it for graphics.
CGRect bounds - GCPoint center - CGRect frame
receiver - selector - arguments
CGFloat
class's
13. The only reason to temporarily own an object - is...
NSCoder
instance
protocol
to give it someone else - or another object
14. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
retain
has one root view controller
Data Encapsulation
@interface ClassName:SuperClassName
15. The root view controller typically creates the next view controller - and the next _ creates the one after that
view controller
Continue
CGFloat
to get and set variables
16. Center and frame are used to _ your view
lowercase - uppercase
position
Object wrapper around primitive types like int - float - double - BOOl
collection of collections - NSArray of an NSArray
17. NSValue - class...
NSCoder
Generic object wrapper for other non-object data types
creating an initializer
type - name and value
18. if you implemented both the setter and getter - the @synthesize method...
data source - view controller and delegate
Maintenance of state
You take ownership for an object you want to keep a pointer to
will be ignored
19. After accessors have been defined in the header file...
only the class and subclasses can access
alloc - singleton - informational utility method?
they need to be defined in the implementation file
type - name and value
20. Any individual object belonging to any class...
safety - subclassability and makes code look more consistent with C structs
position
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
is an instance of that class
21. An instance is a device for maintaining state. It's a box for _ of data.
viewWillDissapear: and viewWillAppear:
storage
self
you always return the newly initialized object(return self)
22. 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
23. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
instance variables
NSBundle
@synthesize
C Functionn
24. Ready-made instances...
Data Encapsulation
pointers
calling code that does the instantiation for you
UIViewController
25. In general - class methods tend to be factory methods - that is...
Generic object wrapper for other non-object data types
methods for generating an instance
superclass's
message
26. A command directed to an object is called an...
message
C Functionn
methods for generating an instance
calling code that does the instantiation for you
27. What does autorelease mean?
instance variables
receiving and handling events that are associated with it
selector[message]
wait until the loop finishes processing the event - at the end release it
28. 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...
declaration and initialization of a variable
retain
will be ignored
setPossessionName
29. Proceed through the loop - jump back to the top and check again
causes the program to immediately exit from the loop it is executing - whether its for - while or do
Model Objects[Factory Worker]
accessors - individually we call them 'getters' and 'setters'
Continue
30. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
group of global functions already assigned to this class
draw images
CGRect
the message release to all its entries
31. A UITableView usually needs three different pieces...
class's
draw images
data source - delegate and view controller
CGRect
32. Hold data and know nothing about the user interface
Model Objects[Factory Worker]
@interface ClassName:SuperClassName
initializer
only the innermost loop in which the break is executed is terminated
33. When do you take ownership?...
only the class and subclasses can access
copy - retain
Ready-Made Instance
Anytime you call a method with new - alloc or copy. You own and must release that object.
34. A collection object - an ordered list of objects that can be accesed by an index
array[class - NSMutableArray]
view controller
creates an instance of NSString that holds the character string
superclass's
35. Designated initializer makes sure that every...
instance variable of an object is valid
is an instance of that class
viewWillDissapear: and viewWillAppear:
protocol
36. In any application with UINavigationController - the navigation controller...
only the innermost loop in which the break is executed is terminated
has one root view controller
protocol
type - name and value
37. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
initializer
data source - view controller and delegate
initializers
a mechanism to enable specific callbacks
38. super - is used...
alloc - singleton - informational utility method?
the array becomes an owner of that object and has a pointer to it.
for inheritance - adopting the superclasses implementation
define it in the implemenation file
39. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
dealloc - is called on the object & the object's memory is returned to the heap
super - self
only the class and subclasses can access
CGRect bounds
40. Files Owner...
upper
viewWillDissapear: and viewWillAppear:
Encapsulation of functionality
Is a placeholder object
41. NSNumber - class...
creates an instance of NSString that holds the character string
Object wrapper around primitive types like int - float - double - BOOl
Used to find the time right now or to store past or future time/dates
Encapsulation of functionality
42. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
creating an initializer
NSCoder
calling code that does the instantiation for you
NSLog routine
43. NSArray - important methods...
@synthesize
to give it someone else - or another object
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
copy - retain
44. 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
45. If you have extra work you want to do on the view...
do so in viewDidLoad
NSBundle
nil
(id)initWithFrame:(CGRect)aRect;
46. A message is always contained in square brackets - and has three parts
in the dealloc - or when a Controller's view is 'unloaded'
to get and set variables
receiver - selector - arguments
Maintenance of state
47. Three ways instances are created...
ready-made instances - instantiation from scratch - and nib based instantiation
delegates and dataSources
receiver[message]
reuse your cells
48. The integer prefix is...
only the innermost loop in which the break is executed is terminated
CGFloat
%d
size and position
49. [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.
data
data source - delegate and view controller
Encapsulation of functionality
CF - Ref
50. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
will be ignored
methods for generating an instance
Object wrapper around primitive types like int - float - double - BOOl
lowercase - uppercase