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 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
an object's property
methods
nil
2. In Objective C arrays can hold only...
references to objects
%d
Abstraction
an object's property
3. Class methods typically either create
new instances of the class or retrieve some global property of the class.
Controller Objects[Managers]
draw images
view controller
4. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
NSCoder
data source - delegate and view controller
copy - retain
nil
5. In Cocoa Touch - the table view asks another object _ what it should display...
data source - view controller and delegate
its dataSource
collection of collections - NSArray of an NSArray
type - name and value
6. A view is a subclass of _
UIView
a single-array can contain objects of different types
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
creating an initializer
7. All objects are accessed using...
pointers
receiver[message]
an object's property
creates an instance of NSString that holds the character string
8. Delegation is an object oriented approach to
alloc - singleton - informational utility method?
its dataSource
callbacks
has one root view controller
9. When making a tableView always...
reuse your cells
methods
Core Graphics Framework
accessors - individually we call them 'getters' and 'setters'
10. Defining variables - three parts...
data source - delegate and view controller
type - name and value
Maintenance of state
rectangular
11. To load a Xib file manually - you use _
Used to find the time right now or to store past or future time/dates
NSBundle
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
the message release to all its entries
12. Use of class methods - there are three...
alloc - singleton - informational utility method?
class methods - initializers
do so in viewDidLoad
CF - Ref
13. An instance is a device for maintaining state. It's a box for _ of data.
receiver
class
storage
create a XIB file
14. 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.
Data Encapsulation
instance of UIView or one of its subclasses
for inheritance - adopting the superclasses implementation
implementation
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. id is a...
Continue
Controller Objects[Managers]
receiver
pointer to an object
17. 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
18. If a break statement is executed from within a set of nested loops...
class
calling code that does the instantiation for you
@interface ClassName:SuperClassName
only the innermost loop in which the break is executed is terminated
19. [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
you must import the header file of that class
create a XIB file
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
20. 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.
cannot be added to an array
instance variables
size and position
@interface ClassName:SuperClassName
21. NSSet...
draw images
declaration and initialization of a variable
do so in viewDidLoad
unordered collection of objects - objects must be unique
22. Hold data and know nothing about the user interface
Model Objects[Factory Worker]
header files declare
CF - Ref
dealloc - is called on the object & the object's memory is returned to the heap
23. 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
Anytime you call a method with new - alloc or copy. You own and must release that object.
will be ignored
alloc - singleton - informational utility method?
Encapsulation of functionality
24. How do I implement my drawRect?
receiving and handling events that are associated with it
pointer - class
values
Core Graphics Framework
25. if you implemented both the setter and getter - the @synthesize method...
methods
will be ignored
Ready-Made Instance
Instantiation from scratch
26. Whenever a UINavigationController is about to swap views - it sends out two messages
viewWillDissapear: and viewWillAppear:
to give it someone else - or another object
first responder
Is a placeholder object
27. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
CGRect
Ready-Made Instance
values
storage
28. When an object is added to a NSMutableArray - that object is sent the message to retain;...
is called every time the event occurs
pointer to an object
CGRect bounds
the array becomes an owner of that object and has a pointer to it.
29. 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 _.
you must import the header file of that class
nil
safety - subclassability and makes code look more consistent with C structs
Controller Objects[Managers]
30. Also - because arrays only hold a pointer to an object...
a single-array can contain objects of different types
'getters' and 'setters'
is called every time the event occurs
parentViewController
31. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
CGFloat
values
super - self
storage
32. When an object is removed from an NSMutableArray - that object is sent the message release;...
the array relinquishes ownership of that object and no longer has a pointer to it
type - name and value
ready-made instances - instantiation from scratch - and nib based instantiation
group of global functions already assigned to this class
33. super - is used...
Core Graphics Framework
arguments[message]
for inheritance - adopting the superclasses implementation
upper
34. What does autorelease mean?
wait until the loop finishes processing the event - at the end release it
Used to find the time right now or to store past or future time/dates
instance variables
accessors - individually we call them 'getters' and 'setters'
35. Typically the designated initializer has parameters for the most important and frequently used _ of an object
instance variables
data
super - self
accessors - individually we call them 'getters' and 'setters'
36. Views have three properties related to their location and size: @property _ _;
CGRect bounds - GCPoint center - CGRect frame
data source - view controller and delegate
Functions
instance variables
37. Primitives and C Structures...
pointer to an object
rectangular
CGFloat
cannot be added to an array
38. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
initializers
new instances of the class or retrieve some global property of the class.
object
first responder
39. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
creates an instance of NSString that holds the character string
Hash table - Look up objects using a key to get a value.
header files declare
class methods - initializers
40. Class methods do not operate on an _ or have any access to _ variables....
instance
instance variables
Core Graphics Framework
callbacks
41. 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 _.
message
references to objects
pointer - class
the message release to all its entries
42. 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
43. Files Owner...
Anytime you call a method with new - alloc or copy. You own and must release that object.
Model Objects[Factory Worker]
Is a placeholder object
self
44. When do you take ownership?...
Anytime you call a method with new - alloc or copy. You own and must release that object.
calling code that does the instantiation for you
Data Encapsulation
message
45. UIViewController has several methods that get called at certain times...
in the dealloc - or when a Controller's view is 'unloaded'
upper
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
cannot be added to an array
46. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
ordered collection of objects - immutable
self
UIView
NSLog routine
47. A command directed to an object is called an...
message
receiver
CGFloat
nil
48. A view is an...
initializer
Maintenance of state
designated initializer
instance of UIView or one of its subclasses
49. Asking a class or object to execute a method
delegates and dataSources
message
size and position
CF - Ref
50. Also if you send the NSObject the _ message - you own that object.
to get and set variables
an object's property
for inheritance - adopting the superclasses implementation
retain
Can you answer 50 questions in 15 minutes?
Let me suggest you:
Browse all subjects
Browse all tests
Most popular tests
Major Subjects
Tests & Exams
AP
CLEP
DSST
GRE
SAT
GMAT
Certifications
CISSP go to https://www.isc2.org/
PMP
ITIL
RHCE
MCTS
More...
IT Skills
Android Programming
Data Modeling
Objective C Programming
Basic Python Programming
Adobe Illustrator
More...
Business Skills
Advertising Techniques
Business Accounting Basics
Business Strategy
Human Resource Management
Marketing Basics
More...
Soft Skills
Body Language
People Skills
Public Speaking
Persuasion
Job Hunting And Resumes
More...
Vocabulary
GRE Vocab
SAT Vocab
TOEFL Essential Vocab
Basic English Words For All
Global Words You Should Know
Business English
More...
Languages
AP German Vocab
AP Latin Vocab
SAT Subject Test: French
Italian Survival
Norwegian Survival
More...
Engineering
Audio Engineering
Computer Science Engineering
Aerospace Engineering
Chemical Engineering
Structural Engineering
More...
Health Sciences
Basic Nursing Skills
Health Science Language Fundamentals
Veterinary Technology Medical Language
Cardiology
Clinical Surgery
More...
English
Grammar Fundamentals
Literary And Rhetorical Vocab
Elements Of Style Vocab
Introduction To English Major
Complete Advanced Sentences
Literature
Homonyms
More...
Math
Algebra Formulas
Basic Arithmetic: Measurements
Metric Conversions
Geometric Properties
Important Math Facts
Number Sense Vocab
Business Math
More...
Other Major Subjects
Science
Economics
History
Law
Performing-arts
Cooking
Logic & Reasoning
Trivia
Browse all subjects
Browse all tests
Most popular tests