Monday, December 5, 2016

Objective Questions in >= Swift2.2 @iPhone - Set H

Q.71: A _______________ is a visual         
         representation of the appearance and flow of            your application.
A.   viewDidLoad()
B.    Storyboard
C.   didReceiveMemoryWarning()
D.   None
Q.72: __________ and ___________  are macros defined to denote variables and methods that can be referred to in Interface Builder.
          A. IBAction
          B. IBOutlet
          C. Both
          D. None

Q.73:How do i get the text from UITextField into an Int variable ?

         A. var data = Int(yourtextField.text!)

                        B. var data =  yourtextField.text!
                        C. var data =  yourtextField.text()
                        D. var data =  Int(yourtextField.text()!)

                Q.74: How textfield is declared in iPhone

                        A.   var textField: UITextField!

                        B.  @IBAction var textField: UITextField!

                        C.  @IBOutlet var textField: UITextField!

                        D. None
                Q.75: How function mapped with button is                
                        declared in iPhone App development

A. @IBAction func fun_name(sender: AnyObject) {}

B. @IBOutlet func fun_name () {

C. @IBAction  fun_name (sender: AnyObject) {

D. None

Q.76: How set text onto a UILabel

        A. labelName = “Hello Jaipur”

        B. labelName.setText = “Hello Jaipur”

        C. labelName.text  = “Hello Jaipur”

        D. None

Q.77: Which one is not the property of Navigation 

          Bar

        A. It appears at the top of an app screen

        B. It appears below the status bar

        C. Enables Navigation

        D. None

Q.78: Which one is not the property of ToolBar

        A. It appears at the bottom of an app screen

        B. It appears below the status bar

        C. Contains buttons

        D. None

Q.79: How to create timer in iPhone using swift

        A.  var timer = NSTimer()

        B. var timer = NStimer()

        C. var timer = Timer()

        D var timer = Timer

Q.80: How do I stop a timer

        A. timervariable.stop

        B. timervariable.stop()

        C. timervariable.invalidate

        D. timervariable.invalidate()


Answers : B    C    A    C    A    C     D     B     A     D

No comments:

Post a Comment