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. Synonym for interface file
protocols
NSString *phrase = @'Hello World';
header
@
2. 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
3. Syntax for declaring a string called 'userName'
image view
Cocoa Touch
NSString *userName;
import
4. Declaring a method in an interface file - before it is actually implemented is called _______ the method
prototyping
||
114 x 114
UITextView
5. 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.
bgImages = [[NSArray alloc] initWithObjects: wp1 - wp2 - wp3 - wp4 - wp5 - nil];
Send the 'resignFirstResponder' message to the object that currently controls the keyboard (such as a text field)
disclosure triangle
count++;
6. setters
mutators
Snapshot feature
float
pipe
7. Syntax for sending an object a message with one parameter (p1)
Control-click on the View Controller's icon to bring up a Connections dialog
%1.2f
[<object variable> <method name>: p1];
Command+S
8. Code fragment for echo printing the name of a function as it loads (for tracing the sequence of code in a project...leaving breadcrumbs)
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
9. Class of strings that can be changed
implementation file
Identity Inspector
if(<boolean condition>){/* stuff to do*/} else{ /*stuff to do*/}
NSMutableString
10. Data type for true/false type variables
retain - release - dealloc - autorelease
performance
bool
The Console area of the Debug area
11. A view that is displayed on top of an original view when user interactions are required
modal views
boiler-plate
'Interface Builder'
Utility apps
12. The Utilities area has two sections: ______ and ______
hasShrunk==YES && hasMoved == YES
inspector and library
Model-View-Controller
view controller
13. The goal of the MVC design pattern
'Software Development Kit'
scene
Isolate the functional components of an app
Single View Application
14. Closes an interface file
eXtensible Markup Language
@end
nil
hasShrunk==YES && hasMoved == YES
15. Syntax for block-comment
/*blah blah blah */
Cocoa Touch
[[<class name> alloc] init];
immersive
16. Data type for highly precise numbers with huge numbers of decimal places
IBAction)moveMe:(id)sender;
double
NSDate
label.text=@'Hello World!';
17. Class used for creating image views
UIImageView
YES
NSMutableArray
modal views
18. What's the difference between Cocoa and Cocoa Touch?
nibfile
disclosure triangle
Cocoa is the development framework used for most native Mac OS X applications; Cocoa Touch is customized for a touch interface
[[<class name> alloc] init];
19. Class that allows URL management
nested message send
NSURL
NSString *phrase = @'Hello World';
Document Outline Area or Outline View
20. 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
model
==
@end
immersive
21. Write a statement to declare and initialize a label object called 'myLabel'
IBAction
model
label.text=@'Hello World!';
UILabel *myLabel = [[UILabel alloc] init];
22. Used to set up an outgoing connection from the implementation code to the view
IBOutlet
Cocoa Touch
implicitly declare a matching instance variable
alpha
23. Consider: int x = 6;int y = 7;float quotient = (float) x/y;The statement that creates the variable 'quotient' is an example of ...
Instruments
casting
nibfile
Command+0
24. 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
bool
nonatomic
#import <UIKIT/UIKIT.h>
boiler-plate
25. 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
26. Correct the error: label.text = 'Hello World !';
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
27. Method used to print information in an output panel
storyboards
int
YES
NSLog
28. Resembles a slot machine display
Seques .... relationships
mutators
UIPicker
Treats the field as a password - hiding each character as it is typed
29. Tests to see whether two values are equal
UIApplication
Model-View-Controller
UITextView
==
30. RAM for iPhone
eXtensible Markup Language
512MB
debugger
Command + Tab
31. Although it is possible to declare an instance variable and then define a corresponding property - you may also use @property alone to...
NSLog
implicitly declare a matching instance variable
prototyping
UITextField
32. Another name for a 'button bar'
xcodeproj
protocols
segmented control
alpha ... 0
33. Used to display image file resources and show simple animations
strong
nonatomic
image view
iOS Simulator
34. The ________ class provided a container for the management and display of views
UIWindow
NSURLRequest
YES
C
35. A class that implements a protocol is said to ____ to that protocol
Touch Up Inside
conform
[myLabel setText:@'Howdy'];
The Console area of the Debug area
36. Return type indicating a method returns nothing
UILabel *myLabel = [[UILabel alloc] initWithString:@'GO!'];
web view
C
void
37. This type of app is mostly custom controllers and graphics
immersive
label.text=@'Hello World!';
wrap
debugger
38. If a method name includes a colon (:) this indicates a required _________
parameter
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.
variable
iOS Simulator
39. Files used to create a class
token
UILabel *myLabel = [[UILabel alloc] initWithString:@'GO!'];
interface and implementation files
@2x
40. getters
accessors
IBOutlet
onscreen 'widgets' a user can interact with
modal views
41. Key sequence to open the Project Navigator (left panel)
bgImages = [[NSArray alloc] initWithObjects: wp1 - wp2 - wp3 - wp4 - wp5 - nil];
Command+1
UILabel *myLabel = [[UILabel alloc] init];
Cocoa is the development framework used for most native Mac OS X applications; Cocoa Touch is customized for a touch interface
42. Syntax to include UIKIT in a class
segue
The Console area of the Debug area
-
#import <UIKIT/UIKIT.h>
43. Defines what an object can do
class
casting
&&
myImage@2x.png
44. Any 'directive' statement begins with this symbol
token
Human Interface Guide
@
Command + Tab
45. 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
46. This element should 'always' accompany a slider to indicate its purpose
do{/*stuff to do here*/}while(<boolean expression>);
label
57 x 57
model
47. Scaling factor to make an image suitable for retina display
Program received signal: EXC_BAD_ACCESS
Single View Application
NSLog
2
48. What event do you use to detect a button tap?
Touch Up Inside
Model-View-Controller
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.
Command+R
49. A transition between scenes - frequently with a visual transition effect applied
Send the 'resignFirstResponder' message to the object that currently controls the keyboard (such as a text field)
The Console area of the Debug area
Cocoa Touch
segue
50. The library that contains the objects you can add to a view or XIB file
@synthesize
Gray circle with a white 'X' in it - positioned to the right of the text field box
Object library
Cocoa Touch