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. 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.
Instruments
bgImages = [[NSArray alloc] initWithObjects: wp1 - wp2 - wp3 - wp4 - wp5 - nil];
UIImage *wp1 = [UIImage imageNamed:@'wallPaper_01.png'];
Option+Command+ 0
2. Return type indicating a method returns nothing
void
/*blah blah blah */
Integrated Development Environment
Instruments
3. The ________ class provided a container for the management and display of views
affine
retain
switch
UIWindow
4. Extension for MainStoryboard
Cocoa Touch
Option+Command+4
storyboard
!=
5. The first method called when a user taps an application icon
Command+1
NSString *phrase = @'Hello World';
Cocoa Touch
main()
6. Companion to the @property directive
@synthesize
import
Option+Command+ 0
view controller
7. Character used to show an element as a literal string
@
Human Interface Guide
disclosure triangle
Document Outline Area or Outline View
8. Single line text field
h
[[<class name> alloc] init];
UITextField
strong
9. _____ are methods that we can connect to events.
NeXSTEP
Human Interface Guide
Actions
disclosure
10. An alternative way to see the connections between an object in the Interface Builder and it's code in Xcode without using the Connections inspector
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
11. Apple's classes often provide a special initialization method called a _____ method
Right-click on it in the Navigator panel and choose 'Open as...' and select 'Source Code'
%d
convenience
modal views
12. How do you show a storyboard file as source code?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
13. In the MVC design pattern for iOS apps - this aspect is responsible for receiving user input and acting accordingly - and serves as a 'bridge' between the other two components. It is the backbone of the app.
below
modal views
controller
*
14. Data type for whole numbers
Jump Bar
modal views
UIViewController
int
15. OOP
Object-oriented programming
count++;
eXtensible Markup Language
segmented control
16. Declare and initialize a string that says: 'Hello World' whose identifier if 'phrase' . Use the shortest command possible.
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
17. MVC
main()
Model-View-Controller
/*blah blah blah */
int
18. Word used to indicate that a user can't interact with a given element
Identity Inspector
static
label.text=@'Hello World!';
above
19. Write a statement to declare and initialize a label object called 'myLabel' to 'GO!'
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
20. 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).
Command+S
label.text=@'Hello World!';
NSURLRequest
wrap
21. In your implementation file - the _____ method (provided in stub form by Apple) runs after machine language code reserves some space in memory for your View. This method is often used to create a 'clean slate' as an app opens.
bgImages = [[NSArray alloc] initWithObjects: wp1 - wp2 - wp3 - wp4 - wp5 - nil];
'Interface Builder'
nil
viewDidLoad
22. File name suffix indicating an image is suitable for retina display
Command+R
@2x
Document Outline Area or Outline View
switch
23. Key sequence to open the Standard Editor
YES
ommand+Return
nonatomic
token
24. The object currently in control and interacting with the user
Right-click on it in the Navigator panel and choose 'Open as...' and select 'Source Code'
above
First Responder
static
25. Process of creating an active object from a class
NSMutableString
Size Inspector
instantiation
Scheme
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
control-dragging
%1.2f
Home button
NSDictionary
27. Key sequence on a Mac to select between open application
Control-click on the View Controller's icon to bring up a Connections dialog
Command + Tab
Send the 'resignFirstResponder' message to the object that currently controls the keyboard (such as a text field)
immersive
28. The Inspector you would use to control your layout in Interface Builder
%d
UILabel *myLabel = [[UILabel alloc] init];
/*blah blah blah */
Size Inspector
29. Framework used to write iPhone apps
Cocoa Touch
IBOutlet
'Interface Builder'
NSMutableArray
30. Key sequence to save an Xcode file
view
Command+S
Command + Tab
property list
31. To zoom between an overview of the entire storyboard and the actual size view - ______ the storyboard background.
Instruments
512MB
self
Double-click
32. Property affecting an element's transparency
Model-View-Controller
alpha
Utility apps
iOS Simulator
33. Symbol used for inheritance
nibfile
:
bgImages = [[NSArray alloc] initWithObjects: wp1 - wp2 - wp3 - wp4 - wp5 - nil];
NSMutableArray
34. Always used to end the list of objects when initializing an array
+
/*blah blah blah */
nil
hash
35. 4 Top down technology layers making up iOS
casting
Cocoa Touch - Media - Core Services - Core OS
graduationParty ... addAttendee:withDish
Human Interface Guide
36. In most graphical user interfaces - a _____ view is a view that must be dismissed ('OK' button - 'Cancel' button for example) before the user can perform any other actions in the application.
accessible apps
modal
bgImages = [[NSArray alloc] initWithObjects: wp1 - wp2 - wp3 - wp4 - wp5 - nil];
[<object variable> <method name>: p1];
37. Attribute that informs the system that the object referred to needs to be kept around and not discarded from memory
Actions
strong
%d
'Interface Builder'
38. In the US - the '#' symbol is often called the ____ symbol
pound
Cocoa Touch
IBAction
nested message send
39. In the UK - the '#' symbol is often called the ____ symbol
hash
control-dragging
ption+Command+Return
-
40. Class of strings that can be changed
NSMutableString
int
retain - release - dealloc - autorelease
stub
41. This type of app typically involves hierarchical data
NeXSTEP
productivity
Touch Up Inside
instantiation
42. These define to which messages the datasource and delegate respond
Hold down the Option key and point to the other label. The distance will be shown
%1.2f
controller
protocols
43. Although it is possible to declare an instance variable and then define a corresponding property - you may also use @property alone to...
NSMutableString
implicitly declare a matching instance variable
implementation file
+
44. Attribute that informs Xcode not to worry about different parts of the application using a property at the same time
YES
storyboards
/*blah blah blah */
nonatomic
45. Syntax for sending an object a message with one parameter (p1)
Cocoa Touch
[<object variable> <method name>: p1];
alpha
NSMutableArray
46. Development approach (design pattern) to structure iOS applications
CGAffineTransform
Model-View-Controller
nonatomic
Program received signal: EXC_BAD_ACCESS
47. A unique combination of view controller and view
[myLabel setText:@'Howdy'];
Object-oriented programming
nil
scene
48. Tests to see whether two values are equal
h
==
@
[shrinkButton setTitle:@'Grow' forState: UIControlStateNormal];
49. A tool in Xcode to help fix broken code
view
debugger
NSString
@
50. Key sequence to run an app in Xcode
ption+Command+Return
IBOutlet
%
Command+R