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. Write a statement to declare and initialize a label object called 'myLabel'
UILabel *myLabel = [[UILabel alloc] init];
YES
!=
Gray circle with a white 'X' in it - positioned to the right of the text field box
2. Objective-C is an extension (super set) of...
First Responder
ption+Command+Return
C
int
3. The Round Rect Button is found in this library
NSArray
wrap
myImage@2x.png
Object Library
4. 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
nonatomic
!=
NSString
5. Used to define a list of all methods and properties a class uses
interface file
||
User Interface
nibfile
6. Given: [graduationParty addAttendee: @'Aunt Jane' withDish: @'deviled eggs']; The 'receiver' is _______; the 'selector' is _________
:
graduationParty ... addAttendee:withDish
productivity
IBAction
7. Syntax for sending an object a message with no parameters
below
eXtensible Markup Language
strong
[<object variable> <method name>];
8. Opens the Xcode Quick Help Assistant
do not
Option-click a symbol
png
stub
9. Two-way selection logic block
void
if(<boolean condition>){/* stuff to do*/} else{ /*stuff to do*/}
h
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
10. MVC
Cocoa Touch
affine
Model-View-Controller
NO
11. You have two labels in Interface Builder. One is selected (You clicked on it). How can you tell the distance between it and the other label?
utility
alpha ... 1
Classes
Hold down the Option key and point to the other label. The distance will be shown
12. Syntax for reserving memory and initializing an object
Classes
[[<class name> alloc] init];
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.
NSURLRequest
13. Dimensions of iPhone (in points)
Cocoa Touch
do{/*stuff to do here*/}while(<boolean expression>);
320 x 480
&&
14. Templates fill in a bunch of ______-_______ code that serves as a framework in which to write future implementations
switch
modal views
nil
boiler-plate
15. Implements a logical AND condition
:
prototyping
label
&&
16. Shortcut for writing: count = count + 1;
protocols
count++;
scene
UIImage *wp1 = [UIImage imageNamed:@'wallPaper_01.png'];
17. Syntax for declaring a string called 'userName'
@
/*blah blah blah */
[[<class name> alloc] init];
NSString *userName;
18. For a text field - what does the 'Clear Button' look like?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
19. Any 'directive' statement begins with this symbol
@
[[<class name> alloc] init];
Control-click on the View Controller's icon to bring up a Connections dialog
Home button
20. Combining two messages into a single line of code
conform
NSURLRequest
view
nested message send
21. In the US - the '#' symbol is often called the ____ symbol
parameter
Integrated Development Environment
pound
y *= 5;
22. setters
mutators
implementation file
NSMutableArray
x--;
23. Way to refer to an object within its own methods
if(<boolean condition>){/* stuff to do*/} else{ /*stuff to do*/}
self
id
nested message send
24. To unroll or roll up a hierarchy of files - objects or classes - you click the ______ _______ at the root element
Program received signal: EXC_BAD_ACCESS
CGAffineTransform
disclosure triangle
Command plus the navigator's position in the selector. For example - the project navigator shortcut is Command-1
25. Beginning with iOS4 - applications no longer terminate when the user presses the...
m
Home button
UIImage *wp1 = [UIImage imageNamed:@'wallPaper_01.png'];
||
26. Connections between Objects in the Interface Builder and the header file are formed by _____-_______ from the object to the proper place in the header file
x--;
control-dragging
nonatomic
controller
27. In a stepper control - when this attribute option is checked - the stepper's value is automatically set to the minimum value when the maximum value is exceeded (or vice versa).
UIViewController
wrap
label.text=@'Hello World!';
Seques .... relationships
28. Syntax to include UIKIT in a class
wrap
productivity
#import <UIKIT/UIKIT.h>
float
29. UI
512MB
alpha ... 0
User Interface
Model-View-Controller
30. ______ enable applications to store multiple pieces of information in a single object
Group
storyboard
Collections
%
31. Denotes an instance method
To provide a convenient way of setting the button's title in the code
switch
do not
-
32. If a method name includes a colon (:) this indicates a required _________
Model-View-Controller
parameter
alpha
UILabel *myLabel = [[UILabel alloc] init];
33. Class used for image manipulations such as scaling - rotation and translation. Its data structure represents a matrix used for affine transformations.
Instruments
CGAffineTransform
Actions
Attributes Inspector
34. Key sequence to open the Standard Editor
float
IBAction)moveMe:(id)sender;
storyboards
ommand+Return
35. Extension for interface file
boiler-plate
UIApplication
modal views
h
36. 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
37. A tool in Xcode to help fix broken code
[<object variable> <method name>];
debugger
onscreen 'widgets' a user can interact with
==
38. Defines the functional building blocks (classes) that make iOS devices perform certain actions
affine
#import <UIKIT/UIKIT.h>
Cocoa Touch
view
39. This type of app is typically one screen - and gives you the basics with minimal interaction
utility
Command+0
do{/*stuff to do here*/}while(<boolean expression>);
XML
40. API
Application Programming Interface
NSString
disclosure
debugger
41. Purpose of the 'Auto-enable Return Key' attribute for text fields
interface and implementation files
Gray circle with a white 'X' in it - positioned to the right of the text field box
modal views
Disables the Return key on the keyboard unless the user has entered at least a single character of input into the field
42. These define to which messages the datasource and delegate respond
protocols
NSURLRequest
Control-click on the View Controller's icon to bring up a Connections dialog
IBAction)moveMe:(id)sender;
43. 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.
Nib (but a few call it 'zib' but that's not preferred)
bgImages = [[NSArray alloc] initWithObjects: wp1 - wp2 - wp3 - wp4 - wp5 - nil];
@synthesize directive
Attribute settings for some onscreen controls (like text areas) that analyze content and provide helpful links based on what they find. For example - phone numbers can be touched to dial the phone; web addresses can launch Safari if tapped - etc
44. Class that builds upon another class
!=
subclass
alpha ... 1
Snapshot feature
45. In the MVC design pattern for iOS apps - view consists of the various...
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
46. Write a line of code creating a pointer to a wall paper image called 'wp1' that refers to a resource in an app with the file name 'wallPaper_01.png'
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
47. A fully transparent image has an _____ property value of _____
do not
UIApplication
hasShrunk==YES && hasMoved == YES
alpha ... 0
48. Key sequence to hide/show Navigator View
Instruments
Command+0
token
casting
49. File name suffix indicating an image is suitable for retina display
IBAction
pound
<>
@2x
50. Creates 'getters' and 'setters'
!=
@synthesize directive
Document Outline Area or Outline View
segmented control