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 a break statement is executed from within a set of nested loops...
pointer - class
only the innermost loop in which the break is executed is terminated
ordered collection of objects - immutable
reuse your cells
2. Classes describe two things...
receiver[message]
attributes - behavior
CGRect bounds - GCPoint center - CGRect frame
data source - delegate and view controller
3. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
C Functionn
Ready-Made Instance
super - self
group of global functions already assigned to this class
4. Prefixing a character string with an @ symbol [specific - NSString class]...
message
creates an instance of NSString that holds the character string
%d
Anytime you call a method with new - alloc or copy. You own and must release that object.
5. A command directed to an object is called an...
you must import the header file of that class
type - name and value
message
the instance variables
6. UITableViewController is a subclass of...
UIViewController
Encapsulation of functionality
pointers
retain
7. The root view controller typically creates the next view controller - and the next _ creates the one after that
only the class and subclasses can access
you must import the header file of that class
view controller
creating an initializer
8. An instance is a device for maintaining state. It's a box for _ of data.
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
the array becomes an owner of that object and has a pointer to it.
storage
arguments[message]
9. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
safety - subclassability and makes code look more consistent with C structs
receiving and handling events that are associated with it
C Functionn
@interface ClassName:SuperClassName
10. 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
11. 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...
pointers
methods for generating an instance
setPossessionName
super - self
12. 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
cannot be added to an array
NSLog routine
you must import the header file of that class
13. 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 _.
Encapsulation of functionality
NSCoder
designated initializer
subview(s)
14. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
object
CGRect bounds - GCPoint center - CGRect frame
copy - retain
NSLog routine
15. When an NSMutableArray is deallocated - it sends...
instance of UIView or one of its subclasses
its dataSource
Model Objects[Factory Worker]
the message release to all its entries
16. Only exists within the statement block there defined - outside of the block is fine
receiver[message]
reuse your cells
variable scope - if defined within a block
%d
17. Also if you send the NSObject the _ message - you own that object.
receiving and handling events that are associated with it
CGRect bounds
retain
self
18. 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
19. Name of the method to be executed
data
selector[message]
Ready-Made Instance
'getters' and 'setters'
20. When a view controller presents a modal view controller - the _ of the modal view controller is set to be the parent of the presenting controller
size and position
receiver - selector - arguments
upper
parentViewController
21. NSString *s = @'Hello - World'; is an example of...
Core Graphics Framework
declaration and initialization of a variable
for inheritance - adopting the superclasses implementation
designated initializer
22. You use _ to implement the view
upper
CGRect bounds
creating an initializer
methods
23. Views have three properties related to their location and size: @property _ _;
receiver
define it in the implemenation file
CGRect bounds - GCPoint center - CGRect frame
CF - Ref
24. Instance Variables by default are called @protected meaning...
will be ignored
instance variable of an object is valid
variable scope - if defined within a block
only the class and subclasses can access
25. Whenever a UINavigationController is about to swap views - it sends out two messages
create a XIB file
viewWillDissapear: and viewWillAppear:
is called every time the event occurs
declaration and initialization of a variable
26. Values to be supplied as the parameters to the method
object
arguments[message]
pointers
Abstraction
27. Delegation is an object oriented approach to
new instances of the class or retrieve some global property of the class.
Data Encapsulation
arguments[message]
callbacks
28. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
Continue
Instantiation from scratch
declaration and initialization of a variable
data source - view controller and delegate
29. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
a single-array can contain objects of different types
position
super - self
CGRect bounds
30. A UITableViewController can fill all three roles of...
'getters' and 'setters'
class
data source - view controller and delegate
C Functionn
31. UIViewController has several methods that get called at certain times...
wait until the loop finishes processing the event - at the end release it
message
unordered collection of objects - objects must be unique
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
32. Proceed through the loop - jump back to the top and check again
callbacks
upper
an object's property
Continue
33. Why properties?
NSLog routine
safety - subclassability and makes code look more consistent with C structs
data
UIView
34. How do I implement my drawRect?
CGRect
instance of UIView or one of its subclasses
Core Graphics Framework
UIViewController
35. Primitives and C Structures...
cannot be added to an array
setPossessionName
accessors - individually we call them 'getters' and 'setters'
copy - retain
36. UIImageView is used to...
rectangular
draw images
do so in viewDidLoad
message
37. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
instance of UIView or one of its subclasses
new instances of the class or retrieve some global property of the class.
parentViewController
Controller Objects[Managers]
38. When do you take ownership?...
a single-array can contain objects of different types
Continue
header files declare
Anytime you call a method with new - alloc or copy. You own and must release that object.
39. The integer prefix is...
%d
(id)initWithFrame:(CGRect)aRect;
view controller's initialization method
only the class and subclasses can access
40. 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.
Object wrapper around primitive types like int - float - double - BOOl
instance variables
receiver[message]
header files declare
41. When an object is removed from an NSMutableArray - that object is sent the message release;...
declaration and initialization of a variable
is called every time the event occurs
you must import the header file of that class
the array relinquishes ownership of that object and no longer has a pointer to it
42. In Objective C arrays can hold only...
only the class and subclasses can access
Model Objects[Factory Worker]
references to objects
define it in the implemenation file
43. All objects are accessed using...
collection of collections - NSArray of an NSArray
UIView
new instances of the class or retrieve some global property of the class.
pointers
44. Property List...
CGRect bounds - GCPoint center - CGRect frame
CGRect
has one root view controller
collection of collections - NSArray of an NSArray
45. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
to give it someone else - or another object
storage
NSCoder
dealloc - is called on the object & the object's memory is returned to the heap
46. Three ways instances are created...
initializer
Instantiation from scratch
subview(s)
ready-made instances - instantiation from scratch - and nib based instantiation
47. NSArray - class...
creates an instance of NSString that holds the character string
subview(s)
CGRect
ordered collection of objects - immutable
48. 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....
Object wrapper around primitive types like int - float - double - BOOl
Generic object wrapper for other non-object data types
Used to find the time right now or to store past or future time/dates
define it in the implemenation file
49. NSDate - class...
Used to find the time right now or to store past or future time/dates
receiving and handling events that are associated with it
data source - view controller and delegate
self
50. 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
callbacks
initializers
Encapsulation of functionality
references to objects