Add a button to an app Return to pathway Which of the following is an example of a class? Choose as many answers as you see fit. A Car class that has a make and model, and that can be driven A Flower class that has a scent A Puppy class that has breed, weight and age, and that can bark A ShoppingCart class that has a cart size and cart value, and that can hold items A Song class that has lyrics None of these are examples of a class. Which of the following is a difference between a class and an instance? Choose as many answers as you see fit. You can think of a class as a blueprint and an instance as the actual “thing". A class is like architectural plans for a bridge, and the Golden Gate bridge an instance of those plans. A class is for defining categories of "things", while instances are for defining their properties. You can create multiple instances from a class, but you can't create classes from instances. For each of the following types of information, select whether it should be part of a class or an instance. Each answer only matches one item. Information about properties shared by all "things" belonging to the class, such as number of sides, number of legs, or that it has a color. Class Instance The specifics about a property, such as the specific color of a “thing” that can have a color. Class Instance True or false? Every MainActivity class in Android must have a main() function. True False Which of the following is NOT a way for creating a comment in Kotlin? Choose as many answers as you see fit. Add // at the beginning of or inside a line and anything after that // is considered a comment. Put /* or /** to start a block comment, and end it with */. Use // to turn the rest of a function into a comment. Use /* to start a comment that is one line long. Which of the following statements about a conditional statement is true? Choose as many answers as you see fit. A conditional statement is a way for you to set up a condition and ensure that code following it is only executed if that condition is met. A conditional statement does not require any keywords. A conditional statement should only be used with integers as input. A conditional statement can be used within functions to return output based on conditions defined in that function. What is a good reason for you to add comments to your code? To explain to yourself or others why the code is written a certain way. To structure code, like chapter headings in books. To point out some part of the code that is very important. To explain to other developers how to use your code for their own programs. All of the above None of the above Which of the following are Kotlin data types? Choose as many answers as you see fit. IntRange Num Int Boolean (true or false) Which of the following are valid keywords used in conditional statements in Kotlin? Choose as many answers as you see fit. if, else if, then, stop when repeat, finish Submit answers error_outline An error occurred when grading the quiz. Please try again.