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. NSNumber - class...
Functions
Object wrapper around primitive types like int - float - double - BOOl
(id)initWithFrame:(CGRect)aRect;
class
2. NSDictionary...
CF - Ref
parentViewController
Hash table - Look up objects using a key to get a value.
view
3. To load a Xib file manually - you use _
Is a placeholder object
you must import the header file of that class
NSBundle
receiver[message]
4. If the view has no subviews - create it programmatically; if it has subviews
callbacks
Encapsulation of functionality
create a XIB file
C Functionn
5. 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....
CGRect
define it in the implemenation file
Continue
Generic object wrapper for other non-object data types
6. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
NSCoder
the array becomes an owner of that object and has a pointer to it.
receiving and handling events that are associated with it
class
7. In Cocoa Touch - the table view asks another object _ what it should display...
its dataSource
message
a single-array can contain objects of different types
view controller
8. 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.
parentViewController
first responder
C Functionn
the instance variables
9. The integer prefix is...
%d
CGRect bounds
C Functionn
Core Graphics Framework
10. Reference Counting...
to get and set variables
%d
in the dealloc - or when a Controller's view is 'unloaded'
You take ownership for an object you want to keep a pointer to
11. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
CGRect
unordered collection of objects - objects must be unique
to get and set variables
CGFloat
12. A _ handles touch events.
view
retain
receiver - selector - arguments
initializers
13. 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
14. In Objective C arrays can hold only...
view controller
references to objects
Used to find the time right now or to store past or future time/dates
C Functionn
15. Each class picks one _ as it's designated initializer....
a single-array can contain objects of different types
initializer
collection of collections - NSArray of an NSArray
%d
16. The class is responsible for what instance variables the instance has - but not the _ of those variables.
references to objects
Maintenance of state
values
cannot be added to an array
17. Name of the method to be executed
selector[message]
is called every time the event occurs
size and position
Hash table - Look up objects using a key to get a value.
18. Just a floating point number - but we always use it for graphics.
CGFloat
the message release to all its entries
Functions
group of global functions already assigned to this class
19. What does autorelease mean?
Data Encapsulation
wait until the loop finishes processing the event - at the end release it
Anytime you call a method with new - alloc or copy. You own and must release that object.
CF - Ref
20. Number one use of protocols in iOS...
protocol
initializer
receiving and handling events that are associated with it
delegates and dataSources
21. The designated initializer calls the _ designated initializer....
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
22. A callback is a function that is supplied in advance of an event - and...
Object wrapper around primitive types like int - float - double - BOOl
NSBundle
is called every time the event occurs
protocol
23. @property declares - and _ implements the setter and getter...
message
pointer - class
receiver
@synthesize
24. UIView - designated initializer...
upper
NSBundle
(id)initWithFrame:(CGRect)aRect;
Model Objects[Factory Worker]
25. 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
the instance variables
pointer - class
data source - delegate and view controller
Encapsulation of functionality
26. An instance is a device for maintaining state. It's a box for _ of data.
create a XIB file
lowercase - uppercase
data source - view controller and delegate
storage
27. In any application with UINavigationController - the navigation controller...
object
CF - Ref
has one root view controller
is called every time the event occurs
28. 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
29. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
self
lowercase - uppercase
method
data
30. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
Ready-Made Instance
Controller Objects[Managers]
header files declare
instance variables
31. Core foundation classes are prefixed with _ and suffixed with _
CF - Ref
selector[message]
NSBundle
class's
32. A view represents a _ area
CGRect bounds
parentViewController
rectangular
Is a placeholder object
33. A message is always contained in square brackets - and has three parts
Is a placeholder object
receiver - selector - arguments
size and position
draw images
34. A function in the objective c library that simply displays or logs it's argument
@synthesize
NSLog routine
ordered collection of objects - immutable
draw images
35. Hold data and know nothing about the user interface
Anytime you call a method with new - alloc or copy. You own and must release that object.
header files declare
Model Objects[Factory Worker]
variable scope - if defined within a block
36. if you implemented both the setter and getter - the @synthesize method...
a single-array can contain objects of different types
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
will be ignored
instance
37. Three ways instances are created...
parentViewController
viewWillDissapear: and viewWillAppear:
ready-made instances - instantiation from scratch - and nib based instantiation
selector[message]
38. NSDate - class...
CGRect
pointers
Used to find the time right now or to store past or future time/dates
Object wrapper around primitive types like int - float - double - BOOl
39. Ready-made instances...
group of global functions already assigned to this class
calling code that does the instantiation for you
'getters' and 'setters'
selector[message]
40. A collection object - an ordered list of objects that can be accesed by an index
array[class - NSMutableArray]
upper
self
header files declare
41. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
upper
C Functionn
you must import the header file of that class
receiving and handling events that are associated with it
42. A command directed to an object is called an...
accessors - individually we call them 'getters' and 'setters'
class's
setPossessionName
message
43. NSArray - class...
Object wrapper around primitive types like int - float - double - BOOl
alloc - singleton - informational utility method?
ordered collection of objects - immutable
receiver[message]
44. Classes describe two things...
data source - delegate and view controller
draw images
attributes - behavior
type - name and value
45. 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
@interface ClassName:SuperClassName
parentViewController
causes the program to immediately exit from the loop it is executing - whether its for - while or do
variable scope - if defined within a block
46. When making a tableView always...
in the dealloc - or when a Controller's view is 'unloaded'
accessors - individually we call them 'getters' and 'setters'
object
reuse your cells
47. UIViewController has several methods that get called at certain times...
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
is an instance of that class
receiving and handling events that are associated with it
nil
48. 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
49. A UITableViewController can fill all three roles of...
define it in the implemenation file
the message release to all its entries
do so in viewDidLoad
data source - view controller and delegate
50. Values to be supplied as the parameters to the method
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
NSBundle
arguments[message]
C Functionn