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 2
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. A property is just the combination of _______.
MVC - for model-view-controller
Two floats - for width and height
Getter and setter methods.
@interface JGEmailLoginEmailViewController(){ NSMutableData _receivedData; }@property (weak -nonatomic) JGAppDelegate appDelegate;@property (weak - nonatomic) IBOutlet UITextField *txtfldEmailAddress;@end
2. How to force a redraw of a custom area?
for...in; don't change things inside the loop.
No...but it has 'a way' to notify the controller to come ask for fresh data.
Call setNeedsDisplay:
Dash - Plus sign.
3. ________ is the .h file and __________ is the .m file.
Controls how the model is presented onscreen.
@interface JGEmailLoginEmailViewController(){ NSMutableData _receivedData; }@property (weak -nonatomic) JGAppDelegate appDelegate;@property (weak - nonatomic) IBOutlet UITextField *txtfldEmailAddress;@end
Interface; Implementation
self.view
4. In synthesize: @synthesize foo = _foo; The __foo_ is the ____________ or also known as the ___________________.
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
5. A _______ is how a view notifies the controller of something - for example - a button press.
Action
Strongly.
id; an object pointer
No. Use NSMutableArray - which is a subclass of NSArray.
6. What is the makeup of a CGPoint?
Lazy instantiation.
Properties; instance variables
NSUserDefaults - which stores a property list.
Two CGFloats for x and y
7. All properties are initialized to _____
Immutable. But there are many methods that take an NSString and returned a modified one. This is fast and preferable to using NSMutableString.
A rectangular area
zero/nil
The runtime system asks the object what its class is.
8. A _______ goes from the Controller to the View. A ________ goes from the view to the controller.
Cocoa Touch - Media - Core Services - Core OS
Right-click on view - or even a subview like a button.
1.) Ask another object to do it - e.g. with mutableCopy. 2.) Call a class method - 3.) [[Classname alloc] init];
Outlet; Action
9. In the initializer methods of objects I create - add what line of code? Why?
self = [super init] {if init is the designated initializer of the superclass}. If the superclass init routine fails - I will know to return nil from my init routine.
UIWindow
NSSet; no - it's immutable
'Keep this in the heap as long as someone else points to it strongly. If it gets thrown out of the heap - set my pointer to it to nil.'
10. How to see all actions - outlets - incoming/outgoing segues on a view?
Right-click on view - or even a subview like a button.
the controller's minions. Gets things to the screen.
No...but it has 'a way' to notify the controller to come ask for fresh data.
NSSet; no - it's immutable
11. What is the bounds property of a UIView?
A collection of collections in graph form. Can include NSArray - NSDictionary - NSNumber - NSString - NSData - and NSData.
create a model
Nothing happens - and nil is returned.
internal origin and size. Use this inside a view
12. How to add subviews in code? How to remove them?
Instance method; class method.
option-click; option-double-click
addSubview; removeFromSubview
Strong. Object memory is freed at the end of the routine.
13. Talk about BOOL variables.
Creating objects - or finding information relative to the class. The name of the class is the first thing in the square brackets.
NO is zero; YES is anything else.
MVC - for model-view-controller
the controller's minions. Gets things to the screen.
14. How to create a UIView in code?
[[UIView alloc] initWithFrame]
internal origin and size. Use this inside a view
self
If it's in the header file - it's public. To make some private variables - you can put a private interface section at the top of an implementation file.
15. What is the center property of a UIView?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
16. How can I find out the class of any object? Give a line of code.
An outlet.
The runtime system asks the object what its class is.
Class XX = [Object class]
Strong. Object memory is freed at the end of the routine.
17. What to do in Xcode for short documentation? For full documentation?
Cocoa Touch - Media - Core Services - Core OS
If it's in the header file - it's public. To make some private variables - you can put a private interface section at the top of an implementation file.
One; zero to many
option-click; option-double-click
18. What do I use for an ordered collection of objects? And is it mutable?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
19. Where do I initialize properties?
In the getter! This is called lazy instantiation.
Creating objects - or finding information relative to the class. The name of the class is the first thing in the square brackets.
Call setNeedsDisplay:
NSSet; no - it's immutable
20. Instead of 'include' statements - in Objective-C we use _______ which does ________
@interface JGEmailLoginEmailViewController(){ NSMutableData _receivedData; }@property (weak -nonatomic) JGAppDelegate appDelegate;@property (weak - nonatomic) IBOutlet UITextField *txtfldEmailAddress;@end
Import / handle multiple inclusion.
NO is zero; YES is anything else.
(1) We can validate (e.g. bounds-check) any sets done by a subclass. (2) We can lazily instantiate - so things only get created if and when they are needed.
21. How about the model talking to the controller?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
22. When happens when you send a message to nil?
NSNumber. For example numberWithDouble: and doubleValue:
NSData
UIViewController.
Nothing happens - and nil is returned.
23. The controller is always a subclass of...?
UIViewController.
Two CGFloats for x and y
the controller's minions. Gets things to the screen.
Creating objects - or finding information relative to the class. The name of the class is the first thing in the square brackets.
24. What is a property list?
A collection of collections in graph form. Can include NSArray - NSDictionary - NSNumber - NSString - NSData - and NSData.
zero/nil
Points - to achieve device-independence
internal origin and size. Use this inside a view
25. What do I use for an unordered collection - e.g. test for membership? And is it mutable?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
26. The setters for outlets are called by _______ at this point ______________.
iOS; when the view is loaded.
Don't use id for a pointer. Use the actual type pointed to. It allows the compiler (but not the runtime!) to help find bugs.
My rectangle in my superview's coordinate space
The document; possibly a database.
27. How to access the controller's top view?
Don't use id for a pointer. Use the actual type pointed to. It allows the compiler (but not the runtime!) to help find bugs.
Two CGFloats for x and y
self.view
Nothing happens - and nil is returned.
28. Calling a method on id works just fine because....?
Sort of - in ways that it doesn't need to know much about the controller. For example: delegation.
On left side - is calling the setter - and on the right side - is calling the getter.
NSNumber. For example numberWithDouble: and doubleValue:
The runtime system asks the object what its class is.
29. What is the base class for most objects in the iOS SDK?
create a model
The compiler adds code to count references.
NSObject
An outlet.
30. All classes should have a __________________ to be called by subclasses.
Properties; instance variables
Action
Designated initializer.
Dash - Plus sign.
31. What does a view (UIView) represent?
A rectangular area
@synthesize; write our own getter and/or setter.
self = [super init] {if init is the designated initializer of the superclass}. If the superclass init routine fails - I will know to return nil from my init routine.
Interface; Implementation
32. Is it always bad to send messages to id?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
33. The decision on what method to call is made when?
At runtime.
[Object isMemberOfClass:[Classname class]]
Lazy instantiation.
The runtime system asks the object what its class is.
34. What does 'weak' mean?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
35. How is ARC done?
id; an object pointer
The compiler adds code to count references.
Strongly.
Override drawRect:
36. Class methods are used for ___________ and the call starts with ____________.
To zero; so pointers are nil.
Never!
Creating objects - or finding information relative to the class. The name of the class is the first thing in the square brackets.
line up the colons!
37. Is NSString mutable or not?
NSArray; no - it's immutable.
Immutable. But there are many methods that take an NSString and returned a modified one. This is fast and preferable to using NSMutableString.
The runtime system asks the object what its class is.
Properties; instance variables
38. What is the makeup of a CGRect?
A framework.
Two floats - for width and height
A CGPoint and and a CGSize
Other MVC trios.
39. The view is...
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
40. How can I save user information between launches of my app?
(1) We can validate (e.g. bounds-check) any sets done by a subclass. (2) We can lazily instantiate - so things only get created if and when they are needed.
NSUserDefaults - which stores a property list.
Yes. The controller knows everything about the model.
A framework.
41. Objects in an array: are the pointed to strongly or weakly?
Strongly.
the controller's minions. Gets things to the screen.
On left side - is calling the setter - and on the right side - is calling the getter.
Can handle any language because it uses Unicode.
42. What does 'strong' mean?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
43. What is the fundamental design pattern of iOS development?
MVC - for model-view-controller
create a model
Properties; instance variables
Yes. The controller knows everything about the model.
44. What about the view talking to the controller?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
45. What is used in lieu of pixels? And why?
Introspection - with the class method 'class'
Points - to achieve device-independence
NSUserDefaults - which stores a property list.
NSSet; no - it's immutable
46. Instance methods start with a ______ and class methods start with a ______.
line up the colons!
Import / handle multiple inclusion.
Dash - Plus sign.
No. Use NSMutableArray - which is a subclass of NSArray.
47. Can the controller talking to the view?
id
MVC - for model-view-controller
NSUserDefaults - which stores a property list.
Yes. As much as it wants.
48. Are local pointers to objects strong or weak? So what happens at the end of the routine?
Strong. Object memory is freed at the end of the routine.
Nothing happens - and nil is returned.
No...but it has 'a way' to notify the controller to come ask for fresh data.
create a model
49. There is no difference between _____ and _______ at runtime.
The compiler adds code to count references.
At runtime.
id; an object pointer
The runtime system asks the object what its class is.
50. What is the frame property of a UIView?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
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