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 Basics
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. @property directives should be placed ____ (above or below) any IBActions in the header file
model
int
above
Cocoa Touch
2. Defines what an object can do
NSLog
class
main()
y *= 5;
3. Purpose of the 'Auto-enable Return Key' attribute for text fields
prototyping
!
storyboard
Disables the Return key on the keyboard unless the user has entered at least a single character of input into the field
4. A view has a 'Shrink' button whose label needs to change once it is clicked to 'Grow'. Write a 'message' type command to change it's label to 'Grow'
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
5. Shortcut for writing: x = x - 1;
strong
x--;
Model-View-Controller
@synthesize
6. Alternative selection mechanism when many conditions exist
Object library
switch
protocols
Nib (but a few call it 'zib' but that's not preferred)
7. Dimensions of iPad (in points)
self
disclosure triangle
1024 x 768
debugger
8. Something the simulator cannot reliably test
NeXSTEP
%
performance
CGAffineTransform
9. The Round Rect Button is found in this library
myImage@2x.png
Look at the three icons at the upper left portion of the Debug console. The far left one - 'Show only the Variables View' will not show the NSLog-ed information. Click the center icon ('Show the Variables View and the Console') or the right icon ('Sh
Object Library
Cocoa Touch
10. Class of collection data type which stores information as object/key pairs
NSDictionary
<type> <variableName>;
*
double
11. You have created some 'breadcrumbs' using NSLog to trace the path of your code - and the debug area is open - yet you see no information in the panel. What's the problem and what is the solution?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
12. Formatting placeholder for integers
sending an object a message
mutators
%d
Snapshot feature
13. Prior to ARC - you used these terms alot
utility
Command+R
114 x 114
retain - release - dealloc - autorelease
14. Companion to the @property directive
IBAction
Command+0
web view
@synthesize
15. A transition between scenes - frequently with a visual transition effect applied
segue
eXtensible Markup Language
strong
*
16. Master class in iOS
subclass
NSObject
//blah blah blah
Something unique - based on the app's name (perhaps abbreviated). Avoid 'NS' or 'UI' since they are used in Apple's frameworks. A framework or library should always be prefixed. For a simple app - they are not necessary.
17. If you have an image file called 'myImage.png' and you make a hi-res version for the retina display - what should be the name of the new file?
&&
@
myImage@2x.png
switch
18. The files that contain all the scenes you will use in a project.
storyboards
image view
import
double
19. Data type for numbers with 'tame' numbers of decimal points
C
storyboard
First Responder
float
20. Size of iPhone retina icon image in pixels
114 x 114
view
NO
above
21. Key sequence to open the Attributes Inspector
int
Option+Command+4
@synthesize
[<object variable> <method name>: p1];
22. Syntax for sending an object a message with no parameters
YES
NSLog
alpha
[<object variable> <method name>];
23. An array of background images called 'bgImages' has been declared as an instance variable in your header file. You have created a set of 5 background images stored in UIImage variables wp1 through wp5. Write a line of code that initializes the array.
viewDidLoad
Option-click a symbol
immersive
bgImages = [[NSArray alloc] initWithObjects: wp1 - wp2 - wp3 - wp4 - wp5 - nil];
24. Syntax for single-line comment
Seques .... relationships
@
NSArray
//blah blah blah
25. Templates fill in a bunch of ______-_______ code that serves as a framework in which to write future implementations
modal
boiler-plate
/*blah blah blah */
Object library
26. To use a new class you need to _____ it
int
sending an object a message
instantiate
interface file
27. OOP
subclass
Classes
YES
Object-oriented programming
28. Consider: int x = 6;int y = 7;float quotient = (float) x/y;The statement that creates the variable 'quotient' is an example of ...
label.text=@'Hello World!';
UIPicker
//blah blah blah
casting
29. What event do you use to detect a button tap?
Touch Up Inside
Option+Command+4
NSArray
NSMutableString
30. Extension for implementation file
m
YES
do{/*stuff to do here*/}while(<boolean expression>);
onscreen 'widgets' a user can interact with
31. The 'First Responder' in a scene is not an object it is considered a ________
proxy
2
wrap
hash
32. MVC
Model-View-Controller
Document Outline Area or Outline View
ption+Command+Return
NSLog
33. Denotes an instance method
strong
iOS Simulator
IBAction
-
34. The goal of the MVC design pattern
Isolate the functional components of an app
parameter
Cocoa Touch
void
35. Syntax for declaring a variable
instantiate
Gray circle with a white 'X' in it - positioned to the right of the text field box
Object Library
<type> <variableName>;
36. Syntax for sending an object a message with one parameter (p1)
[<object variable> <method name>: p1];
To provide a convenient way of setting the button's title in the code
IBAction
IBAction)moveMe:(id)sender;
37. Implements a logical OR condition
alpha ... 0
Double-click
||
Xcode
38. Used to receive an event in code and trigger something
Option+Command+ 0
IBAction
Xcode
nested message send
39. Apple's classes often provide a special initialization method called a _____ method
Isolate the functional components of an app
convenience
To provide a convenient way of setting the button's title in the code
||
40. Key sequence to hide/show Utilities View
header
hasShrunk==YES && hasMoved == YES
Determine how controls resize/reposition themselves when a device changes orientation
Option+Command+ 0
41. What's the difference between Cocoa and Cocoa Touch?
instantiation
float
strong
Cocoa is the development framework used for most native Mac OS X applications; Cocoa Touch is customized for a touch interface
42. The ________ class provided a container for the management and display of views
Utility apps
UIWindow
Object library
NSArray
43. Word used to indicate that a user can't interact with a given element
Option+Command+4
!=
import
static
44. What do the Autosizing settings of the Size Inspector do?
com.basicversity
Option-click a symbol
Determine how controls resize/reposition themselves when a device changes orientation
NeXSTEP
45. The object currently in control and interacting with the user
inspector and library
First Responder
%d
&&
46. Synonym for interface file
hash
%1.2f
header
!=
47. A virtual 'box' for organizing related projects
workspace
nested message send
control-dragging
alpha
48. Class used to work with dates as objects
Home button
NSDate
import
interface and implementation files
49. This file contains the scene - segue and relationship definitions for your project
bool
UIApplication
storyboard
disclosure
50. Tests to see whether two values are equal
Jump Bar
import
==
Integrated Development Environment