Monday, December 5, 2016

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

Q.91: Which function is used to store URL preferences
A. func setFloat(Float Value ,  "KeyName")
B. func setDouble(Double Value ,  "KeyName")
C.  func setObject(value: AnyObject?,  "KeyName")
D.  func setURL(url: NSURL?, "KeyName")

Q.92: In func setBool(Bool Value , "KeyName") what will            be the keyname
  A. Integer Type
  B. Character type
  C. String Type
  D. Boolean type

Q.93: In func setObject(value:AnyObject?, "KeyName")               what will be the keyname
  A. Integer Type
  B. Character type
  C. Object type
  D. String Type

Q.94: What is the use of UIWebView class in iPhone
  A. To embed web content
  B. To render web content
  C. To load HTML pages
  D. All the above

Q.95: Which function is used load HTML content in    
        webview
  A. func loadHTMLString(_ string: String, baseURL:   
                                                         URL?)
  B. func loadHTMLString(baseURL: URL?)
  C. func loadHTMLString(_ string: String)
  D. None

Q.96: In the below function what can be   
         textEncodingName
func load(_ data: Data,  mimeType MIMEType: String, textEncodingName: String, baseURL: URL)

A.   utf-8
B.   utf-16
C.  A & B
D.  none

Q.97: In CGPointMake( value1 , value2) the type of value1 
          and value 2 is
  A. Float , Int
  B. Float , Float
  C. Int , Int
  D. Int , Float

Q.98: Which method is called when the view is actually 
         visible, and can be called multiple times during the 
         lifecycle of a View Controller.
  A. viewDidAppear()
  B. viewDidLoad()
  C. viewDidLayoutSubviews()
  D. None

Q.99: Which method is called once all of your subviews have 
           been laid out.
  A. viewDidAppear()
  B. viewDidLoad()
  C. viewDidLayoutSubviews()
  D. None

Q.100: Which class Is used to create session in swift
  A. NSURL
  B. NSURLSession
  C. NSURLRequest
  D. None


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

2 comments: