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. In Objective C arrays can hold only...
copy - retain
references to objects
UIViewController
collection of collections - NSArray of an NSArray
2. Just a floating point number - but we always use it for graphics.
CGFloat
the message release to all its entries
view
creates an instance of NSString that holds the character string
3. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
class
self
pointer to an object
reuse your cells
4. A view is an...
an object's property
instance of UIView or one of its subclasses
NSCoder
Abstraction
5. Name of the method to be executed
causes the program to immediately exit from the loop it is executing - whether its for - while or do
create a XIB file
selector[message]
header files declare
6. A responder is responsible for...
upper
has one root view controller
the message release to all its entries
receiving and handling events that are associated with it
7. Typically the designated initializer has parameters for the most important and frequently used _ of an object
NSBundle
designated initializer
do so in viewDidLoad
instance variables
8. 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
message
the array relinquishes ownership of that object and no longer has a pointer to it
Model Objects[Factory Worker]
9. NSDictionary...
unordered collection of objects - objects must be unique
ordered collection of objects - immutable
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
Hash table - Look up objects using a key to get a value.
10. super - is used...
reuse your cells
superclass's
for inheritance - adopting the superclasses implementation
lowercase - uppercase
11. When an NSMutableArray is deallocated - it sends...
the message release to all its entries
storage
has one root view controller
class's
12. NSArray - class...
receiver[message]
CF - Ref
ordered collection of objects - immutable
data source - delegate and view controller
13. In the last line of an init method...
you always return the newly initialized object(return self)
to give it someone else - or another object
a single-array can contain objects of different types
references to objects
14. Center and frame are used to _ your view
position
accessors - individually we call them 'getters' and 'setters'
new instances of the class or retrieve some global property of the class.
view
15. Primitives and C Structures...
cannot be added to an array
subview(s)
receiver
UIView
16. You use _ to implement the view
Core Graphics Framework
CGRect bounds
Functions
Continue
17. The integer prefix is...
Is a placeholder object
class
causes the program to immediately exit from the loop it is executing - whether its for - while or do
%d
18. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
you must import the header file of that class
C Functionn
class methods - initializers
in the dealloc - or when a Controller's view is 'unloaded'
19. In general - class methods tend to be factory methods - that is...
methods for generating an instance
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
only the innermost loop in which the break is executed is terminated
the array becomes an owner of that object and has a pointer to it.
20. Views have three properties related to their location and size: @property _ _;
methods for generating an instance
storage
CGRect bounds - GCPoint center - CGRect frame
receiver - selector - arguments
21. 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
wait until the loop finishes processing the event - at the end release it
ready-made instances - instantiation from scratch - and nib based instantiation
Continue
Maintenance of state
22. An instance is a device for maintaining state. It's a box for _ of data.
storage
you must import the header file of that class
collection of collections - NSArray of an NSArray
data
23. Three ways instances are created...
Model Objects[Factory Worker]
size and position
ready-made instances - instantiation from scratch - and nib based instantiation
Functions
24. A UITableView usually needs three different pieces...
a mechanism to enable specific callbacks
they need to be defined in the implementation file
data source - delegate and view controller
Ready-Made Instance
25. When an object is removed from an NSMutableArray - that object is sent the message release;...
type - name and value
data source - view controller and delegate
the array relinquishes ownership of that object and no longer has a pointer to it
Ready-Made Instance
26. Object Oriented based analogue to a function is called a...
initializer
data source - delegate and view controller
method
CGRect bounds
27. 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.
@interface ClassName:SuperClassName
implementation
in the dealloc - or when a Controller's view is 'unloaded'
storage
28. 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
you must import the header file of that class
message
has one root view controller
parentViewController
29. When making a tableView always...
data source - view controller and delegate
class
cannot be added to an array
reuse your cells
30. 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
31. Origin of a view's coordinate system is _ left
position
a single-array can contain objects of different types
data source - view controller and delegate
upper
32. A view represents a _ area
rectangular
NSBundle
Anytime you call a method with new - alloc or copy. You own and must release that object.
CGRect bounds - GCPoint center - CGRect frame
33. In any application with UINavigationController - the navigation controller...
class
Generic object wrapper for other non-object data types
has one root view controller
they need to be defined in the implementation file
34. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
initializers
will be ignored
they need to be defined in the implementation file
in the dealloc - or when a Controller's view is 'unloaded'
35. A UITableViewController can fill all three roles of...
data source - view controller and delegate
You take ownership for an object you want to keep a pointer to
dealloc - is called on the object & the object's memory is returned to the heap
declaration and initialization of a variable
36. 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.
header files declare
first responder
data
subview(s)
37. Files Owner...
Is a placeholder object
class methods - initializers
Data Encapsulation
@synthesize
38. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
initializer
array[class - NSMutableArray]
@interface ClassName:SuperClassName
designated initializer
39. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
data source - view controller and delegate
Generic object wrapper for other non-object data types
super - self
lowercase - uppercase
40. Hold data and know nothing about the user interface
Model Objects[Factory Worker]
upper
view controller's initialization method
first responder
41. If a break statement is executed from within a set of nested loops...
Abstraction
ready-made instances - instantiation from scratch - and nib based instantiation
only the innermost loop in which the break is executed is terminated
view controller
42. Use of class methods - there are three...
subview(s)
alloc - singleton - informational utility method?
ordered collection of objects - immutable
%d
43. The only reason to temporarily own an object - is...
methods
create a XIB file
to give it someone else - or another object
you must import the header file of that class
44. A collection object - an ordered list of objects that can be accesed by an index
array[class - NSMutableArray]
implementation
parentViewController
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
45. When an object is added to a NSMutableArray - that object is sent the message to retain;...
@interface ClassName:SuperClassName
Encapsulation of functionality
will be ignored
the array becomes an owner of that object and has a pointer to it.
46. Each class picks one _ as it's designated initializer....
alloc - singleton - informational utility method?
selector[message]
initializer
parentViewController
47. Class methods typically either create
new instances of the class or retrieve some global property of the class.
instance
class
lowercase - uppercase
48. The root view controller typically creates the next view controller - and the next _ creates the one after that
collection of collections - NSArray of an NSArray
CGRect
view controller
attributes - behavior
49. In a class method you cannot access...
message
selector[message]
causes the program to immediately exit from the loop it is executing - whether its for - while or do
the instance variables
50. After accessors have been defined in the header file...
group of global functions already assigned to this class
they need to be defined in the implementation file
for inheritance - adopting the superclasses implementation
alloc - singleton - informational utility method?