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. A unique combination of view controller and view
class
scene
implementation file
Option+Command+4
2. 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?
switch
UIImage *wp1 = [UIImage imageNamed:@'wallPaper_01.png'];
myImage@2x.png
iOS Simulator
3. Implements a logical AND condition
if(<boolean condition>){/* stuff to do*/} else{ /*stuff to do*/}
Cocoa Touch
&&
alpha ... 0
4. You have an instance variable called 'myLabel' that is a member of UILabel. In an app - you set it's text property to 'Howdy' with the correctly-written command: myLabel.text = @'Howdy'; Re-write this command using [ ] message-sending syntax
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
5. The HIG requires some kind of _____ element in a cell if there is more information available
Hold down the Option key and point to the other label. The distance will be shown
convenience
image view
disclosure
6. @synthesize directives should be placed _____ (above or below) the @implementation directive in the implementation file
nested message send
Jump Bar
below
y *= 5;
7. Key sequence to run an app in Xcode
int
-
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
Command+R
8. Something the simulator cannot reliably test
@synthesize directive
Snapshot feature
storyboards
performance
9. This keyword in the property directive is related to memory management and refers to the idea that we want to maintain control of memory issues
Control-click on the View Controller's icon to bring up a Connections dialog
float
alpha ... 0
retain
10. ______ are variables that can store a ____ to an object.
instantiation
debugger
Outlets ... pointer
@2x
11. To unroll or roll up a hierarchy of files - objects or classes - you click the ______ _______ at the root element
disclosure triangle
320 x 480
&&
UIImageView
12. Syntax for declaring a variable
<type> <variableName>;
UIPicker
YES
token
13. Word used to indicate that a user can't interact with a given element
ption+Command+Return
static
immersive
-
14. To use a new class you need to _____ it
nibfile
instantiate
import
IBAction
15. Alternative selection mechanism when many conditions exist
main()
Snapshot feature
eXtensible Markup Language
switch
16. Class of strings that can be changed
Treats the field as a password - hiding each character as it is typed
instantiate
User Interface
NSMutableString
17. What are the guidelines for the class prefix for a project?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
18. RAM for iPhone
Group
do not
512MB
proxy
19. A fully opaque image has an _______ property value of ______
alpha ... 1
iOS Simulator
static
%@
20. The Round Rect Button is found in this library
storyboards
mutators
do not
Object Library
21. What computer language is the storyboard written in?
pound
retain
XML
Cocoa Touch
22. iPhone and iPad ____ support .png transparency
do not
h
scene
double
23. _____ are methods that we can connect to events.
[shrinkButton setTitle:@'Grow' forState: UIControlStateNormal];
Actions
alpha ... 1
NSDate
24. Syntax for declaring a string called 'userName'
NSString *userName;
%
detail disclosure
double
25. Objective-C is an extension (super set) of...
IBAction
C
[<object variable> <method name>];
eXtensible Markup Language
26. Dimensions of iPhone (in points)
To provide a convenient way of setting the button's title in the code
320 x 480
self
Home button
27. Other name for an *.xib file
web view
YES
count++;
nibfile
28. Always used to end the list of objects when initializing an array
nil
//blah blah blah
variable
NSURL
29. Precondition repetition structure syntax
Control-click on the View Controller's icon to bring up a Connections dialog
int
while(<boolean expression>){/*stuff to do here*/}
static
30. Scaling factor to make an image suitable for retina display
stub
Single View Application
2
Utility apps
31. Character used to show an element as a literal string
y *= 5;
segmented control
@
NSMutableArray
32. Denotes a class method
alpha ... 1
Object-oriented programming
count++;
+
33. Process of creating an active object from a class
do not
instantiation
do{/*stuff to do here*/}while(<boolean expression>);
implementation file
34. Two-way selection logic block
implementation file
if(<boolean condition>){/* stuff to do*/} else{ /*stuff to do*/}
'Interface Builder'
modal views
35. 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
36. Used to set up an outgoing connection from the implementation code to the view
UIWindow
UIApplication
IBOutlet
%@
37. Recommended image type for button graphics
png
onscreen 'widgets' a user can interact with
instance variable
NSString
38. MVC
NSArray
!=
model
Model-View-Controller
39. Data type for whole numbers
ommand+Return
NSArray
storyboard
int
40. What do the Autosizing settings of the Size Inspector do?
Send the 'resignFirstResponder' message to the object that currently controls the keyboard (such as a text field)
Determine how controls resize/reposition themselves when a device changes orientation
Touch Up Inside
utility
41. Combining two messages into a single line of code
modal
[[<class name> alloc] init];
IBAction
nested message send
42. Under what circumstances would you need an outlet for a button if it's just needed to trigger an action?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
43. In the MVC design pattern for iOS apps - this aspect provides the underlying data and methods that offer information to the rest of the application
Treats the field as a password - hiding each character as it is typed
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.
model
NSMutableArray
44. This type of app is typically one screen - and gives you the basics with minimal interaction
Isolate the functional components of an app
graduationParty ... addAttendee:withDish
Cocoa is the development framework used for most native Mac OS X applications; Cocoa Touch is customized for a touch interface
utility
45. 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).
wrap
proxy
Object Library
NSLog(@'%s' - __FUNCTION__);
46. An app has boolean variables 'hasShrunk' and 'hasMoved'. Write a boolean condition that checks if each are true
UILabel *myLabel = [[UILabel alloc] initWithString:@'GO!'];
Single View Application
[<object variable> <method name>];
hasShrunk==YES && hasMoved == YES
47. Class that builds upon another class
Command+R
control-dragging
myImage@2x.png
subclass
48. Memory aid for keyboard shortcuts in the Navigator panel
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
49. Purpose of the 'Auto-enable Return Key' attribute for text fields
token
UIViewController
png
Disables the Return key on the keyboard unless the user has entered at least a single character of input into the field
50. 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