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. Just a floating point number - but we always use it for graphics.
CGFloat
UIViewController
UIView
self
2. if you implemented both the setter and getter - the @synthesize method...
methods
will be ignored
receiver
Object wrapper around primitive types like int - float - double - BOOl
3. 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
type - name and value
receiver[message]
4. @property declares - and _ implements the setter and getter...
@synthesize
for inheritance - adopting the superclasses implementation
class's
its dataSource
5. If a break statement is executed from within a set of nested loops...
will be ignored
storage
only the innermost loop in which the break is executed is terminated
creating an initializer
6. Instance Variables by default are called @protected meaning...
they need to be defined in the implementation file
upper
initializer
only the class and subclasses can access
7. NSArray - class...
ordered collection of objects - immutable
receiving and handling events that are associated with it
Instantiation from scratch
header files declare
8. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
Instantiation from scratch
CGRect
instance of UIView or one of its subclasses
CGRect bounds - GCPoint center - CGRect frame
9. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
lowercase - uppercase
alloc - singleton - informational utility method?
Maintenance of state
a mechanism to enable specific callbacks
10. You use _ to implement the view
a single-array can contain objects of different types
pointer - class
CGRect bounds
superclass's
11. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
has one root view controller
references to objects
@interface ClassName:SuperClassName
storage
12. An instance is a device for maintaining state. It's a box for _ of data.
storage
pointer to an object
has one root view controller
to get and set variables
13. The only reason to temporarily own an object - is...
CGRect
to give it someone else - or another object
Model Objects[Factory Worker]
viewWillDissapear: and viewWillAppear:
14. A UITableViewController can fill all three roles of...
data source - view controller and delegate
collection of collections - NSArray of an NSArray
position
Controller Objects[Managers]
15. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
header files declare
CGFloat
copy - retain
arguments[message]
16. When an NSMutableArray is deallocated - it sends...
Encapsulation of functionality
only the innermost loop in which the break is executed is terminated
ordered collection of objects - immutable
the message release to all its entries
17. If the view has no subviews - create it programmatically; if it has subviews
will be ignored
delegates and dataSources
only the class and subclasses can access
create a XIB file
18. A delegate is a pointer to an object with a set of methods the delegate-holder knows how to call. In other words - it's _ from a later created object
methods for generating an instance
C Functionn
a mechanism to enable specific callbacks
receiving and handling events that are associated with it
19. NSString objects are usually sent _ rather than _...
reuse your cells
copy - retain
protocol
to get and set variables
20. Designated initializer makes sure that every...
pointers
initializers
header files declare
instance variable of an object is valid
21. 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 _.
CF - Ref
nil
CGRect bounds - GCPoint center - CGRect frame
is an instance of that class
22. 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
Instantiation from scratch
to give it someone else - or another object
type - name and value
23. Also - because arrays only hold a pointer to an object...
a single-array can contain objects of different types
data source - delegate and view controller
has one root view controller
copy - retain
24. 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
25. A responder is responsible for...
Instantiation from scratch
Object wrapper around primitive types like int - float - double - BOOl
superclass's
receiving and handling events that are associated with it
26. A view is an...
instance of UIView or one of its subclasses
Object wrapper around primitive types like int - float - double - BOOl
implementation
do so in viewDidLoad
27. The integer prefix is...
the instance variables
%d
you must import the header file of that class
collection of collections - NSArray of an NSArray
28. super - is used...
collection of collections - NSArray of an NSArray
data source - delegate and view controller
ordered collection of objects - immutable
for inheritance - adopting the superclasses implementation
29. A view is a subclass of _
accessors - individually we call them 'getters' and 'setters'
UIView
class methods - initializers
first responder
30. What happens when the last owner calls release?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
31. initWithFrame: the designated initializer for UIView gives the view
@synthesize
size and position
object
receiver - selector - arguments
32. A view represents a _ area
NSLog routine
rectangular
message
do so in viewDidLoad
33. Any individual object belonging to any class...
declaration and initialization of a variable
instance variables
calling code that does the instantiation for you
is an instance of that class
34. NSNumber - class...
Object wrapper around primitive types like int - float - double - BOOl
Ready-Made Instance
wait until the loop finishes processing the event - at the end release it
Continue
35. 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 _.
object
only the class and subclasses can access
calling code that does the instantiation for you
subview(s)
36. Primitives and C Structures...
dealloc - is called on the object & the object's memory is returned to the heap
cannot be added to an array
the array relinquishes ownership of that object and no longer has a pointer to it
object
37. 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....
CF - Ref
data source - delegate and view controller
define it in the implemenation file
safety - subclassability and makes code look more consistent with C structs
38. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
group of global functions already assigned to this class
super - self
Data Encapsulation
instance variables
39. 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.
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
position
implementation
NSBundle
40. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
CGRect
data source - view controller and delegate
view controller
Ready-Made Instance
41. Each class picks one _ as it's designated initializer....
nil
initializer
arguments[message]
designated initializer
42. Center and frame are used to _ your view
Hash table - Look up objects using a key to get a value.
new instances of the class or retrieve some global property of the class.
position
Ready-Made Instance
43. Use of class methods - there are three...
instance
data source - delegate and view controller
alloc - singleton - informational utility method?
header files declare
44. If you have extra work you want to do on the view...
designated initializer
do so in viewDidLoad
is called every time the event occurs
instance
45. 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.
designated initializer
instance variables
object
an object's property
46. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
to give it someone else - or another object
group of global functions already assigned to this class
collection of collections - NSArray of an NSArray
C Functionn
47. 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
48. Origin of a view's coordinate system is _ left
UIView
data source - delegate and view controller
upper
data
49. Execution of the break statement...
object
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
causes the program to immediately exit from the loop it is executing - whether its for - while or do
Abstraction
50. Prefixing a character string with an @ symbol [specific - NSString class]...
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
Instantiation from scratch
delegates and dataSources
creates an instance of NSString that holds the character string