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. Defining variables - three parts...
Generic object wrapper for other non-object data types
is called every time the event occurs
type - name and value
Instantiation from scratch
2. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
Instantiation from scratch
rectangular
only the class and subclasses can access
instance variables
3. In any application with UINavigationController - the navigation controller...
has one root view controller
draw images
causes the program to immediately exit from the loop it is executing - whether its for - while or do
Core Graphics Framework
4. Any individual object belonging to any class...
collection of collections - NSArray of an NSArray
Continue
type - name and value
is an instance of that class
5. 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...
setPossessionName
is called every time the event occurs
'getters' and 'setters'
ordered collection of objects - immutable
6. Designated initializer makes sure that every...
instance variable of an object is valid
CGRect bounds
values
viewWillDissapear: and viewWillAppear:
7. Core foundation classes are prefixed with _ and suffixed with _
Model Objects[Factory Worker]
delegates and dataSources
implementation
CF - Ref
8. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
Maintenance of state
implementation
CGFloat
class methods - initializers
9. A _ handles touch events.
Functions
CGFloat
view
has one root view controller
10. A view is a subclass of _
UIView
safety - subclassability and makes code look more consistent with C structs
CGRect
ready-made instances - instantiation from scratch - and nib based instantiation
11. A collection object - an ordered list of objects that can be accesed by an index
Generic object wrapper for other non-object data types
array[class - NSMutableArray]
CGRect bounds - GCPoint center - CGRect frame
pointers
12. How do I implement my drawRect?
Core Graphics Framework
Encapsulation of functionality
methods
You take ownership for an object you want to keep a pointer to
13. NSArray - class...
ordered collection of objects - immutable
to give it someone else - or another object
CGRect
retain
14. A callback is a function that is supplied in advance of an event - and...
to give it someone else - or another object
its dataSource
first responder
is called every time the event occurs
15. If a break statement is executed from within a set of nested loops...
superclass's
view controller
receiver
only the innermost loop in which the break is executed is terminated
16. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
CF - Ref
delegates and dataSources
initializers
you always return the newly initialized object(return self)
17. 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....
CGRect bounds - GCPoint center - CGRect frame
only the innermost loop in which the break is executed is terminated
define it in the implemenation file
a single-array can contain objects of different types
18. NSDate - class...
attributes - behavior
view controller's initialization method
Used to find the time right now or to store past or future time/dates
instance variable of an object is valid
19. When the message endEditing: is sent to a view - if it or any of its subviews or currently the _ - it will resign its first responder statues - and the keyboard will be dismissed.
first responder
receiver - selector - arguments
initializers
class methods - initializers
20. Class methods do not operate on an _ or have any access to _ variables....
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
instance
group of global functions already assigned to this class
@synthesize
21. Name of the method to be executed
Core Graphics Framework
data source - delegate and view controller
selector[message]
rectangular
22. Only exists within the statement block there defined - outside of the block is fine
class's
You take ownership for an object you want to keep a pointer to
variable scope - if defined within a block
copy - retain
23. NSValue - class...
define it in the implemenation file
view controller
Generic object wrapper for other non-object data types
the message release to all its entries
24. 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
rectangular
draw images
Encapsulation of functionality
instance variable of an object is valid
25. A method in a _ is required unless its preceded by an @optional.
@synthesize
protocol
Ready-Made Instance
draw images
26. Number one use of protocols in iOS...
the array becomes an owner of that object and has a pointer to it.
size and position
delegates and dataSources
safety - subclassability and makes code look more consistent with C structs
27. Origin of a view's coordinate system is _ left
upper
Object wrapper around primitive types like int - float - double - BOOl
view
for inheritance - adopting the superclasses implementation
28. Each _ has a 'designated' initializer method....
instance of UIView or one of its subclasses
class
receiving and handling events that are associated with it
subview(s)
29. If you have extra work you want to do on the view...
do so in viewDidLoad
instance variable of an object is valid
in the dealloc - or when a Controller's view is 'unloaded'
they need to be defined in the implementation file
30. Each class picks one _ as it's designated initializer....
class methods - initializers
initializer
first responder
alloc - singleton - informational utility method?
31. A UITableView usually needs three different pieces...
creating an initializer
data source - delegate and view controller
viewWillDissapear: and viewWillAppear:
Core Graphics Framework
32. Typically the designated initializer has parameters for the most important and frequently used _ of an object
initializers
instance variables
data source - delegate and view controller
is an instance of that class
33. Views have three properties related to their location and size: @property _ _;
data source - view controller and delegate
CGRect bounds - GCPoint center - CGRect frame
NSBundle
(id)initWithFrame:(CGRect)aRect;
34. When do you take ownership?...
new instances of the class or retrieve some global property of the class.
array[class - NSMutableArray]
Anytime you call a method with new - alloc or copy. You own and must release that object.
receiver - selector - arguments
35. Categories are an Objective C way to add _ to an existing class without subclassing
new instances of the class or retrieve some global property of the class.
object
methods
arguments[message]
36. NSNumber - class...
methods for generating an instance
super - self
UIViewController
Object wrapper around primitive types like int - float - double - BOOl
37. What does autorelease mean?
you must import the header file of that class
wait until the loop finishes processing the event - at the end release it
alloc - singleton - informational utility method?
message
38. 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.
retain
UIView
delegates and dataSources
instance variables
39. UIView - designated initializer...
the instance variables
receiver
(id)initWithFrame:(CGRect)aRect;
UIViewController
40. The notion that the data for an object is stored in it's instance variables and is accessed only by the objects methods. This maintains the integrity of the data.
Data Encapsulation
receiver
message
initializer
41. @property - is using methods...
for inheritance - adopting the superclasses implementation
to get and set variables
NSLog routine
declaration and initialization of a variable
42. 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
data source - delegate and view controller
%d
position
43. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
pointer - class
NSCoder
method
You take ownership for an object you want to keep a pointer to
44. A view represents a _ area
initializer
declaration and initialization of a variable
rectangular
is an instance of that class
45. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
callbacks
accessors - individually we call them 'getters' and 'setters'
%d
header files declare
46. In a class method you cannot access...
message
safety - subclassability and makes code look more consistent with C structs
the instance variables
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
47. 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
48. A message is always contained in square brackets - and has three parts
they need to be defined in the implementation file
receiver - selector - arguments
view controller
(id)initWithFrame:(CGRect)aRect;
49. When an NSMutableArray is deallocated - it sends...
Continue
the message release to all its entries
parentViewController
new instances of the class or retrieve some global property of the class.
50. If the view has no subviews - create it programmatically; if it has subviews
'getters' and 'setters'
in the dealloc - or when a Controller's view is 'unloaded'
create a XIB file
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear