• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 2 out of 13 pages
Exam (elaborations)

Mobile App Development

Document preview thumbnail
Preview 2 out of 13 pages

The package name: - answer-uniquely identifies the app on the device should be unique on the Google Play store Once you publish the app with this package name that name should never be changed. If you were to change the package name, existing users of your application will not see the app as an update Which of the following is the correct output for this code: var x= arrayOf(10, 20, 30) println(x[1]) - answer-20 The IDE for iOS Development is called - answer-XCode Which of the following is the correct code to print out Hello, Android ATC and then have the cursor go to the next line. - answer-fun main(args: ArrayString){ println("Hello, Android ATC") } The language for iOS development is called: - answer-Swift In Kotlin, which is the correct way to define the variable X as an immutable variable called X and assign it the value of 1? - answer-val X=1 Which of the following will correctly create an application that will display "Hello World"? - answer-fun main(args: ArrayString){ printIn("Hello World") } In Kotlin "Float" value range is: - answer-single-precision 32 bit floating point In Kotlin Byte value range is: - answer-0 - 255 Which of the following are implicitly defined integer variables? - answer-var x=9 var y=9 The programming language we will be using for Android app development is called - answer-Kotlin In Kotlin, Double value range is: - answer-double-precision 64 bit floating point Which of the following statements will correctly allow the user to enter an integer - answer-var z = IOf(readLine()) var z=readLine()!!.toInt() The Android App package name should include: - answer-Two to three words separated by dots. in Kotlin "Int" value range is: - answer--2,147,483,648 to 2,147,483,647 The operating system for iOS development is - answer-MacOS In Kotlin, which of the following are true about characters: - answer-Data type is Char Always enclosed in single quotes Android Studio is built for Kotlin development; therefore, you can create a "New Kotlin Project" - answer-False Which of the following will compile clean (not produce an error). - answer-var price:Float = 5.2f In Kotlin, "Long" value range is: - answer-64 bit signed Kotlin code depends on what you write in the ______. This is the "starting point" of the application. It calls out to other functions / classes / libraries. - answer-main function To create an iOS app you have to go to the _______ template page to start your app - answer-iOS Any method / function / block of code written outside the main function will be considered a definition and will be called from the main function to do its work. - answer-True Which of the following will add the variables x and y together and then assign the results to z? - answer-z=(y) z=x+y The Kotlin plugin is bundled with Android Studio version ___ and later. - answer-3.0 The IDE used for developing Android Apps is called - answer-Android Studio In Kotlin "Short" value range is: - answer--32768 to 32767 What is the output of the following code? var x:Byte =10 var y:Byte=15 fun main(args: ArrayString){ var z=x+y println("z = $z") } - answer-z = 25 If I wanted to create a new class called Cat that will contain all properties and methods of the Animal class which was previously defined, I could write the following code: - answer-class Cat():Animal() In Kotlin, a function requires at least 1 item in the parameter list. - answer-False Match the following words with its appropriate definition 1) Class 2) Constructors 3) Object 4) Inheritance 5) Abstract Class 6) Interface 7) Generic Class 8) Enum 9) Instance Variables 10) Class Variables 11) Public Variables 12) Private Variables 13) Protected Variables - answer-Class - blueprint from which objects are created Constructors - Executed to create objects from the class definition Object - Single instance of a class Inheritance - Allows the developer to reuse properties and methods from an existing class Abstract Class - at least one members of a class is defined but has no implementation details Interface - No members of the class has an implementation Generic Class - A class that allows a function to handle data types specified when calling the class Enum - A data type that enables a variable to be a set of constants that the developer has defined Instance Variables - variables in which each instance of a class has it's own copy of the variable Class Variables - variables in which all instances of a class contains the same value Public Variables - variables that are accessible from all classes that access the selected class Private Variables - variables accessible only within their own class Protected Variables - a variable that is accessible only from the current class and any subclass of that class The ___________ statement is used to exit a method and then return the result of an operation to the function that called it. - answer-Return The When statement is similar in concept to the java switch statement. It can have a number of execution paths. - answer-True Study the following code: class Cats{ val numberOfCats = 0 } The numberOfCats is an immutable variable which can't be changed after it is set. - answer-True fu

Content preview

MOBILE APP DEVELOPMENT QUESTIONS AND
ANSWERS
The package name: - answer-uniquely identifies the app on the device

should be unique on the Google Play store

Once you publish the app with this package name that name should never be changed.

If you were to change the package name, existing users of your application will not see the app as an
update

Which of the following is the correct output for this code:
var x= arrayOf(10, 20, 30)
println(x[1]) - answer-20

The IDE for iOS Development is called - answer-XCode

Which of the following is the correct code to print out Hello, Android ATC and then have the cursor go to
the next line. - answer-fun main(args: Array<String>){
println("Hello, Android ATC")
}

The language for iOS development is called: - answer-Swift

In Kotlin, which is the correct way to define the variable X as an immutable variable called X and assign it
the value of 1? - answer-val X=1

Which of the following will correctly create an application that will display "Hello World"? - answer-fun
main(args: Array<String>){
printIn("Hello World")
}

In Kotlin "Float" value range is: - answer-single-precision 32 bit floating point

In Kotlin Byte value range is: - answer-0 - 255

Which of the following are implicitly defined integer variables? - answer-var x=9

var y=9

The programming language we will be using for Android app development is called - answer-Kotlin

In Kotlin, Double value range is: - answer-double-precision 64 bit floating point

, Which of the following statements will correctly allow the user to enter an integer - answer-var z =
Integer.valueOf(readLine())

var z=readLine()!!.toInt()

The Android App package name should include: - answer-Two to three words separated by dots.

in Kotlin "Int" value range is: - answer--2,147,483,648 to 2,147,483,647

The operating system for iOS development is - answer-MacOS

In Kotlin, which of the following are true about characters: - answer-Data type is Char

Always enclosed in single quotes

Android Studio is built for Kotlin development; therefore, you can create a "New Kotlin Project" -
answer-False

Which of the following will compile clean (not produce an error). - answer-var price:Float = 5.2f

In Kotlin, "Long" value range is: - answer-64 bit signed

Kotlin code depends on what you write in the ______. This is the "starting point" of the application. It
calls out to other functions / classes / libraries. - answer-main function

To create an iOS app you have to go to the _______ template page to start your app - answer-iOS

Any method / function / block of code written outside the main function will be considered a definition
and will be called from the main function to do its work. - answer-True

Which of the following will add the variables x and y together and then assign the results to z? - answer-
z=x.plus(y)

z=x+y

The Kotlin plugin is bundled with Android Studio version ___ and later. - answer-3.0

The IDE used for developing Android Apps is called - answer-Android Studio

In Kotlin "Short" value range is: - answer--32768 to 32767

What is the output of the following code?
var x:Byte =10
var y:Byte=15
fun main(args: Array<String>){
var z=x+y
println("z = $z")
} - answer-z = 25

Document information

Uploaded on
September 30, 2024
Number of pages
13
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$11.49

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
TOPDOCTOR
5.0
(1)
Sold
10
Followers
5
Items
3387
Last sold
1 year ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions