Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Review Answer the follow multiple choice Which line in the following code does N

ID: 3567030 • Letter: R

Question

Review

Answer the follow multiple choice

Which line in the following code does NOT include an error?

0 if (theTextField == textField){
1 [textField resignFirstResponder]
2 } else if (theTextField == someOtherTextField){
3 [someOtherTextField resignFirstResponder]
4 }
5 return YES

2.

Which of the following is the most likely final line to the drawRect:(CGRect) rect) method?

-(void) drawRect:(CGRect) rect{
NSString *hello = @Hello, World!;
CGPoint location = CGPointMake(10, 20);
UIFont *font    = [UIFont systemFontOfSize:24.0];
[[UIColor whiteColor] set];

}

3.

Which keyword is used when the developer wants to use the default getters and setters?

4.

Which of the following design patterns are commonly seen in an iOS app?

5.

One benefit of infix notation is that it includes the names of arguments in the message, removing the requirement to keep track of the order of arguments.

6.

Encapsulation is a requirement in Objective-C.

7.

Automatic reference counting is available in iOS 3 and later.

8.

A(n) ____ is a collection of assets, including header files, images, sounds and libraries for performing a certain task.

9.

Which of the following frameworks/libraries should you add to an application that retrieves and displays your GPS coordinates?

10.

Which line in the following code feature includes a syntax error?

0 -(void)sayHello:(id)sender {
1 self.string = textField.text;
2 NSString *greeting = [NSString alloc] initWithFormat:@Hello, %@!, self.string;
3 label.text = greeting;
4 }

11.

How much does it cost to deploy your first app for the iOS architecture?

12.

Which of the following is NOT one of the three pillars of object-oriented programming?

13.

Which of the following is NOT true of Objective-C?

14.

The header and implementation must be in separate files.

15.



Which of the following is NOT used to create the display shown in the accompanying figure?

Review

Answer the follow multiple choice

Which line in the following code does NOT include an error?

0 if (theTextField == textField){
1 [textField resignFirstResponder]
2 } else if (theTextField == someOtherTextField){
3 [someOtherTextField resignFirstResponder]
4 }
5 return YES

A) Line 1
B) Line 2
C) Line 3
D) Line 5

2.

Which of the following is the most likely final line to the drawRect:(CGRect) rect) method?

-(void) drawRect:(CGRect) rect{
NSString *hello = @Hello, World!;
CGPoint location = CGPointMake(10, 20);
UIFont *font    = [UIFont systemFontOfSize:24.0];
[[UIColor whiteColor] set];

}

A) hello(drawAtPoint:location withFont:font);
B) hello[drawAtPoint:loation withFont:font];
C) [hello (drawAtPoint:location withFont:font)]
D) [hello drawAtPoint:location withFont:font];

3.

Which keyword is used when the developer wants to use the default getters and setters?

A) synthesize
B) property
C) setup
D) auto_mod

4.

Which of the following design patterns are commonly seen in an iOS app?

A) Delegate
B) MVC
C) Both A and B
D) Neither A nor B

5.

One benefit of infix notation is that it includes the names of arguments in the message, removing the requirement to keep track of the order of arguments.

A) True
B) False

6.

Encapsulation is a requirement in Objective-C.

A) True
B) False

7.

Automatic reference counting is available in iOS 3 and later.

A) True
B) False

8.

A(n) ____ is a collection of assets, including header files, images, sounds and libraries for performing a certain task.

A) asset library
B) collection
C) framework
D) module

9.

Which of the following frameworks/libraries should you add to an application that retrieves and displays your GPS coordinates?

A) CoreData.framework
B) CoreMotion.framework
C) CFNetwork.framework
D) CoreLocation.framework

10.

Which line in the following code feature includes a syntax error?

0 -(void)sayHello:(id)sender {
1 self.string = textField.text;
2 NSString *greeting = [NSString alloc] initWithFormat:@Hello, %@!, self.string;
3 label.text = greeting;
4 }

A) Line 0
B) Line 1
C) Line 2
D) Line 3

11.

How much does it cost to deploy your first app for the iOS architecture?

A) $0
B) $25
C) $99
D) $25 per application

12.

Which of the following is NOT one of the three pillars of object-oriented programming?

A) Inheritance
B) Polymorphism
C) Abstraction
D) Encapsulation

13.

Which of the following is NOT true of Objective-C?

A) Instance methods include the - character
B) Class methods include the + character
C) The main() method includes the + character
D) Methods with the - character are only called by an object on its own data

14.

The header and implementation must be in separate files.

A) True
B) False

15.



Which of the following is NOT used to create the display shown in the accompanying figure?

A) A UIButton
B) A UILabel
C) An int
D) An NSTimer Review Answer the follow multiple choice Which line in the following code does NOT include an error? 0 if (theTextField == textField){ 1 [textField resignFirstResponder] 2 } else if (theTextField == someOtherTextField){ 3 [someOtherTextField resignFirstResponder] 4 } 5 return YES A) Line 1 B) Line 2 C) Line 3 D) Line 5 2. Which of the following is the most likely final line to the drawRect:(CGRect) rect) method? -(void) drawRect:(CGRect) rect{ NSString *hello = @½Hello, World!½; CGPoint location = CGPointMake(10, 20); UIFont *font = [UIFont systemFontOfSize:24.0]; [[UIColor whiteColor] set]; } A) hello(drawAtPoint:location withFont:font); B) hello[drawAtPoint:loation withFont:font]; C) [hello (drawAtPoint:location withFont:font)] D) [hello drawAtPoint:location withFont:font]; 3. Which keyword is used when the developer wants to use the default getters and setters? A) synthesize B) property C) setup D) auto_mod 4. Which of the following design patterns are commonly seen in an iOS app? A) Delegate B) MVC C) Both A and B D) Neither A nor B 5. One benefit of infix notation is that it includes the names of arguments in the message, removing the requirement to keep track of the order of arguments. A) True B) False 6. Encapsulation is a requirement in Objective-C. A) True B) False 7. Automatic reference counting is available in iOS 3 and later. A) True B) False 8. A(n) ____ is a collection of assets, including header files, images, sounds and libraries for performing a certain task. A) asset library B) collection C) framework D) module 9. Which of the following frameworks/libraries should you add to an application that retrieves and displays your GPS coordinates? A) CoreData.framework B) CoreMotion.framework C) CFNetwork.framework D) CoreLocation.framework 10. Which line in the following code feature includes a syntax error? 0 -(void)sayHello:(id)sender { 1 self.string = textField.text; 2 NSString *greeting = [NSString alloc] initWithFormat:@½Hello, %@!½, self.string; 3 label.text = greeting; 4 } A) Line 0 B) Line 1 C) Line 2 D) Line 3 11. How much does it cost to deploy your first app for the iOS architecture? A) $0 B) $25 C) $99 D) $25 per application 12. Which of the following is NOT one of the three pillars of object-oriented programming? A) Inheritance B) Polymorphism C) Abstraction D) Encapsulation 13. Which of the following is NOT true of Objective-C? A) Instance methods include the - character B) Class methods include the + character C) The main() method includes the + character D) Methods with the - character are only called by an object on its own data 14. The header and implementation must be in separate files. A) True B) False 15. Which of the following is NOT used to create the display shown in the accompanying figure? A) A UIButton B) A UILabel C) An int D) An NSTimer

Explanation / Answer

1)B ----if condition waas correct

2)A

3)B @properties{..}

4)C oftenly used MVc but also uses delegates

5)A

6)B

7)B

8)A

9)D

10)C

11)C --$99 to launch

12)C

13)D

14)B

15)C

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote