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. NSSet...
unordered collection of objects - objects must be unique
type - name and value
receiver - selector - arguments
you always return the newly initialized object(return self)
2. Why properties?
you always return the newly initialized object(return self)
message
for inheritance - adopting the superclasses implementation
safety - subclassability and makes code look more consistent with C structs
3. Each class picks one _ as it's designated initializer....
selector[message]
initializer
ready-made instances - instantiation from scratch - and nib based instantiation
collection of collections - NSArray of an NSArray
4. After accessors have been defined in the header file...
a single-array can contain objects of different types
to get and set variables
they need to be defined in the implementation file
a mechanism to enable specific callbacks
5. Files Owner...
you always return the newly initialized object(return self)
Is a placeholder object
alloc - singleton - informational utility method?
pointer to an object
6. NSDictionary...
do so in viewDidLoad
Instantiation from scratch
Hash table - Look up objects using a key to get a value.
upper
7. How do I implement my drawRect?
Core Graphics Framework
instance
Anytime you call a method with new - alloc or copy. You own and must release that object.
Instantiation from scratch
8. 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
the array becomes an owner of that object and has a pointer to it.
viewWillDissapear: and viewWillAppear:
class methods - initializers
9. initWithFrame: the designated initializer for UIView gives the view
methods for generating an instance
references to objects
size and position
do so in viewDidLoad
10. Typically the designated initializer has parameters for the most important and frequently used _ of an object
the array relinquishes ownership of that object and no longer has a pointer to it
instance variables
message
arguments[message]
11. Core foundation classes are prefixed with _ and suffixed with _
protocol
dealloc - is called on the object & the object's memory is returned to the heap
CF - Ref
setPossessionName
12. class methods...
pointer - class
UIView
group of global functions already assigned to this class
safety - subclassability and makes code look more consistent with C structs
13. Reducing details to focus on the core concepts
position
do so in viewDidLoad
Abstraction
initializer
14. When do we need to release our outlets?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
15. 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 _.
pointer - class
you always return the newly initialized object(return self)
the instance variables
upper
16. In Objective C arrays can hold only...
dealloc - is called on the object & the object's memory is returned to the heap
safety - subclassability and makes code look more consistent with C structs
references to objects
setPossessionName
17. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
method
NSCoder
do so in viewDidLoad
CGRect
18. Execution of the break statement...
causes the program to immediately exit from the loop it is executing - whether its for - while or do
define it in the implemenation file
receiver - selector - arguments
Used to find the time right now or to store past or future time/dates
19. id is a...
(id)initWithFrame:(CGRect)aRect;
Ready-Made Instance
delegates and dataSources
pointer to an object
20. 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
21. Number one use of protocols in iOS...
delegates and dataSources
data source - delegate and view controller
(id)initWithFrame:(CGRect)aRect;
the message release to all its entries
22. UIViewController has several methods that get called at certain times...
causes the program to immediately exit from the loop it is executing - whether its for - while or do
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
CGFloat
Instantiation from scratch
23. 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
header files declare
parentViewController
collection of collections - NSArray of an NSArray
CF - Ref
24. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
selector[message]
Instantiation from scratch
group of global functions already assigned to this class
is an instance of that class
25. [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.
designated initializer
data
pointer to an object
has one root view controller
26. 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 _.
copy - retain
the array becomes an owner of that object and has a pointer to it.
message
subview(s)
27. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
superclass's
class methods - initializers
nil
Maintenance of state
28. A UITableViewController can fill all three roles of...
data source - view controller and delegate
references to objects
methods
you always return the newly initialized object(return self)
29. You use _ to implement the view
CGRect bounds
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
CGRect
super - self
30. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
self
@synthesize
superclass's
to give it someone else - or another object
31. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
C Functionn
creating an initializer
safety - subclassability and makes code look more consistent with C structs
CGRect
32. Origin of a view's coordinate system is _ left
its dataSource
upper
Object wrapper around primitive types like int - float - double - BOOl
for inheritance - adopting the superclasses implementation
33. Delegation is an object oriented approach to
position
object
callbacks
receiver[message]
34. 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
selector[message]
a mechanism to enable specific callbacks
type - name and value
data source - view controller and delegate
35. A _ handles touch events.
the message release to all its entries
NSLog routine
implementation
view
36. 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...
rectangular
NSBundle
is called every time the event occurs
setPossessionName
37. 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
38. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
Controller Objects[Managers]
subview(s)
instance of UIView or one of its subclasses
superclass's
39. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
Ready-Made Instance
view controller
has one root view controller
NSBundle
40. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
super - self
view
data source - view controller and delegate
lowercase - uppercase
41. A view is a subclass of _
alloc - singleton - informational utility method?
Used to find the time right now or to store past or future time/dates
UIView
creates an instance of NSString that holds the character string
42. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
rectangular
creating an initializer
instance variables
object
43. The class is responsible for what instance variables the instance has - but not the _ of those variables.
self
array[class - NSMutableArray]
C Functionn
values
44. NSString *s = @'Hello - World'; is an example of...
setPossessionName
declaration and initialization of a variable
message
protocol
45. A UITableView usually needs three different pieces...
data source - delegate and view controller
receiver
is called every time the event occurs
creates an instance of NSString that holds the character string
46. Name of the method to be executed
CF - Ref
parentViewController
selector[message]
the message release to all its entries
47. A message is always contained in square brackets - and has three parts
pointer to an object
receiver - selector - arguments
for inheritance - adopting the superclasses implementation
view controller's initialization method
48. A collection object - an ordered list of objects that can be accesed by an index
ready-made instances - instantiation from scratch - and nib based instantiation
array[class - NSMutableArray]
instance
receiver[message]
49. 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
50. UIImageView is used to...
data source - view controller and delegate
the instance variables
wait until the loop finishes processing the event - at the end release it
draw images
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