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. 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
2. 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
3. Calling a method is the same as...
sending an object a message
UIWindow
IBAction
attributes
4. Class used for image manipulations such as scaling - rotation and translation. Its data structure represents a matrix used for affine transformations.
utility
image view
CGAffineTransform
for(<initialization>;<test condition>;<update instruction>){/*do this over and over*/}
5. MVC
Cocoa Touch - Media - Core Services - Core OS
pound
Model-View-Controller
parameter
6. Postcondition repetition structure syntax
Double-click
do{/*stuff to do here*/}while(<boolean expression>);
boiler-plate
Command+0
7. Purpose of the 'Auto-enable Return Key' attribute for text fields
strong
/*blah blah blah */
Disables the Return key on the keyboard unless the user has entered at least a single character of input into the field
[<object variable> <method name>];
8. The Inspector you would use to control your layout in Interface Builder
disclosure triangle
Send the 'resignFirstResponder' message to the object that currently controls the keyboard (such as a text field)
Double-click
Size Inspector
9. ______ are variables that can store a ____ to an object.
XML
C
Outlets ... pointer
ommand+Return
10. Companion to the @property directive
hash
UIWindow
@synthesize directive
@synthesize
11. Class used for creating image views
Nib (but a few call it 'zib' but that's not preferred)
workspace
UIImageView
IBAction
12. Class that allows URL management
NSURL
view
casting
NSDate
13. Templates fill in a bunch of ______-_______ code that serves as a framework in which to write future implementations
Cocoa Touch - Media - Core Services - Core OS
boiler-plate
<>
alpha ... 1
14. An _______ is used to enable your code to talk to objects within views
Option+Command+ 0
nibfile
onscreen 'widgets' a user can interact with
IBOutlet
15. Opens the Xcode Quick Help Assistant
Classes
Option-click a symbol
int
scene
16. Defines what an object can do
UIApplication
NSString
Control-click on the View Controller's icon to bring up a Connections dialog
class
17. Implements a logical AND condition
Send the 'resignFirstResponder' message to the object that currently controls the keyboard (such as a text field)
&&
Control-click on the View Controller's icon to bring up a Connections dialog
Command+S
18. Key sequence to save an Xcode file
!=
immersive
Command+S
Single View Application
19. A class that implements a protocol is said to ____ to that protocol
conform
NSMutableString
implementation file
productivity
20. A virtual 'box' for organizing related projects
workspace
onscreen 'widgets' a user can interact with
==
512MB
21. 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
22. Syntax for block-comment
main()
Outlets ... pointer
controller
/*blah blah blah */
23. Syntax for sending an object a message with one parameter (p1)
@synthesize
ption+Command+Return
[<object variable> <method name>: p1];
Hold down the Option key and point to the other label. The distance will be shown
24. Dimensions of iPhone (in points)
320 x 480
variable
UIWindow
void
25. Used to indicate any type of object
UILabel *myLabel = [[UILabel alloc] init];
id
Double-click
protocols
26. 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
27. iPhone and iPad ____ support .png transparency
Command+S
debugger
do not
stub
28. XML
/*blah blah blah */
workspace
eXtensible Markup Language
if(<boolean condition>){/* stuff to do*/} else{ /*stuff to do*/}
29. Given: #import <UIKit/UIKit.h> @interface WelcomeViewController : UIViewController @end The superclass for WelcomeViewController
UIViewController
NSURL
import
label.text=@'Hello World!';
30. This type of app is typically one screen - and gives you the basics with minimal interaction
conform
IBAction)moveMe:(id)sender;
utility
Single View Application
31. Syntax for single-line comment
Home button
static
//blah blah blah
nibfile
32. Declaring a method in an interface file - before it is actually implemented is called _______ the method
prototyping
UIImage *wp1 = [UIImage imageNamed:@'wallPaper_01.png'];
accessors
Option+Command+ 0
33. 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.
controller
above
instance variable
class
34. A ______ is where you edit a view and assign a controller to it.
pipe
Determine how controls resize/reposition themselves when a device changes orientation
nested message send
scene
35. 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
id
Home button
rand( )%21
36. Delimiter for a list of protocols
<>
Commmand-R
IBOutlet
Right-click on it in the Navigator panel and choose 'Open as...' and select 'Source Code'
37. A fully opaque image has an _______ property value of ______
subclass
alpha ... 1
IBAction)moveMe:(id)sender;
immersive
38. Storage location for a piece of information
Commmand-R
variable
To provide a convenient way of setting the button's title in the code
storyboards
39. File name suffix indicating an image is suitable for retina display
Command + Tab
parameter
do{/*stuff to do here*/}while(<boolean expression>);
@2x
40. A skeleton (holding place) or framework of code that will be completed in the future; provided initially so code will compile (but it may not function)
stub
wrap
Cocoa Touch
Size Inspector
41. Shortcut for writing: x = x - 1;
instance variable
segue
x--;
debugger
42. Name of the '|' symbol
Disables the Return key on the keyboard unless the user has entered at least a single character of input into the field
[shrinkButton setTitle:@'Grow' forState: UIControlStateNormal];
viewDidLoad
pipe
43. Data type for numbers with 'tame' numbers of decimal points
float
instantiate
hasShrunk==YES && hasMoved == YES
protocols
44. Typical header syntax for a button that will be applying the 'moveMe' action in an app
Classes
IBAction)moveMe:(id)sender;
bgImages = [[NSArray alloc] initWithObjects: wp1 - wp2 - wp3 - wp4 - wp5 - nil];
token
45. Data type for highly precise numbers with huge numbers of decimal places
double
alpha
UIApplication
implicitly declare a matching instance variable
46. A view has a 'Shrink' button whose label needs to change once it is clicked to 'Grow'. Write a 'message' type command to change it's label to 'Grow'
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
47. Syntax for reserving memory and initializing an object
segmented control
C
Gray circle with a white 'X' in it - positioned to the right of the text field box
[[<class name> alloc] init];
48. Apps that provide easy access to a single screen of information with a backside view for modifying preferences
inspector and library
Utility apps
NSURLRequest
Seques .... relationships
49. A file folder in the navigator panel is called a ________
instantiate
wrap
NSDate
Group
50. Combining two messages into a single line of code
alpha
view
nested message send
Home button