click below
click below
Normal Size Small Size show me how
IT0093 FINALS
IT0093
| Question | Answer |
|---|---|
| In March 6, 2008, with the release of the iPhone software development kit (iPhone SDK), Apple named it iPhone OS TRUE FALSE | TRUE |
| Apple made touch the primary interaction model removing all physical buttons TRUE FALSE | TRUE |
| When did Apple introduced the App Store to iOS October 2008 November 2008 June 2008 July 2008 | JULY 2008 |
| iPhone 3GS was released in 2007 | FALSE |
| When was iPhone 3GS was released? | 2009 |
| An analysis tool to assist you both optimize your apps and monitor for memory leaks in real time | Instruments |
| iOS version where S iPhone was introduced | iOS 5.0 |
| The iOS version when iPad was unveiled | iOS 3.2 |
| Used to jump to a selected files, you can quickly select what information to view in the Assistant editor | Jump bar |
| Swift makes programming easier, flexible, and more fun | TRUE |
| Xcode provides a playground for testing some swift syntax | TRUE |
| Swift is a type-safe language TRUE FALSE | TRUE |
| It enables a compiler to deduce the type of a particular expression automatically when it compiles your code, simply by examining the values you provide | type interface |
| Defines an alternative name for an existing type | type aliases |
| Used to find out whether an optional contains a value, and if so, to make that value available as a temporary constant or variable | optional binding |
| Which of the following is a correct statement let a = 1_0_1_0 let a = 1-1-1-1 let a:UInt = -10 let a:Int = Int("10") | let a = 1_0_1_0 |
| Used to group multiple values into a single compound value | tuples |
| write the exact output given the statements below var x:String? = "Swift" print(x!) | Swift |
| You use optionals in situations where a value may be absent TRUE FALSE | TRUE |
| Swift 1, 2, 3 and 4 provides same syntax TRUE FALSE | FALSE |
| In Swift constants and characters can contain unicode characters TRUE FALSE | TRUE |
| It is the minimum value of UInt8 | 0 |
| Which of the following has the correct syntax var x:Int = 10 Correct! var x = Int("10") Correct! var x:Int? = nil var x:Int = Int("123") let x:Int = Int("123") | var x:Int = 10 Correct! var x = Int("10") Correct! var x:Int? = nil |
| Swift was based on ____________. | C and Objective C |
| Which of the following produced an error let a = 0o88 let a = 0xff let a = 0b1010 let a = 1234 | let a = 0o88 |
| A double represent a _____ bit floating-point number | 64 |
| The latest iOS version | 14 |
| iOS 3.0 supports cut, copy, and paste TRUE FALSE | TRUE |
| First OS name for iPhone | iPhone OS |
| In iOS 1.0, Apple's marketing literature states that iPhone runs a version of Apple's desktop operating system, OS X TRUE FALSE | TRUE |
| In iOS 4.0, Music apps are now able to play in background | TRUE |
| The device that was released where iOS named was officially used | iPhone 4 |
| The programming languages that are used to develop an iOS application. | Swift Objective-C |
| It splits the Xcode editor in two, with your primary work document on the left | Assistant Editor |
| An Integrated Development Environment that enables you to manage, edit, and debug you iOS projects | XCode |
| The iOS version when iPad was unveiled. | iOS 3.2 |
| Closures can capture and store references to any constants and variables from the context in which they are defined. True False | TRUE |
| It doesn't take any arguments, and when it's called, it returns the value of the expression that's wrapped inside of it | AutoClosure |
| The closure expression examples below illustrate these optimizations by refining a single example of the __________________. method over several iterations, each of which expresses the same functionality in a more succinct way | sorted(by:) |
| Closures are self-contained blocks of functionality that can be passed around and used in your code. | True |
| Nexted functions are closures that have a name and do not capture any values. | True |
| Is a constant or variable that is stored as part of an instance of a particular class or structure | Stored Property |
| A ___________ is a type whose value is copied when it is assigned to a variable or constant, or when it is passed to a function. | value type |
| is/are general-purpose, flexible constructs that become the building blocks of your program's code | Structure Classes |
| Closure expressions are unnamed closures written in a lightweight syntax that can capture values from their surrounding context. True False | True |
| Nested functions are closures that have a name and can capture values from their enclosing function. | True |
| are closures that have a name and do not capture any values. | Global functions |
| can capture and store references to any constants and variables from the context in which they are defined | Closure |
| are not copied when they are assigned to a variable or constant, or when they are passed to a function. | Reference types |
| provide several syntax optimizations for writing closures in a shortened form without loss of clarity or intent | Closure expressions |
| Global functions are closures that have a name and do not capture any values. | True |
| In Swift, you define a class or a structure in a single file, and the external interface to that class or structure is automatically made available for other code to use | True |
| Structures and Enumerations Are Value Types | True |
| Classes and enumeration are general-purpose, flexible constructs that become the building blocks of your program's code | False |
| are self-contained blocks of functionality that can be passed around and used in your code. | Closure |
| Global functions are closures that have a name and can capture values from their enclosing function. True False | False |
| are closures that have a name and can capture values from their enclosing function. | Nested Function |
| are a convenient means of naming and defining self-contained blocks of code as part of a larger function | Nested Function |
| Closures are self-contained blocks of functionality that cannot be passed around and used in your code. | False |
| Is a constant or variable that is stored as part of an instance of a particular class or structure | Stored property |
| are unnamed closures written in a lightweight syntax that can capture values from their surrounding context. | Closure expressions |
| Unlike other programming languages, Swift does not require you to create separate interface and implementation files for custom classes and structures. True False | TRUE |
| Closure expressions are a way to write inline closures in a complex, unstructured syntax. True False | False |
| Closures can capture and store references to any constants and variables from the context in which they are defined. True False | True |
| In Escaping Closures, if you want to capture ________, write ________ explicitly when you use it, or include ________ in the closure's capture. | self |
| Swift's String and Character types provide a fast, ASCII-compliant way to work with text in your code | false |
| Nested functions, as introduced inNested Functions, are a convenient means of naming and defining self-contained blocks of code as part of a larger function. | True |
| associate values with a particular class, structure, or enumeration. | Properties |
| Initializers are called to create a new instance of a particular type. In its simplest form, an initializer is like an instance method with no parameters, written using the init keyword: | true |
| Subclassing is the act of basing a new class on an existing class. | true |
| You can provide ________________ as part of an initializer's definition, to define the types and names of values that customize the initialization process. Initialization parameters have the same capabilities and syntax as function and method parameters | initialization parameters |
| Any attempt to override a final method, property, or subscript in a subclass is reported as a _______ error. Methods, properties, or subscripts that you add to a class in an extension can also be marked as final within the extension's definition. | compile time |
| Initialization - preparing an instance of a class, structure, enumeration for use. Involves setting initial value for each stored property on that instance and performing initialization that's required before the new instance is ready for use | True |
| process of preparing an instance of class, structure, or enumeration for use. Involves setting initial value for each stored property on that instance & performing any other setup initialization that is required before the new instance is ready for use. | Initialization |
| When you provide a method, property, or subscript override for a subclass, it's sometimes useful to use the existing superclass implementation as part of your override. True False | true |
| Instantiation is the process of preparing an instance of a class, structure, or enumeration for use. This process involves setting an initial value for each stored property on that instance and performing any other setup or initialization that is required | True |
| Initializers are called to create a new instance of a particular type. In its simplest form, an initializer is like an instance method with no parameters, written using the _____ keyword | init |
| A subclass can provide its own custom implementation of an instance method, type method, instance property, type property, or subscript that it would otherwise inherit from a superclass. This is known as overloading. True False | False |
| ___________ is the act of basing a new class on an existing class. The subclass inherits characteristics from the existing class, which you can then refine. You can also add new characteristics to the subclass. | subclassing |
| You can provide ______________ as part of an initializer's definition, to define the types and names of values that customize the initialization process. Initialization parameters have the same capabilities and syntax as function and method parameters | initialization parameters |
| You implement this initialization process by defining _____, which like special methods that can be called to create new instance of particular type. Swift initializers don't return value. Their primary role is ensure new instances of type are correctly i | initializers |
| Properties of optional type are automatically initialized with a value of _________, indicating that the property is deliberately intended to have "no value yet" during initialization. | nil |
| You can prevent a method, property, or subscript from being overridden by marking it as final. True False | true |
| The subclass inherits characteristics from the existing class, which you can then refine. You can also add new characteristics to the subclass. True False | true |
| A subclass can provide its own custom implementation of an instance method, type method, instance property, type property, or subscript that it would otherwise inherit from a superclass. This is known as overriding. True False | True |
| When one class inherits from another, the inheriting class is known as a ___________. | Subclass |
| is the act of basing a new class on an existing class. The subclass inherits characteristics from the existing class, which you can then refine. You can also add new characteristics to the subclass. | Subclassing |
| Any class that does not inherit from another class is known as a/an ____________. | base class |
| Properties of optional type are automatically initialized with a value of _________, indicating that the property is deliberately intended to have "no value yet" during initialization. | nil |
| When one class inherits from another, the inheriting class is known as a subclass, and the class it inherits from is known as its superclass. | true |
| Initializers are called to create a new instance of a particular type. In its simplest form, an initializer is like an instance method with no parameters, written using the init keyword: | true |
| Properties of optional type are automatically initialized with a value of nil, indicating that the property is deliberately intended to have “no value yet” during initialization. | true |
| You access the superclass version of a method, property, or subscript by using the super prefix super.someMethod() //overridden method super.someProperty //overridden property super[someIndex] //overridden subscript | true |
| You can mark an entire class as ___________ by writing the final modifier before the class keyword in its class definition (final class). Any attempt to subclass a final class is reported as a compile-time error. | final |
| Any class that does not inherit from another class is known as a base class. | True |
| You can set the initial value of stored property from within an initializer Alternatively, specify default property value as part of the property’s declaration. Specify default property value by assigning an initial value to the property when defined. | True |
| Closures can never capture and store references to any constants and variables from the context in which they are defined. | False |
| Swift strings are represented by the String type. | True |
| Closure expressions are named closures written in a complex syntax that can capture values from their surrounding context. | True |