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 the view has no subviews - create it programmatically; if it has subviews
create a XIB file
Ready-Made Instance
view controller
alloc - singleton - informational utility method?
2. Only exists within the statement block there defined - outside of the block is fine
draw images
method
arguments[message]
variable scope - if defined within a block
3. 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.
instance variables
message
variable scope - if defined within a block
instance variables
4. 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 _.
a single-array can contain objects of different types
Continue
subview(s)
view controller
5. A responder is responsible for...
receiving and handling events that are associated with it
designated initializer
to give it someone else - or another object
group of global functions already assigned to this class
6. Class methods typically either create
only the class and subclasses can access
methods
new instances of the class or retrieve some global property of the class.
its dataSource
7. @property - is using methods...
creating an initializer
to get and set variables
cannot be added to an array
callbacks
8. Primitives and C Structures...
ordered collection of objects - immutable
cannot be added to an array
the message release to all its entries
a mechanism to enable specific callbacks
9. Also if you send the NSObject the _ message - you own that object.
You take ownership for an object you want to keep a pointer to
retain
only the class and subclasses can access
ordered collection of objects - immutable
10. The integer prefix is...
size and position
type - name and value
NSBundle
%d
11. If a break statement is executed from within a set of nested loops...
@interface ClassName:SuperClassName
pointer - class
only the innermost loop in which the break is executed is terminated
You take ownership for an object you want to keep a pointer to
12. Ready-made instances...
@synthesize
(id)initWithFrame:(CGRect)aRect;
calling code that does the instantiation for you
instance of UIView or one of its subclasses
13. When making a tableView always...
unordered collection of objects - objects must be unique
reuse your cells
setPossessionName
type - name and value
14. Use of class methods - there are three...
designated initializer
CGRect bounds - GCPoint center - CGRect frame
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
alloc - singleton - informational utility method?
15. NSValue - class...
'getters' and 'setters'
Generic object wrapper for other non-object data types
view
a mechanism to enable specific callbacks
16. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
CGRect
upper
wait until the loop finishes processing the event - at the end release it
implementation
17. 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
18. @property declares - and _ implements the setter and getter...
CGRect bounds
@synthesize
Continue
data
19. UIImageView is used to...
NSLog routine
you always return the newly initialized object(return self)
draw images
designated initializer
20. if you implemented both the setter and getter - the @synthesize method...
self
class's
draw images
will be ignored
21. Reference Counting...
You take ownership for an object you want to keep a pointer to
setPossessionName
CGRect
is an instance of that class
22. UITableViewController is a subclass of...
collection of collections - NSArray of an NSArray
NSLog routine
UIViewController
You take ownership for an object you want to keep a pointer to
23. class methods...
designated initializer
group of global functions already assigned to this class
will be ignored
references to objects
24. 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
a mechanism to enable specific callbacks
Encapsulation of functionality
create a XIB file
CGRect bounds - GCPoint center - CGRect frame
25. Classes describe two things...
parentViewController
will be ignored
Object wrapper around primitive types like int - float - double - BOOl
attributes - behavior
26. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
designated initializer
is an instance of that class
receiver
new instances of the class or retrieve some global property of the class.
27. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
UIViewController
receiver - selector - arguments
receiver
collection of collections - NSArray of an NSArray
28. 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
Functions
Ready-Made Instance
NSCoder
29. All objects are accessed using...
object
pointers
Maintenance of state
instance of UIView or one of its subclasses
30. If you have extra work you want to do on the view...
has one root view controller
CGFloat
instance
do so in viewDidLoad
31. 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 _.
UIViewController
viewWillDissapear: and viewWillAppear:
nil
implementation
32. Just a floating point number - but we always use it for graphics.
to get and set variables
instance
CGFloat
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
33. After accessors have been defined in the header file...
class's
causes the program to immediately exit from the loop it is executing - whether its for - while or do
they need to be defined in the implementation file
implementation
34. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
declaration and initialization of a variable
Abstraction
receiver
lowercase - uppercase
35. Categories are an Objective C way to add _ to an existing class without subclassing
Model Objects[Factory Worker]
methods
implementation
its dataSource
36. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
super - self
Functions
class methods - initializers
type - name and value
37. A function in the objective c library that simply displays or logs it's argument
NSLog routine
super - self
Core Graphics Framework
@synthesize
38. super - is used...
draw images
Model Objects[Factory Worker]
object
for inheritance - adopting the superclasses implementation
39. The root view controller typically creates the next view controller - and the next _ creates the one after that
dealloc - is called on the object & the object's memory is returned to the heap
Instantiation from scratch
view controller
Maintenance of state
40. Object Oriented based analogue to a function is called a...
method
implementation
header files declare
Is a placeholder object
41. NSArray - important methods...
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
to get and set variables
methods for generating an instance
rectangular
42. Files Owner...
Is a placeholder object
class methods - initializers
data
UIView
43. Any other initializer a class has calls the _ designated initializer....
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
44. UIView - designated initializer...
(id)initWithFrame:(CGRect)aRect;
values
arguments[message]
for inheritance - adopting the superclasses implementation
45. Prefixing a character string with an @ symbol [specific - NSString class]...
creates an instance of NSString that holds the character string
(id)initWithFrame:(CGRect)aRect;
values
new instances of the class or retrieve some global property of the class.
46. Number one use of protocols in iOS...
attributes - behavior
message
initializer
delegates and dataSources
47. Instance Variables by default are called @protected meaning...
only the class and subclasses can access
header files declare
array[class - NSMutableArray]
data source - view controller and delegate
48. A collection object - an ordered list of objects that can be accesed by an index
you must import the header file of that class
self
array[class - NSMutableArray]
size and position
49. A _ handles touch events.
view
only the innermost loop in which the break is executed is terminated
retain
@interface ClassName:SuperClassName
50. A message is always contained in square brackets - and has three parts
receiver - selector - arguments
Abstraction
has one root view controller
copy - retain