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. Name of the method to be executed
its dataSource
NSCoder
Maintenance of state
selector[message]
2. 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
3. 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 _.
protocol
pointer - class
header files declare
for inheritance - adopting the superclasses implementation
4. The root view controller typically creates the next view controller - and the next _ creates the one after that
header files declare
@interface ClassName:SuperClassName
view controller
you must import the header file of that class
5. 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]
CGFloat
CGRect bounds
Encapsulation of functionality
6. Core foundation classes are prefixed with _ and suffixed with _
subview(s)
Functions
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
CF - Ref
7. A view is an...
pointers
message
methods
instance of UIView or one of its subclasses
8. 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 _.
an object's property
superclass's
nil
(id)initWithFrame:(CGRect)aRect;
9. NSDate - class...
Used to find the time right now or to store past or future time/dates
the message release to all its entries
safety - subclassability and makes code look more consistent with C structs
Core Graphics Framework
10. Only exists within the statement block there defined - outside of the block is fine
variable scope - if defined within a block
creates an instance of NSString that holds the character string
superclass's
its dataSource
11. NSValue - class...
an object's property
Generic object wrapper for other non-object data types
size and position
CGRect bounds
12. 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...
values
array[class - NSMutableArray]
setPossessionName
size and position
13. 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.
lowercase - uppercase
method
instance variables
Functions
14. If a break statement is executed from within a set of nested loops...
NSBundle
the message release to all its entries
only the innermost loop in which the break is executed is terminated
method
15. Views have three properties related to their location and size: @property _ _;
CGRect bounds - GCPoint center - CGRect frame
Maintenance of state
view controller
receiver - selector - arguments
16. In a class method you cannot access...
will be ignored
the instance variables
only the innermost loop in which the break is executed is terminated
you always return the newly initialized object(return self)
17. Dynamic binding means that when we call a certain object's method - and there are several _ of that method - the right one is figured out at runtime.
Object wrapper around primitive types like int - float - double - BOOl
implementation
view controller
safety - subclassability and makes code look more consistent with C structs
18. NSArray - class...
class's
ordered collection of objects - immutable
Is a placeholder object
designated initializer
19. A method in a _ is required unless its preceded by an @optional.
instance variables
do so in viewDidLoad
protocol
'getters' and 'setters'
20. super - is used...
dealloc - is called on the object & the object's memory is returned to the heap
attributes - behavior
Controller Objects[Managers]
for inheritance - adopting the superclasses implementation
21. In the last line of an init method...
accessors - individually we call them 'getters' and 'setters'
you always return the newly initialized object(return self)
Abstraction
Core Graphics Framework
22. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
class methods - initializers
wait until the loop finishes processing the event - at the end release it
array[class - NSMutableArray]
cannot be added to an array
23. 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
safety - subclassability and makes code look more consistent with C structs
a mechanism to enable specific callbacks
Used to find the time right now or to store past or future time/dates
instance variables
24. Values to be supplied as the parameters to the method
nil
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
do so in viewDidLoad
arguments[message]
25. Proceed through the loop - jump back to the top and check again
Continue
NSCoder
Controller Objects[Managers]
selector[message]
26. Prefixing a character string with an @ symbol [specific - NSString class]...
object
message
retain
creates an instance of NSString that holds the character string
27. 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.
@interface ClassName:SuperClassName
rectangular
new instances of the class or retrieve some global property of the class.
creating an initializer
28. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
Instantiation from scratch
only the innermost loop in which the break is executed is terminated
Data Encapsulation
class methods - initializers
29. What does autorelease mean?
self
pointer - class
wait until the loop finishes processing the event - at the end release it
nil
30. In object oriented languages - we call methods that get and set instance variables accessors - individually we call them...
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
31. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
creates an instance of NSString that holds the character string
NSCoder
receiver
protocol
32. In any application with UINavigationController - the navigation controller...
class
has one root view controller
is an instance of that class
the message release to all its entries
33. Delegation is an object oriented approach to
the instance variables
class methods - initializers
callbacks
rectangular
34. 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 _.
instance variable of an object is valid
protocol
selector[message]
subview(s)
35. NSString *s = @'Hello - World'; is an example of...
message
instance of UIView or one of its subclasses
declaration and initialization of a variable
has one root view controller
36. Also if you send the NSObject the _ message - you own that object.
(id)initWithFrame:(CGRect)aRect;
calling code that does the instantiation for you
retain
only the class and subclasses can access
37. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
viewWillDissapear: and viewWillAppear:
Ready-Made Instance
they need to be defined in the implementation file
accessors - individually we call them 'getters' and 'setters'
38. Any individual object belonging to any class...
instance variables
is an instance of that class
view
methods
39. When an object is added to a NSMutableArray - that object is sent the message to retain;...
methods for generating an instance
the array becomes an owner of that object and has a pointer to it.
view
retain
40. A view is a subclass of _
values
UIView
methods
self
41. A UITableView usually needs three different pieces...
data source - delegate and view controller
receiver - selector - arguments
new instances of the class or retrieve some global property of the class.
UIView
42. Asking a class or object to execute a method
initializers
message
Data Encapsulation
for inheritance - adopting the superclasses implementation
43. Each class picks one _ as it's designated initializer....
instance
initializer
instance variables
in the dealloc - or when a Controller's view is 'unloaded'
44. A view represents a _ area
UIView
initializers
ready-made instances - instantiation from scratch - and nib based instantiation
rectangular
45. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
delegates and dataSources
reuse your cells
define it in the implemenation file
initializers
46. Also - because arrays only hold a pointer to an object...
variable scope - if defined within a block
callbacks
a single-array can contain objects of different types
data source - delegate and view controller
47. In Objective C arrays can hold only...
references to objects
instance variables
retain
pointer to an object
48. All objects are accessed using...
creating an initializer
pointers
Functions
reuse your cells
49. Designated initializer makes sure that every...
instance of UIView or one of its subclasses
values
upper
instance variable of an object is valid
50. If you have extra work you want to do on the view...
create a XIB file
do so in viewDidLoad
pointer to an object
NSLog routine
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