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. Reducing details to focus on the core concepts
viewWillDissapear: and viewWillAppear:
alloc - singleton - informational utility method?
you always return the newly initialized object(return self)
Abstraction
2. You use _ to implement the view
Hash table - Look up objects using a key to get a value.
UIViewController
type - name and value
CGRect bounds
3. If the view has no subviews - create it programmatically; if it has subviews
superclass's
create a XIB file
Instantiation from scratch
has one root view controller
4. A pointer to the object being asked to execute a method
receiver[message]
delegates and dataSources
upper
attributes - behavior
5. Defining variables - three parts...
type - name and value
declaration and initialization of a variable
copy - retain
self
6. Also if you send the NSObject the _ message - you own that object.
subview(s)
you must import the header file of that class
retain
rectangular
7. 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
8. Designated initializer makes sure that every...
methods
@synthesize
instance variable of an object is valid
to give it someone else - or another object
9. Proceed through the loop - jump back to the top and check again
Continue
method
only the innermost loop in which the break is executed is terminated
methods
10. 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...
setPossessionName
Generic object wrapper for other non-object data types
NSBundle
define it in the implemenation file
11. After accessors have been defined in the header file...
unordered collection of objects - objects must be unique
they need to be defined in the implementation file
header files declare
lowercase - uppercase
12. @property - is using methods...
@interface ClassName:SuperClassName
collection of collections - NSArray of an NSArray
to get and set variables
@synthesize
13. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
Instantiation from scratch
UIView
accessors - individually we call them 'getters' and 'setters'
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
14. 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 _.
retain
Data Encapsulation
object
subview(s)
15. Each object does its own job - and presents to the rest of the world - to other objects - and indeed in a sense to the programmer - an opaque wall whose only entrances are the methods to which it promises to respond and the actions it promises to per
only the class and subclasses can access
class
Encapsulation of functionality
view controller's initialization method
16. Typically the designated initializer has parameters for the most important and frequently used _ of an object
causes the program to immediately exit from the loop it is executing - whether its for - while or do
draw images
instance variables
Continue
17. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
creating an initializer
the message release to all its entries
CGRect
Ready-Made Instance
18. A view represents a _ area
rectangular
its dataSource
a mechanism to enable specific callbacks
message
19. initWithFrame: the designated initializer for UIView gives the view
pointer - class
storage
safety - subclassability and makes code look more consistent with C structs
size and position
20. If you have extra work you want to do on the view...
pointers
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
do so in viewDidLoad
upper
21. The integer prefix is...
receiver - selector - arguments
%d
UIViewController
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
22. Class methods do not operate on an _ or have any access to _ variables....
instance
NSBundle
view controller
its dataSource
23. At the top of any implementation file...
values
you must import the header file of that class
Continue
the message release to all its entries
24. How do I implement my drawRect?
CGRect bounds - GCPoint center - CGRect frame
method
safety - subclassability and makes code look more consistent with C structs
Core Graphics Framework
25. A method in a _ is required unless its preceded by an @optional.
is called every time the event occurs
Ready-Made Instance
protocol
selector[message]
26. NSString *s = @'Hello - World'; is an example of...
declaration and initialization of a variable
do so in viewDidLoad
the array relinquishes ownership of that object and no longer has a pointer to it
CGFloat
27. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
creating an initializer
self
header files declare
methods
28. The designated initializer calls the _ designated initializer....
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
29. NSString objects are usually sent _ rather than _...
NSLog routine
copy - retain
you always return the newly initialized object(return self)
method
30. Use of class methods - there are three...
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
pointer to an object
rectangular
alloc - singleton - informational utility method?
31. The class is responsible for what instance variables the instance has - but not the _ of those variables.
data source - view controller and delegate
values
instance
alloc - singleton - informational utility method?
32. NSArray - important methods...
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
draw images
Model Objects[Factory Worker]
first responder
33. A message is always contained in square brackets - and has three parts
view controller's initialization method
the array relinquishes ownership of that object and no longer has a pointer to it
storage
receiver - selector - arguments
34. UITableViewController is a subclass of...
designated initializer
an object's property
in the dealloc - or when a Controller's view is 'unloaded'
UIViewController
35. In any application with UINavigationController - the navigation controller...
setPossessionName
reuse your cells
has one root view controller
receiver[message]
36. 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.
wait until the loop finishes processing the event - at the end release it
selector[message]
first responder
you always return the newly initialized object(return self)
37. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
a mechanism to enable specific callbacks
view controller's initialization method
UIViewController
class methods - initializers
38. 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
CGRect
UIViewController
Functions
a mechanism to enable specific callbacks
39. NSDictionary...
will be ignored
Hash table - Look up objects using a key to get a value.
Functions
view controller
40. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
draw images
nil
CGRect
create a XIB file
41. NSArray - class...
alloc - singleton - informational utility method?
NSCoder
first responder
ordered collection of objects - immutable
42. In a class method you cannot access...
the instance variables
accessors - individually we call them 'getters' and 'setters'
superclass's
reuse your cells
43. Only exists within the statement block there defined - outside of the block is fine
only the innermost loop in which the break is executed is terminated
Object wrapper around primitive types like int - float - double - BOOl
reuse your cells
variable scope - if defined within a block
44. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
only the class and subclasses can access
its dataSource
pointer - class
NSCoder
45. A function in the objective c library that simply displays or logs it's argument
the array becomes an owner of that object and has a pointer to it.
Functions
NSLog routine
do so in viewDidLoad
46. Hold data and know nothing about the user interface
type - name and value
view
Model Objects[Factory Worker]
cannot be added to an array
47. Never access a view controller's view in that...
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
48. Three ways instances are created...
ready-made instances - instantiation from scratch - and nib based instantiation
Ready-Made Instance
rectangular
Encapsulation of functionality
49. A command directed to an object is called an...
message
UIView
has one root view controller
initializer
50. Also - because arrays only hold a pointer to an object...
a single-array can contain objects of different types
they need to be defined in the implementation file
arguments[message]
Controller Objects[Managers]
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