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. NSValue - class...
a mechanism to enable specific callbacks
unordered collection of objects - objects must be unique
is called every time the event occurs
Generic object wrapper for other non-object data types
2. Instance Variables by default are called @protected meaning...
view
dealloc - is called on the object & the object's memory is returned to the heap
Data Encapsulation
only the class and subclasses can access
3. NSArray - important methods...
lowercase - uppercase
viewWillDissapear: and viewWillAppear:
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
Core Graphics Framework
4. Also if you send the NSObject the _ message - you own that object.
class
retain
class's
NSLog routine
5. 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.
in the dealloc - or when a Controller's view is 'unloaded'
references to objects
creating an initializer
instance variables
6. When an NSMutableArray is deallocated - it sends...
an object's property
draw images
the message release to all its entries
NSBundle
7. Views have three properties related to their location and size: @property _ _;
CGRect bounds - GCPoint center - CGRect frame
designated initializer
unordered collection of objects - objects must be unique
they need to be defined in the implementation file
8. Class methods do not operate on an _ or have any access to _ variables....
instance
attributes - behavior
its dataSource
variable scope - if defined within a block
9. A responder is responsible for...
CGRect
receiving and handling events that are associated with it
will be ignored
Controller Objects[Managers]
10. Execution of the break statement...
subview(s)
causes the program to immediately exit from the loop it is executing - whether its for - while or do
Model Objects[Factory Worker]
class methods - initializers
11. NSDate - class...
C Functionn
callbacks
Used to find the time right now or to store past or future time/dates
safety - subclassability and makes code look more consistent with C structs
12. You use _ to implement the view
Is a placeholder object
create a XIB file
CGRect bounds
CGRect bounds - GCPoint center - CGRect frame
13. A pointer to the object being asked to execute a method
array[class - NSMutableArray]
retain
receiver[message]
NSLog routine
14. A collection object - an ordered list of objects that can be accesed by an index
array[class - NSMutableArray]
selector[message]
NSLog routine
You take ownership for an object you want to keep a pointer to
15. if you implemented both the setter and getter - the @synthesize method...
you always return the newly initialized object(return self)
UIViewController
Continue
will be ignored
16. A function in the objective c library that simply displays or logs it's argument
superclass's
to give it someone else - or another object
pointer to an object
NSLog routine
17. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
instance variables
instance variables
Instantiation from scratch
Data Encapsulation
18. 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 _.
declaration and initialization of a variable
subview(s)
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
protocol
19. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
object
Ready-Made Instance
creates an instance of NSString that holds the character string
the message release to all its entries
20. 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
pointer to an object
Encapsulation of functionality
the array relinquishes ownership of that object and no longer has a pointer to it
references to objects
21. Origin of a view's coordinate system is _ left
Instantiation from scratch
instance of UIView or one of its subclasses
upper
instance variables
22. Each class picks one _ as it's designated initializer....
initializer
NSBundle
UIViewController
only the class and subclasses can access
23. A view is a subclass of _
Anytime you call a method with new - alloc or copy. You own and must release that object.
UIViewController
UIView
the instance variables
24. initWithFrame: the designated initializer for UIView gives the view
define it in the implemenation file
safety - subclassability and makes code look more consistent with C structs
size and position
Encapsulation of functionality
25. 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.
collection of collections - NSArray of an NSArray
Maintenance of state
first responder
'getters' and 'setters'
26. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
self
group of global functions already assigned to this class
position
receiver
27. 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
protocol
superclass's
the instance variables
Functions
28. A UITableViewController can fill all three roles of...
superclass's
delegates and dataSources
data source - view controller and delegate
instance variables
29. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
initializers
(id)initWithFrame:(CGRect)aRect;
pointer to an object
storage
30. Number one use of protocols in iOS...
delegates and dataSources
class's
draw images
pointers
31. Designated initializer makes sure that every...
instance variable of an object is valid
alloc - singleton - informational utility method?
retain
Continue
32. A method in a _ is required unless its preceded by an @optional.
protocol
calling code that does the instantiation for you
self
retain
33. @property - is using methods...
unordered collection of objects - objects must be unique
to get and set variables
variable scope - if defined within a block
ready-made instances - instantiation from scratch - and nib based instantiation
34. Each _ has a 'designated' initializer method....
class
they need to be defined in the implementation file
delegates and dataSources
instance of UIView or one of its subclasses
35. A message is always contained in square brackets - and has three parts
NSBundle
protocol
%d
receiver - selector - arguments
36. To load a Xib file manually - you use _
reuse your cells
Core Graphics Framework
NSBundle
arguments[message]
37. Proceed through the loop - jump back to the top and check again
Continue
copy - retain
initializers
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
38. NSString *s = @'Hello - World'; is an example of...
the instance variables
pointers
declaration and initialization of a variable
Continue
39. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
collection of collections - NSArray of an NSArray
@interface ClassName:SuperClassName
to give it someone else - or another object
is called every time the event occurs
40. When do you take ownership?...
is called every time the event occurs
Anytime you call a method with new - alloc or copy. You own and must release that object.
references to objects
do so in viewDidLoad
41. class methods...
view
only the innermost loop in which the break is executed is terminated
group of global functions already assigned to this class
CGRect
42. 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
Instantiation from scratch
NSLog routine
C Functionn
43. 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....
position
the message release to all its entries
superclass's
define it in the implemenation file
44. NSNumber - class...
to give it someone else - or another object
class
Controller Objects[Managers]
Object wrapper around primitive types like int - float - double - BOOl
45. 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 _.
pointer - class
first responder
NSCoder
NSLog routine
46. Categories are an Objective C way to add _ to an existing class without subclassing
safety - subclassability and makes code look more consistent with C structs
upper
Data Encapsulation
methods
47. After accessors have been defined in the header file...
Instantiation from scratch
delegates and dataSources
they need to be defined in the implementation file
NSLog routine
48. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
NSCoder
class's
Functions
49. NSString objects are usually sent _ rather than _...
causes the program to immediately exit from the loop it is executing - whether its for - while or do
superclass's
accessors - individually we call them 'getters' and 'setters'
copy - retain
50. 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