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. Why properties?
Hash table - Look up objects using a key to get a value.
safety - subclassability and makes code look more consistent with C structs
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
receiver - selector - arguments
2. 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
3. If the view has no subviews - create it programmatically; if it has subviews
accessors - individually we call them 'getters' and 'setters'
self
create a XIB file
CF - Ref
4. 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
type - name and value
NSBundle
values
Maintenance of state
5. A view is an...
instance of UIView or one of its subclasses
super - self
data
upper
6. Use of class methods - there are three...
instance of UIView or one of its subclasses
an object's property
alloc - singleton - informational utility method?
class's
7. 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.
first responder
position
'getters' and 'setters'
Controller Objects[Managers]
8. 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
9. When an object is removed from an NSMutableArray - that object is sent the message release;...
Model Objects[Factory Worker]
they need to be defined in the implementation file
the array relinquishes ownership of that object and no longer has a pointer to it
upper
10. Proceed through the loop - jump back to the top and check again
Continue
initializers
self
parentViewController
11. Origin of a view's coordinate system is _ left
receiver - selector - arguments
upper
Functions
size and position
12. Designated initializer makes sure that every...
instance variable of an object is valid
in the dealloc - or when a Controller's view is 'unloaded'
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
define it in the implemenation file
13. Each _ has a 'designated' initializer method....
class
instance variables
attributes - behavior
ready-made instances - instantiation from scratch - and nib based instantiation
14. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
view
Controller Objects[Managers]
delegates and dataSources
object
15. In Objective C - the name of a setter method is set plus the name of the instance variable it is changing - for example PossessionName would be...
methods for generating an instance
is an instance of that class
setPossessionName
receiver - selector - arguments
16. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
Maintenance of state
UIViewController
delegates and dataSources
initializers
17. 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
is an instance of that class
receiver[message]
creates an instance of NSString that holds the character string
parentViewController
18. Asking a class or object to execute a method
message
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
unordered collection of objects - objects must be unique
CGFloat
19. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
ordered collection of objects - immutable
pointer - class
You take ownership for an object you want to keep a pointer to
Ready-Made Instance
20. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
UIViewController
CGFloat
lowercase - uppercase
Encapsulation of functionality
21. Defining variables - three parts...
%d
reuse your cells
lowercase - uppercase
type - name and value
22. Ready-made instances...
CF - Ref
calling code that does the instantiation for you
view controller's initialization method
receiver - selector - arguments
23. To load a Xib file manually - you use _
draw images
CGRect
NSBundle
Core Graphics Framework
24. class methods...
initializers
group of global functions already assigned to this class
draw images
unordered collection of objects - objects must be unique
25. Files Owner...
NSCoder
its dataSource
initializer
Is a placeholder object
26. @property declares - and _ implements the setter and getter...
reuse your cells
unordered collection of objects - objects must be unique
safety - subclassability and makes code look more consistent with C structs
@synthesize
27. 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
C Functionn
receiver - selector - arguments
parentViewController
28. The class is responsible for what instance variables the instance has - but not the _ of those variables.
has one root view controller
values
message
safety - subclassability and makes code look more consistent with C structs
29. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
class
the message release to all its entries
Is a placeholder object
NSCoder
30. In any application with UINavigationController - the navigation controller...
has one root view controller
header files declare
a mechanism to enable specific callbacks
declaration and initialization of a variable
31. A _ handles touch events.
pointers
parentViewController
view
Abstraction
32. You use _ to implement the view
CGRect bounds
Continue
object
pointer - class
33. Class methods do not operate on an _ or have any access to _ variables....
instance
instance of UIView or one of its subclasses
Generic object wrapper for other non-object data types
an object's property
34. NSArray - important methods...
view controller's initialization method
instance variable of an object is valid
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
a single-array can contain objects of different types
35. Three ways instances are created...
ready-made instances - instantiation from scratch - and nib based instantiation
NSBundle
first responder
array[class - NSMutableArray]
36. if you implemented both the setter and getter - the @synthesize method...
Object wrapper around primitive types like int - float - double - BOOl
CGRect bounds - GCPoint center - CGRect frame
NSBundle
will be ignored
37. A responder is responsible for...
receiving and handling events that are associated with it
arguments[message]
Anytime you call a method with new - alloc or copy. You own and must release that object.
header files declare
38. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
methods for generating an instance
@interface ClassName:SuperClassName
CGRect bounds
NSCoder
39. Number one use of protocols in iOS...
instance
create a XIB file
cannot be added to an array
delegates and dataSources
40. 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
41. Never access a view controller's view in that...
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
42. Delegation is an object oriented approach to
callbacks
pointers
nil
wait until the loop finishes processing the event - at the end release it
43. A UITableViewController can fill all three roles of...
receiving and handling events that are associated with it
data source - view controller and delegate
creating an initializer
protocol
44. If a break statement is executed from within a set of nested loops...
only the innermost loop in which the break is executed is terminated
protocol
has one root view controller
storage
45. Instance Variables by default are called @protected meaning...
C Functionn
methods for generating an instance
is an instance of that class
only the class and subclasses can access
46. 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]
in the dealloc - or when a Controller's view is 'unloaded'
header files declare
only the class and subclasses can access
47. A UITableView usually needs three different pieces...
cannot be added to an array
Maintenance of state
Used to find the time right now or to store past or future time/dates
data source - delegate and view controller
48. NSNumber - class...
instance
NSBundle
Object wrapper around primitive types like int - float - double - BOOl
do so in viewDidLoad
49. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
Instantiation from scratch
collection of collections - NSArray of an NSArray
Abstraction
to get and set variables
50. super - is used...
data source - delegate and view controller
for inheritance - adopting the superclasses implementation
Model Objects[Factory Worker]
class's
Sorry!:) No result found.
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