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. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
header files declare
initializers
receiving and handling events that are associated with it
Generic object wrapper for other non-object data types
2. Each _ has a 'designated' initializer method....
accessors - individually we call them 'getters' and 'setters'
lowercase - uppercase
class
@synthesize
3. Files Owner...
(id)initWithFrame:(CGRect)aRect;
Is a placeholder object
receiving and handling events that are associated with it
data source - delegate and view controller
4. Object Oriented based analogue to a function is called a...
method
subview(s)
creating an initializer
upper
5. super - is used...
the instance variables
Instantiation from scratch
only the innermost loop in which the break is executed is terminated
for inheritance - adopting the superclasses implementation
6. NSValue - class...
receiver - selector - arguments
Generic object wrapper for other non-object data types
is an instance of that class
view
7. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
Core Graphics Framework
view
Hash table - Look up objects using a key to get a value.
Ready-Made Instance
8. 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 _.
data source - delegate and view controller
reuse your cells
pointers
subview(s)
9. Views have three properties related to their location and size: @property _ _;
collection of collections - NSArray of an NSArray
CGRect bounds - GCPoint center - CGRect frame
Maintenance of state
alloc - singleton - informational utility method?
10. The root view controller typically creates the next view controller - and the next _ creates the one after that
view controller
Ready-Made Instance
Continue
'getters' and 'setters'
11. A command directed to an object is called an...
pointer to an object
the instance variables
Abstraction
message
12. The notion that the data for an object is stored in it's instance variables and is accessed only by the objects methods. This maintains the integrity of the data.
to give it someone else - or another object
Anytime you call a method with new - alloc or copy. You own and must release that object.
Data Encapsulation
class methods - initializers
13. At the top of any implementation file...
%d
initializers
you must import the header file of that class
implementation
14. A function in the objective c library that simply displays or logs it's argument
C Functionn
pointer to an object
NSLog routine
class's
15. 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
16. A block of statements identified by a name that can accept one or more arguments passed to it by value and can optionally return a value
class methods - initializers
Functions
safety - subclassability and makes code look more consistent with C structs
Anytime you call a method with new - alloc or copy. You own and must release that object.
17. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
receiving and handling events that are associated with it
You take ownership for an object you want to keep a pointer to
NSBundle
self
18. Ready-made instances...
superclass's
calling code that does the instantiation for you
copy - retain
(id)initWithFrame:(CGRect)aRect;
19. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
NSCoder
ready-made instances - instantiation from scratch - and nib based instantiation
to get and set variables
upper
20. Values to be supplied as the parameters to the method
the message release to all its entries
arguments[message]
setPossessionName
@synthesize
21. A UITableView usually needs three different pieces...
pointer to an object
receiver - selector - arguments
data source - delegate and view controller
storage
22. A responder is responsible for...
super - self
receiving and handling events that are associated with it
superclass's
first responder
23. 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
24. 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.
size and position
first responder
(id)initWithFrame:(CGRect)aRect;
Hash table - Look up objects using a key to get a value.
25. Use of class methods - there are three...
alloc - singleton - informational utility method?
implementation
(id)initWithFrame:(CGRect)aRect;
declaration and initialization of a variable
26. Primitives and C Structures...
you must import the header file of that class
in the dealloc - or when a Controller's view is 'unloaded'
storage
cannot be added to an array
27. NSSet...
arguments[message]
unordered collection of objects - objects must be unique
Abstraction
accessors - individually we call them 'getters' and 'setters'
28. 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
29. A method in a _ is required unless its preceded by an @optional.
reuse your cells
protocol
creating an initializer
retain
30. When making a tableView always...
reuse your cells
Continue
only the innermost loop in which the break is executed is terminated
receiving and handling events that are associated with it
31. In any application with UINavigationController - the navigation controller...
delegates and dataSources
unordered collection of objects - objects must be unique
creates an instance of NSString that holds the character string
has one root view controller
32. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
variable scope - if defined within a block
lowercase - uppercase
upper
Is a placeholder object
33. 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....
message
define it in the implemenation file
will be ignored
retain
34. Defining variables - three parts...
NSBundle
type - name and value
@synthesize
superclass's
35. 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 _.
nil
rectangular
the instance variables
data source - delegate and view controller
36. NSNumber - class...
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
values
instance variables
37. 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.
do so in viewDidLoad
initializer
creating an initializer
variable scope - if defined within a block
38. if you implemented both the setter and getter - the @synthesize method...
superclass's
Object wrapper around primitive types like int - float - double - BOOl
values
will be ignored
39. NSArray - class...
arguments[message]
storage
upper
ordered collection of objects - immutable
40. A _ handles touch events.
view
message
designated initializer
to give it someone else - or another object
41. A view represents a _ area
data source - view controller and delegate
accessors - individually we call them 'getters' and 'setters'
UIView
rectangular
42. 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 _.
class
pointer - class
storage
receiver - selector - arguments
43. In general - class methods tend to be factory methods - that is...
data
position
Anytime you call a method with new - alloc or copy. You own and must release that object.
methods for generating an instance
44. A view is an...
class's
callbacks
designated initializer
instance of UIView or one of its subclasses
45. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
copy - retain
Continue
@interface ClassName:SuperClassName
C Functionn
46. A view is a subclass of _
methods
UIView
instance of UIView or one of its subclasses
Model Objects[Factory Worker]
47. Delegation is an object oriented approach to
callbacks
you must import the header file of that class
view controller
define it in the implemenation file
48. Prefixing a character string with an @ symbol [specific - NSString class]...
size and position
the instance variables
Continue
creates an instance of NSString that holds the character string
49. In the last line of an init method...
you always return the newly initialized object(return self)
will be ignored
callbacks
header files declare
50. Number one use of protocols in iOS...
delegates and dataSources
view controller
dealloc - is called on the object & the object's memory is returned to the heap
CGRect bounds