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...
only the innermost loop in which the break is executed is terminated
do so in viewDidLoad
Core Graphics Framework
NSCoder
2. 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.
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
the array relinquishes ownership of that object and no longer has a pointer to it
array[class - NSMutableArray]
instance variables
3. Categories are an Objective C way to add _ to an existing class without subclassing
@interface ClassName:SuperClassName
causes the program to immediately exit from the loop it is executing - whether its for - while or do
methods
do so in viewDidLoad
4. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
define it in the implemenation file
lowercase - uppercase
attributes - behavior
@interface ClassName:SuperClassName
5. Also if you send the NSObject the _ message - you own that object.
the instance variables
pointers
view
retain
6. NSValue - class...
for inheritance - adopting the superclasses implementation
do so in viewDidLoad
Generic object wrapper for other non-object data types
receiving and handling events that are associated with it
7. A collection object - an ordered list of objects that can be accesed by an index
array[class - NSMutableArray]
protocol
receiver
self
8. Whenever a UINavigationController is about to swap views - it sends out two messages
initializers
the array becomes an owner of that object and has a pointer to it.
viewWillDissapear: and viewWillAppear:
super - self
9. When an object is added to a NSMutableArray - that object is sent the message to retain;...
the array becomes an owner of that object and has a pointer to it.
array[class - NSMutableArray]
declaration and initialization of a variable
methods for generating an instance
10. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
lowercase - uppercase
receiver
Hash table - Look up objects using a key to get a value.
Functions
11. In object oriented languages - we call methods that get and set instance variables accessors - individually we call them...
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
12. NSString *s = @'Hello - World'; is an example of...
Used to find the time right now or to store past or future time/dates
view
creating an initializer
declaration and initialization of a variable
13. A UITableViewController can fill all three roles of...
data source - view controller and delegate
causes the program to immediately exit from the loop it is executing - whether its for - while or do
@synthesize
view controller
14. Views have three properties related to their location and size: @property _ _;
NSBundle
CF - Ref
CGRect bounds - GCPoint center - CGRect frame
Object wrapper around primitive types like int - float - double - BOOl
15. NSDictionary...
they need to be defined in the implementation file
subview(s)
Hash table - Look up objects using a key to get a value.
@synthesize
16. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
object
values
do so in viewDidLoad
size and position
17. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
has one root view controller
Ready-Made Instance
retain
Continue
18. super - is used...
references to objects
Is a placeholder object
only the innermost loop in which the break is executed is terminated
for inheritance - adopting the superclasses implementation
19. 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 _.
subview(s)
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
Encapsulation of functionality
variable scope - if defined within a block
20. A view is an...
UIViewController
instance of UIView or one of its subclasses
Model Objects[Factory Worker]
NSLog routine
21. Property List...
collection of collections - NSArray of an NSArray
Continue
has one root view controller
is an instance of that class
22. Each _ has a 'designated' initializer method....
the array becomes an owner of that object and has a pointer to it.
attributes - behavior
class
size and position
23. NSArray - class...
ordered collection of objects - immutable
CGRect
Core Graphics Framework
declaration and initialization of a variable
24. A method in a _ is required unless its preceded by an @optional.
collection of collections - NSArray of an NSArray
instance variable of an object is valid
object
protocol
25. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
lowercase - uppercase
ordered collection of objects - immutable
will be ignored
NSLog routine
26. In any application with UINavigationController - the navigation controller...
collection of collections - NSArray of an NSArray
has one root view controller
receiver - selector - arguments
you always return the newly initialized object(return self)
27. A _ handles touch events.
view
CGRect
group of global functions already assigned to this class
will be ignored
28. Number one use of protocols in iOS...
receiver
the array becomes an owner of that object and has a pointer to it.
delegates and dataSources
the message release to all its entries
29. NSString objects are usually sent _ rather than _...
receiving and handling events that are associated with it
its dataSource
collection of collections - NSArray of an NSArray
copy - retain
30. All objects are accessed using...
Data Encapsulation
pointers
CGFloat
Anytime you call a method with new - alloc or copy. You own and must release that object.
31. initWithFrame: the designated initializer for UIView gives the view
define it in the implemenation file
attributes - behavior
the array becomes an owner of that object and has a pointer to it.
size and position
32. When making a tableView always...
will be ignored
Generic object wrapper for other non-object data types
You take ownership for an object you want to keep a pointer to
reuse your cells
33. If the view has no subviews - create it programmatically; if it has subviews
rectangular
create a XIB file
NSCoder
in the dealloc - or when a Controller's view is 'unloaded'
34. In the last line of an init method...
CGRect
C Functionn
group of global functions already assigned to this class
you always return the newly initialized object(return self)
35. An instance is a device for maintaining state. It's a box for _ of data.
@interface ClassName:SuperClassName
storage
collection of collections - NSArray of an NSArray
instance of UIView or one of its subclasses
36. After accessors have been defined in the header file...
message
Ready-Made Instance
is called every time the event occurs
they need to be defined in the implementation file
37. Any individual object belonging to any class...
is an instance of that class
superclass's
values
Data Encapsulation
38. The integer prefix is...
%d
delegates and dataSources
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
draw images
39. Each individual instance is a bundle of data that it maintains. Typically that data is private - which means that it's encapsulated as well; no other object knows what that data is or in what form it is kept. The only way to discover from outside wha
Maintenance of state
class's
NSLog routine
data source - view controller and delegate
40. Object Oriented based analogue to a function is called a...
Ready-Made Instance
Continue
method
values
41. Files Owner...
instance variables
Is a placeholder object
the array becomes an owner of that object and has a pointer to it.
to give it someone else - or another object
42. Asking a class or object to execute a method
message
Core Graphics Framework
an object's property
instance of UIView or one of its subclasses
43. Reference Counting...
NSCoder
an object's property
retain
You take ownership for an object you want to keep a pointer to
44. 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...
pointer - class
CF - Ref
data source - delegate and view controller
setPossessionName
45. Origin of a view's coordinate system is _ left
class methods - initializers
references to objects
upper
will be ignored
46. Instance Variables by default are called @protected meaning...
for inheritance - adopting the superclasses implementation
Maintenance of state
only the class and subclasses can access
cannot be added to an array
47. In Objective C arrays can hold only...
upper
references to objects
data source - view controller and delegate
view
48. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
NSCoder
is an instance of that class
Used to find the time right now or to store past or future time/dates
reuse your cells
49. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
Controller Objects[Managers]
callbacks
the array becomes an owner of that object and has a pointer to it.
UIView
50. Use of class methods - there are three...
alloc - singleton - informational utility method?
is an instance of that class
CGRect bounds
initializer