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. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
parentViewController
data source - view controller and delegate
Functions
NSCoder
2. 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
3. We can use dot notation to reference...
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
4. You use _ to implement the view
Generic object wrapper for other non-object data types
Object wrapper around primitive types like int - float - double - BOOl
CGRect bounds
pointers
5. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
Functions
NSLog routine
lowercase - uppercase
you always return the newly initialized object(return self)
6. The only reason to temporarily own an object - is...
CGRect bounds - GCPoint center - CGRect frame
to give it someone else - or another object
is an instance of that class
is called every time the event occurs
7. UITableViewController is a subclass of...
UIViewController
the instance variables
draw images
group of global functions already assigned to this class
8. Prefixing a character string with an @ symbol [specific - NSString class]...
creates an instance of NSString that holds the character string
declaration and initialization of a variable
create a XIB file
instance of UIView or one of its subclasses
9. Only exists within the statement block there defined - outside of the block is fine
variable scope - if defined within a block
the instance variables
creating an initializer
instance variables
10. In a class method you cannot access...
is an instance of that class
designated initializer
its dataSource
the instance variables
11. An instance is a device for maintaining state. It's a box for _ of data.
accessors - individually we call them 'getters' and 'setters'
storage
Generic object wrapper for other non-object data types
alloc - singleton - informational utility method?
12. Class methods typically either create
Hash table - Look up objects using a key to get a value.
view controller
callbacks
new instances of the class or retrieve some global property of the class.
13. How do I implement my drawRect?
super - self
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
Core Graphics Framework
callbacks
14. A command directed to an object is called an...
subview(s)
Hash table - Look up objects using a key to get a value.
message
pointers
15. Class methods do not operate on an _ or have any access to _ variables....
is an instance of that class
instance
Hash table - Look up objects using a key to get a value.
instance variables
16. 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
17. NSString *s = @'Hello - World'; is an example of...
instance variables
UIViewController
declaration and initialization of a variable
alloc - singleton - informational utility method?
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
a mechanism to enable specific callbacks
NSCoder
type - name and value
You take ownership for an object you want to keep a pointer to
19. Also - because arrays only hold a pointer to an object...
nil
a single-array can contain objects of different types
data
do so in viewDidLoad
20. Three ways instances are created...
ready-made instances - instantiation from scratch - and nib based instantiation
viewWillDissapear: and viewWillAppear:
Encapsulation of functionality
references to objects
21. 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.
causes the program to immediately exit from the loop it is executing - whether its for - while or do
instance variables
the message release to all its entries
receiving and handling events that are associated with it
22. UIImageView is used to...
receiver - selector - arguments
draw images
pointer - class
for inheritance - adopting the superclasses implementation
23. A function in the objective c library that simply displays or logs it's argument
variable scope - if defined within a block
pointer - class
NSLog routine
only the innermost loop in which the break is executed is terminated
24. NSArray - important methods...
a mechanism to enable specific callbacks
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
is an instance of that class
UIViewController
25. The integer prefix is...
callbacks
%d
rectangular
method
26. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
receiver[message]
header files declare
Ready-Made Instance
NSCoder
27. Use of class methods - there are three...
to give it someone else - or another object
CGRect bounds
receiver
alloc - singleton - informational utility method?
28. Execution of the break statement...
causes the program to immediately exit from the loop it is executing - whether its for - while or do
Functions
safety - subclassability and makes code look more consistent with C structs
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
29. A responder is responsible for...
data source - delegate and view controller
%d
size and position
receiving and handling events that are associated with it
30. All objects are accessed using...
rectangular
values
pointers
data
31. In the last line of an init method...
you always return the newly initialized object(return self)
'getters' and 'setters'
Maintenance of state
a single-array can contain objects of different types
32. Proceed through the loop - jump back to the top and check again
Continue
variable scope - if defined within a block
receiving and handling events that are associated with it
header files declare
33. A message is always contained in square brackets - and has three parts
(id)initWithFrame:(CGRect)aRect;
CGRect
NSBundle
receiver - selector - arguments
34. A UITableViewController can fill all three roles of...
instance variables
retain
data source - view controller and delegate
CGFloat
35. 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
36. Core foundation classes are prefixed with _ and suffixed with _
CF - Ref
safety - subclassability and makes code look more consistent with C structs
(id)initWithFrame:(CGRect)aRect;
@synthesize
37. 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
the message release to all its entries
only the class and subclasses can access
designated initializer
Maintenance of state
38. Center and frame are used to _ your view
Abstraction
variable scope - if defined within a block
retain
position
39. [Instance Variables] The code it gets from its class and in a sense is shared with all other instances of that class - but the _ belong to it alone.
data
draw images
collection of collections - NSArray of an NSArray
message
40. UIView - designated initializer...
message
viewWillDissapear: and viewWillAppear:
(id)initWithFrame:(CGRect)aRect;
view controller
41. @property - is using methods...
to get and set variables
@synthesize
size and position
to give it someone else - or another object
42. Origin of a view's coordinate system is _ left
upper
array[class - NSMutableArray]
define it in the implemenation file
super - self
43. Files Owner...
calling code that does the instantiation for you
Is a placeholder object
only the innermost loop in which the break is executed is terminated
has one root view controller
44. NSDate - class...
storage
Used to find the time right now or to store past or future time/dates
delegates and dataSources
pointers
45. 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....
you always return the newly initialized object(return self)
define it in the implemenation file
C Functionn
Maintenance of state
46. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
type - name and value
arguments[message]
self
CGRect bounds
47. When an NSMutableArray is deallocated - it sends...
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
the message release to all its entries
first responder
only the class and subclasses can access
48. 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.
creating an initializer
Generic object wrapper for other non-object data types
callbacks
creates an instance of NSString that holds the character string
49. If a break statement is executed from within a set of nested loops...
receiver[message]
the instance variables
Encapsulation of functionality
only the innermost loop in which the break is executed is terminated
50. super - is used...
Abstraction
for inheritance - adopting the superclasses implementation
declaration and initialization of a variable
copy - retain