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. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
references to objects
CF - Ref
causes the program to immediately exit from the loop it is executing - whether its for - while or do
Ready-Made Instance
2. NSArray - class...
accessors - individually we call them 'getters' and 'setters'
parentViewController
@interface ClassName:SuperClassName
ordered collection of objects - immutable
3. 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 array becomes an owner of that object and has a pointer to it.
Maintenance of state
Is a placeholder object
Hash table - Look up objects using a key to get a value.
4. In a class method you cannot access...
the instance variables
Generic object wrapper for other non-object data types
view controller's initialization method
cannot be added to an array
5. NSValue - class...
Generic object wrapper for other non-object data types
a mechanism to enable specific callbacks
super - self
Anytime you call a method with new - alloc or copy. You own and must release that object.
6. A UITableViewController can fill all three roles of...
lowercase - uppercase
data source - view controller and delegate
CGFloat
causes the program to immediately exit from the loop it is executing - whether its for - while or do
7. Execution of the break statement...
causes the program to immediately exit from the loop it is executing - whether its for - while or do
Used to find the time right now or to store past or future time/dates
instance variable of an object is valid
class
8. The only reason to temporarily own an object - is...
draw images
do so in viewDidLoad
only the class and subclasses can access
to give it someone else - or another object
9. Why properties?
Used to find the time right now or to store past or future time/dates
Core Graphics Framework
safety - subclassability and makes code look more consistent with C structs
parentViewController
10. Prefixing a character string with an @ symbol [specific - NSString class]...
@synthesize
creates an instance of NSString that holds the character string
you must import the header file of that class
class's
11. NSString *s = @'Hello - World'; is an example of...
declaration and initialization of a variable
C Functionn
dealloc - is called on the object & the object's memory is returned to the heap
pointers
12. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
is an instance of that class
Encapsulation of functionality
you always return the newly initialized object(return self)
receiver
13. 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...
pointer - class
unordered collection of objects - objects must be unique
setPossessionName
the instance variables
14. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
designated initializer
class methods - initializers
cannot be added to an array
Ready-Made Instance
15. Files Owner...
You take ownership for an object you want to keep a pointer to
Is a placeholder object
attributes - behavior
Continue
16. When do you take ownership?...
instance variables
array[class - NSMutableArray]
%d
Anytime you call a method with new - alloc or copy. You own and must release that object.
17. Whenever a UINavigationController is about to swap views - it sends out two messages
in the dealloc - or when a Controller's view is 'unloaded'
viewWillDissapear: and viewWillAppear:
storage
designated initializer
18. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
NSCoder
setPossessionName
Data Encapsulation
NSBundle
19. Proceed through the loop - jump back to the top and check again
for inheritance - adopting the superclasses implementation
Continue
receiving and handling events that are associated with it
Ready-Made Instance
20. NSArray - important methods...
dealloc - is called on the object & the object's memory is returned to the heap
alloc - singleton - informational utility method?
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
instance variables
21. Primitives and C Structures...
(id)initWithFrame:(CGRect)aRect;
the instance variables
cannot be added to an array
size and position
22. NSNumber - class...
view controller
causes the program to immediately exit from the loop it is executing - whether its for - while or do
Object wrapper around primitive types like int - float - double - BOOl
collection of collections - NSArray of an NSArray
23. @property declares - and _ implements the setter and getter...
initializer
the instance variables
@synthesize
super - self
24. A UITableView usually needs three different pieces...
ordered collection of objects - immutable
data source - delegate and view controller
NSBundle
rectangular
25. Use of class methods - there are three...
alloc - singleton - informational utility method?
causes the program to immediately exit from the loop it is executing - whether its for - while or do
cannot be added to an array
draw images
26. 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.
the array relinquishes ownership of that object and no longer has a pointer to it
accessors - individually we call them 'getters' and 'setters'
first responder
position
27. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
Instantiation from scratch
causes the program to immediately exit from the loop it is executing - whether its for - while or do
array[class - NSMutableArray]
You take ownership for an object you want to keep a pointer to
28. 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
Functions
receiver
you must import the header file of that class
delegates and dataSources
29. In Cocoa Touch - the table view asks another object _ what it should display...
class's
only the class and subclasses can access
declaration and initialization of a variable
its dataSource
30. 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....
view controller's initialization method
define it in the implemenation file
unordered collection of objects - objects must be unique
instance variables
31. When an NSMutableArray is deallocated - it sends...
pointer - class
Controller Objects[Managers]
the message release to all its entries
method
32. Designated initializer makes sure that every...
data source - view controller and delegate
accessors - individually we call them 'getters' and 'setters'
will be ignored
instance variable of an object is valid
33. 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 _.
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
data source - view controller and delegate
protocol
pointer - class
34. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
designated initializer
instance variables
class methods - initializers
safety - subclassability and makes code look more consistent with C structs
35. A command directed to an object is called an...
message
self
the message release to all its entries
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
36. 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
Maintenance of state
instance variables
selector[message]
37. id is a...
NSBundle
pointer to an object
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
do so in viewDidLoad
38. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
@interface ClassName:SuperClassName
delegates and dataSources
view controller's initialization method
Model Objects[Factory Worker]
39. To load a Xib file manually - you use _
cannot be added to an array
NSBundle
Is a placeholder object
upper
40. UIView - designated initializer...
arguments[message]
Continue
Maintenance of state
(id)initWithFrame:(CGRect)aRect;
41. A view is an...
UIViewController
view controller
instance of UIView or one of its subclasses
a mechanism to enable specific callbacks
42. class methods...
group of global functions already assigned to this class
ready-made instances - instantiation from scratch - and nib based instantiation
parentViewController
class
43. In any application with UINavigationController - the navigation controller...
has one root view controller
group of global functions already assigned to this class
CF - Ref
superclass's
44. A view is a subclass of _
UIView
instance
receiving and handling events that are associated with it
pointers
45. if you implemented both the setter and getter - the @synthesize method...
type - name and value
will be ignored
for inheritance - adopting the superclasses implementation
the message release to all its entries
46. At the top of any implementation file...
upper
its dataSource
nil
you must import the header file of that class
47. 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
48. Typically the designated initializer has parameters for the most important and frequently used _ of an object
instance variables
Functions
subview(s)
safety - subclassability and makes code look more consistent with C structs
49. 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
50. When an object is added to a NSMutableArray - that object is sent the message to retain;...
Ready-Made Instance
UIView
the array becomes an owner of that object and has a pointer to it.
define it in the implemenation file
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