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...
pointer to an object
Is a placeholder object
receiver - selector - arguments
do so in viewDidLoad
2. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
super - self
Ready-Made Instance
method
instance of UIView or one of its subclasses
3. 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
4. Center and frame are used to _ your view
callbacks
CF - Ref
receiving and handling events that are associated with it
position
5. NSArray - class...
ordered collection of objects - immutable
super - self
You take ownership for an object you want to keep a pointer to
for inheritance - adopting the superclasses implementation
6. Dynamic binding means that when we call a certain object's method - and there are several _ of that method - the right one is figured out at runtime.
implementation
protocol
they need to be defined in the implementation file
instance variables
7. How do I implement my drawRect?
creates an instance of NSString that holds the character string
Functions
receiver
Core Graphics Framework
8. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
message
Data Encapsulation
data
initializers
9. 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 _.
dealloc - is called on the object & the object's memory is returned to the heap
parentViewController
nil
header files declare
10. A view represents a _ area
ready-made instances - instantiation from scratch - and nib based instantiation
create a XIB file
rectangular
methods for generating an instance
11. NSDate - class...
lowercase - uppercase
Used to find the time right now or to store past or future time/dates
view controller
CF - Ref
12. 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
calling code that does the instantiation for you
super - self
Encapsulation of functionality
selector[message]
13. Object Oriented based analogue to a function is called a...
new instances of the class or retrieve some global property of the class.
calling code that does the instantiation for you
method
causes the program to immediately exit from the loop it is executing - whether its for - while or do
14. It's class is sent the message alloc - which creates an instance of that class and returns a pointer to it - and then that instance is sent the message init - which gives its instance variables initial values.
view controller's initialization method
parentViewController
selector[message]
creating an initializer
15. What does autorelease mean?
lowercase - uppercase
to get and set variables
wait until the loop finishes processing the event - at the end release it
self
16. 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
Used to find the time right now or to store past or future time/dates
view controller's initialization method
Functions
wait until the loop finishes processing the event - at the end release it
17. Whenever a UINavigationController is about to swap views - it sends out two messages
pointer - class
viewWillDissapear: and viewWillAppear:
Hash table - Look up objects using a key to get a value.
in the dealloc - or when a Controller's view is 'unloaded'
18. At the top of any implementation file...
parentViewController
you must import the header file of that class
receiver - selector - arguments
arguments[message]
19. Only exists within the statement block there defined - outside of the block is fine
variable scope - if defined within a block
retain
object
Data Encapsulation
20. Just a floating point number - but we always use it for graphics.
CGFloat
CGRect
viewWillDissapear: and viewWillAppear:
safety - subclassability and makes code look more consistent with C structs
21. The class is responsible for what instance variables the instance has - but not the _ of those variables.
header files declare
values
draw images
storage
22. 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
23. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
%d
class methods - initializers
variable scope - if defined within a block
instance variable of an object is valid
24. If the view has no subviews - create it programmatically; if it has subviews
create a XIB file
nil
@synthesize
view controller
25. The only reason to temporarily own an object - is...
alloc - singleton - informational utility method?
viewWillDissapear: and viewWillAppear:
Functions
to give it someone else - or another object
26. When making a tableView always...
lowercase - uppercase
receiving and handling events that are associated with it
references to objects
reuse your cells
27. Each class picks one _ as it's designated initializer....
initializer
NSBundle
Continue
superclass's
28. NSString *s = @'Hello - World'; is an example of...
references to objects
UIViewController
type - name and value
declaration and initialization of a variable
29. An instance is a device for maintaining state. It's a box for _ of data.
nil
class methods - initializers
the message release to all its entries
storage
30. UITableViewController is a subclass of...
superclass's
UIViewController
references to objects
the message release to all its entries
31. You use _ to implement the view
accessors - individually we call them 'getters' and 'setters'
@interface ClassName:SuperClassName
lowercase - uppercase
CGRect bounds
32. A responder is responsible for...
receiving and handling events that are associated with it
receiver[message]
array[class - NSMutableArray]
subview(s)
33. class methods...
group of global functions already assigned to this class
Core Graphics Framework
data source - delegate and view controller
creating an initializer
34. The root view controller typically creates the next view controller - and the next _ creates the one after that
view controller
first responder
CGFloat
self
35. Delegation is an object oriented approach to
callbacks
NSLog routine
draw images
instance
36. A view is a subclass of _
receiving and handling events that are associated with it
Anytime you call a method with new - alloc or copy. You own and must release that object.
declaration and initialization of a variable
UIView
37. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
variable scope - if defined within a block
safety - subclassability and makes code look more consistent with C structs
to give it someone else - or another object
self
38. A method in a _ is required unless its preceded by an @optional.
protocol
will be ignored
data source - view controller and delegate
group of global functions already assigned to this class
39. NSNumber - class...
Encapsulation of functionality
Object wrapper around primitive types like int - float - double - BOOl
CGRect bounds
@interface ClassName:SuperClassName
40. A _ handles touch events.
UIView
view
%d
callbacks
41. Use of class methods - there are three...
unordered collection of objects - objects must be unique
for inheritance - adopting the superclasses implementation
alloc - singleton - informational utility method?
Is a placeholder object
42. When an NSMutableArray is deallocated - it sends...
reuse your cells
implementation
the message release to all its entries
safety - subclassability and makes code look more consistent with C structs
43. 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.
position
CF - Ref
instance variables
variable scope - if defined within a block
44. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
NSBundle
pointer - class
CF - Ref
designated initializer
45. 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
46. After accessors have been defined in the header file...
they need to be defined in the implementation file
UIViewController
Continue
receiver
47. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
Ready-Made Instance
You take ownership for an object you want to keep a pointer to
attributes - behavior
Abstraction
48. [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
to get and set variables
header files declare
first responder
49. In Cocoa Touch - the table view asks another object _ what it should display...
initializer
delegates and dataSources
data
its dataSource
50. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
the message release to all its entries
receiver - selector - arguments
draw images
object