Monday, December 5, 2016

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

Q.61:  What will be the output
           let bits: UInt8 = 4  
           let output = bits << 2            
           print(output)
A.      2
B.      4
C.      8
D.      16
Q.62: What will be the output
          let bits: UInt8 = 4  
          let output = bits << 5            
          print(output)
A.      128
B.      4
C.      8
D.      16
Q.63: What will be the output
          let bits: UInt8 = 4  
          let output = bits << 6         
          print(output)
A.      128
B.      0
C.      8
D.      16
Q.64: What will be the output
          let bits: UInt8 = 4  
          let output = bits >> 2            
          print(output)
A.      2
B.      4
C.      8
D.      1
Q.65: What is UIKit in iPhone App development
                A. Framework
                B. Class
                C. Object
                D. None of the above
Q.66: What does UIKit in iPhone App Development
                A. It defines classes
                B. It defines Labels , Buttons
                C. It defines functions
                D. All of the above
Q.67: What are the responsibilities of               
          UIViewController class
A. Updating the contents of the views
B. Responding to user interactions with views.
C. Resizing views and managing the layout 
    of the overall interface.
D. All the above
Q.68: When amount of available memory is low, 
          Which method is called by app
A.   viewDidLoad()
B.   didReceiveMemoryWarning()
C.  Both
D.  None
Q.69: Which method is invoked after  the         
         controller's view is loaded into memory.
A.  viewDidLoad()
B.  didReceiveMemoryWarning()
C.  Both
D.  None
 Q.70: Which method can be override when you 
          want  to release memory
A.   viewDidLoad()
B.   didReceiveMemoryWarning()
C.  Both
D.  None

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

No comments:

Post a Comment