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. [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.
the array becomes an owner of that object and has a pointer to it.
Object wrapper around primitive types like int - float - double - BOOl
data
super - self
2. 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
data source - view controller and delegate
message
Generic object wrapper for other non-object data types
3. Object Oriented based analogue to a function is called a...
data
method
Used to find the time right now or to store past or future time/dates
class methods - initializers
4. class methods...
super - self
storage
group of global functions already assigned to this class
the instance variables
5. Only exists within the statement block there defined - outside of the block is fine
C Functionn
variable scope - if defined within a block
class methods - initializers
message
6. Center and frame are used to _ your view
data source - view controller and delegate
ready-made instances - instantiation from scratch - and nib based instantiation
position
@synthesize
7. When making a tableView always...
has one root view controller
view
reuse your cells
CGRect bounds
8. A view represents a _ area
variable scope - if defined within a block
creating an initializer
rectangular
NSLog routine
9. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
self
CGRect
Is a placeholder object
Maintenance of state
10. How do I implement my drawRect?
C Functionn
class's
viewWillDissapear: and viewWillAppear:
Core Graphics Framework
11. Designated initializer makes sure that every...
references to objects
the message release to all its entries
instance variable of an object is valid
'getters' and 'setters'
12. When an object is removed from an NSMutableArray - that object is sent the message release;...
define it in the implemenation file
do so in viewDidLoad
dealloc - is called on the object & the object's memory is returned to the heap
the array relinquishes ownership of that object and no longer has a pointer to it
13. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
designated initializer
in the dealloc - or when a Controller's view is 'unloaded'
Ready-Made Instance
methods for generating an instance
14. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
lowercase - uppercase
Continue
arguments[message]
only the class and subclasses can access
15. Files Owner...
Continue
Is a placeholder object
a single-array can contain objects of different types
receiver
16. All objects are accessed using...
Ready-Made Instance
protocol
pointers
safety - subclassability and makes code look more consistent with C structs
17. NSDictionary...
you always return the newly initialized object(return self)
Object wrapper around primitive types like int - float - double - BOOl
safety - subclassability and makes code look more consistent with C structs
Hash table - Look up objects using a key to get a value.
18. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
to get and set variables
CGRect bounds - GCPoint center - CGRect frame
super - self
array[class - NSMutableArray]
19. @property - is using methods...
Model Objects[Factory Worker]
to give it someone else - or another object
to get and set variables
Is a placeholder object
20. @property declares - and _ implements the setter and getter...
to give it someone else - or another object
nil
object
@synthesize
21. Views have three properties related to their location and size: @property _ _;
class's
copy - retain
method
CGRect bounds - GCPoint center - CGRect frame
22. Proceed through the loop - jump back to the top and check again
Continue
alloc - singleton - informational utility method?
variable scope - if defined within a block
method
23. initWithFrame: the designated initializer for UIView gives the view
the array relinquishes ownership of that object and no longer has a pointer to it
size and position
view controller's initialization method
Core Graphics Framework
24. Instance Variables by default are called @protected meaning...
You take ownership for an object you want to keep a pointer to
selector[message]
safety - subclassability and makes code look more consistent with C structs
only the class and subclasses can access
25. NSDate - class...
initializers
method
CGRect bounds - GCPoint center - CGRect frame
Used to find the time right now or to store past or future time/dates
26. Primitives and C Structures...
cannot be added to an array
receiver - selector - arguments
Ready-Made Instance
only the innermost loop in which the break is executed is terminated
27. Three ways instances are created...
receiver
ready-made instances - instantiation from scratch - and nib based instantiation
selector[message]
view controller
28. UIImageView is used to...
variable scope - if defined within a block
values
receiver
draw images
29. In any application with UINavigationController - the navigation controller...
causes the program to immediately exit from the loop it is executing - whether its for - while or do
subview(s)
has one root view controller
Model Objects[Factory Worker]
30. Class methods typically either create
new instances of the class or retrieve some global property of the class.
viewWillDissapear: and viewWillAppear:
Used to find the time right now or to store past or future time/dates
is an instance of that class
31. If you have extra work you want to do on the view...
do so in viewDidLoad
safety - subclassability and makes code look more consistent with C structs
references to objects
delegates and dataSources
32. 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
33. The only reason to temporarily own an object - is...
to give it someone else - or another object
Model Objects[Factory Worker]
reuse your cells
position
34. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
CF - Ref
Model Objects[Factory Worker]
initializers
self
35. if you implemented both the setter and getter - the @synthesize method...
define it in the implemenation file
cannot be added to an array
will be ignored
Functions
36. A UITableViewController can fill all three roles of...
rectangular
Generic object wrapper for other non-object data types
protocol
data source - view controller and delegate
37. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
copy - retain
@interface ClassName:SuperClassName
has one root view controller
delegates and dataSources
38. Core foundation classes are prefixed with _ and suffixed with _
initializers
CF - Ref
instance variable of an object is valid
accessors - individually we call them 'getters' and 'setters'
39. 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
40. Defining variables - three parts...
@synthesize
instance of UIView or one of its subclasses
Generic object wrapper for other non-object data types
type - name and value
41. A function in the objective c library that simply displays or logs it's argument
copy - retain
NSLog routine
nil
'getters' and 'setters'
42. 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 _.
Ready-Made Instance
they need to be defined in the implementation file
nil
UIView
43. Whenever a UINavigationController is about to swap views - it sends out two messages
is an instance of that class
instance variables
viewWillDissapear: and viewWillAppear:
C Functionn
44. A view is a subclass of _
is called every time the event occurs
storage
size and position
UIView
45. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
an object's property
NSBundle
data source - view controller and delegate
Instantiation from scratch
46. UITableViewController is a subclass of...
Maintenance of state
NSBundle
UIViewController
subview(s)
47. Just a floating point number - but we always use it for graphics.
C Functionn
type - name and value
CGFloat
instance
48. Each _ has a 'designated' initializer method....
the message release to all its entries
define it in the implemenation file
parentViewController
class
49. Typically the designated initializer has parameters for the most important and frequently used _ of an object
view
instance variables
dealloc - is called on the object & the object's memory is returned to the heap
(id)initWithFrame:(CGRect)aRect;
50. Delegation is an object oriented approach to
you always return the newly initialized object(return self)
only the class and subclasses can access
callbacks
an object's property
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