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. This keyword in the property directive is related to the concept of mutability and basically asks Apple to handle the details. This is the more 'relaxed' - less 'powerful' setting of two possibilities
nonatomic
Object-oriented programming
view controller
while(<boolean expression>){/*stuff to do here*/}
2. This type of app is mostly custom controllers and graphics
contentSize
immersive
NSLog(@'%s' - __FUNCTION__);
[<object variable> <method name>: p1];
3. 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.
Object-oriented programming
<type> <variableName>;
Touch Up Inside
bgImages = [[NSArray alloc] initWithObjects: wp1 - wp2 - wp3 - wp4 - wp5 - nil];
4. Used to define a list of all methods and properties a class uses
Group
do{/*stuff to do here*/}while(<boolean expression>);
//blah blah blah
interface file
5. If a method name includes a colon (:) this indicates a required _________
parameter
int
First Responder
[myLabel setText:@'Howdy'];
6. 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
7. Creates 'getters' and 'setters'
import
controller
NSArray
@synthesize directive
8. 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
9. RAM for iPhone
-
Determine how controls resize/reposition themselves when a device changes orientation
512MB
Cocoa Touch - Media - Core Services - Core OS
10. Any 'directive' statement begins with this symbol
&&
scene
@
Document Outline Area or Outline View
11. Syntax to include the fictitious user-created file 'myFile.h'
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
12. Syntax for block-comment
/*blah blah blah */
Object Library
disclosure triangle
retain - release - dealloc - autorelease
13. A ______ is where you edit a view and assign a controller to it.
C
scene
accessible apps
Determine how controls resize/reposition themselves when a device changes orientation
14. UI
User Interface
Command+S
for(<initialization>;<test condition>;<update instruction>){/*do this over and over*/}
Model-View-Controller
15. IDE
retain - release - dealloc - autorelease
114 x 114
com.basicversity
Integrated Development Environment
16. An _______ is used to 'advertise' a method in your code that should be called when a certain event takes place
while(<boolean expression>){/*stuff to do here*/}
IBOutlet
IBAction
m
17. Formatting placeholder for integers
NSLog
The Console area of the Debug area
First Responder
%d
18. Implements a logical OR condition
contentSize
disclosure triangle
boiler-plate
||
19. Alternative selection mechanism when many conditions exist
alpha ... 0
Identity Inspector
switch
Command+S
20. Used to set up an outgoing connection from the implementation code to the view
UIApplication
IBOutlet
boiler-plate
NO
21. SDK
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
22. A virtual 'box' for organizing related projects
/*blah blah blah */
Option+Command+ 0
UIImageView
workspace
23. ______ and ______ define the connections between scenes.
Seques .... relationships
modal
Object-oriented programming
image view
24. In the UK - the '#' symbol is often called the ____ symbol
disclosure triangle
double
hash
Human Interface Guide
25. Defines the functional building blocks (classes) that make iOS devices perform certain actions
superclass
NSMutableArray
Cocoa Touch
subclass
26. Given: #import <UIKit/UIKit.h> @interface WelcomeViewController : UIViewController @end The superclass for WelcomeViewController
@synthesize directive
[<object variable> <method name>: p1];
instance variable
UIViewController
27. Consider: int x = 6;int y = 7;float quotient = (float) x/y;The statement that creates the variable 'quotient' is an example of ...
Seques .... relationships
casting
UIWindow
Cocoa Touch
28. Piece of information provided to a method when it is messaged
eXtensible Markup Language
accessible apps
modal views
parameter
29. Class that another class inherits from
Object Library
superclass
conform
y *= 5;
30. Extension for implementation file
m
self
Application Programming Interface
Touch Up Inside
31. Class that allows URL management
NSLog(@'%s' - __FUNCTION__);
@
NSURL
Cocoa Touch
32. API
Model-View-Controller
Cocoa is the development framework used for most native Mac OS X applications; Cocoa Touch is customized for a touch interface
workspace
Application Programming Interface
33. Extension for interface file
h
int
view controller
XML
34. Given: [graduationParty addAttendee: @'Aunt Jane' withDish: @'deviled eggs']; The 'receiver' is _______; the 'selector' is _________
com.basicversity
contentSize
import
graduationParty ... addAttendee:withDish
35. Typical header syntax for a button that will be applying the 'moveMe' action in an app
modal
nonatomic
iOS Simulator
IBAction)moveMe:(id)sender;
36. 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
double
NSString
control-dragging
Xcode
37. Prior to ARC - you used these terms alot
graduationParty ... addAttendee:withDish
[[<class name> alloc] init];
class
retain - release - dealloc - autorelease
38. Class used for image manipulations such as scaling - rotation and translation. Its data structure represents a matrix used for affine transformations.
CGAffineTransform
Command+R
model
while(<boolean expression>){/*stuff to do here*/}
39. @property directives should be placed ____ (above or below) any IBActions in the header file
contentSize
NSString *userName;
above
[myLabel setText:@'Howdy'];
40. Purpose of the 'Auto-enable Return Key' attribute for text fields
label.text=@'Hello World!';
Scheme
Disables the Return key on the keyboard unless the user has entered at least a single character of input into the field
Seques .... relationships
41. This file contains the code that makes everything 'work'
IBAction
First Responder
implementation file
boiler-plate
42. A common button type that indicates additional information is available
First Responder
detail disclosure
IBAction
attributes
43. Another name for a 'button bar'
segmented control
NeXSTEP
Commmand-R
||
44. Tests to see whether two values are not equal
variable
!=
convenience
XML
45. Postcondition repetition structure syntax
do{/*stuff to do here*/}while(<boolean expression>);
interface and implementation files
Single View Application
Send the 'resignFirstResponder' message to the object that currently controls the keyboard (such as a text field)
46. Key sequence to hide/show the Assistant Editor
ption+Command+Return
Classes
Cocoa Touch
Model-View-Controller
47. Syntax for single-line comment
Command+0
//blah blah blah
<>
Hold down the Option key and point to the other label. The distance will be shown
48. Formatting placeholder for a floating point value with one digit on the left of the decimal and two digits on the right
@synthesize directive
!
NSString
%1.2f
49. Character used to show an element as a literal string
parameter
@
header
YES
50. Defines what an object can do
@2x
Nib (but a few call it 'zib' but that's not preferred)
segue
class