diff --git a/kotlin/kotlin-quiz.md b/kotlin/kotlin-quiz.md index b3c3b9603a..080318941c 100644 --- a/kotlin/kotlin-quiz.md +++ b/kotlin/kotlin-quiz.md @@ -9,11 +9,12 @@ fun main() { ``` - [x] `.withIndex()` - ([reference](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.sequences/with-index.html)) - [ ] `.forEachIndexed()` - [ ] `.forEach()` - [ ] `.forIndexes()` +[reference](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.sequences/with-index.html) + #### Q2. When the **Airplane** class is instantiated, it displays **Aircraft = null**, not **Aircraft = C130** why? ```kotlin @@ -37,16 +38,18 @@ class Airplane(private val name: String) : Aircraft() { - [ ] Only abstract classes can inherit from multiple superclasses - [ ] Only abstract classes can have abstract methods - [x] Only abstract classes can store state - [reference](https://blog.kotlin-academy.com/abstract-class-vs-interface-in-kotlin-5ab8697c3a14) + +[reference](https://blog.kotlin-academy.com/abstract-class-vs-interface-in-kotlin-5ab8697c3a14) #### Q4. Inside an extension function, what is the name of the variable that corresponds to the receiver object - [ ] The variable is named **it** - [x] The variable is named **this** - [reference](https://www.programiz.com/kotlin-programming/extension-functions#:~:text=The%20class%20name%20is%20the,function%20refers%20the%20receiver%20object) - [ ] The variable is named **receiver** - [ ] The variable is named **default** +[reference](https://www.programiz.com/kotlin-programming/extension-functions#:~:text=The%20class%20name%20is%20the,function%20refers%20the%20receiver%20object) + #### Q5. Your application has an **add** function. How could you use its **invoke** methods and display the results? ```kotlin @@ -57,10 +60,11 @@ fun add(a: Int, b: Int): Int { - [ ] `println(add(5,10).invoke())` - [x] `println(::add.invoke(5, 10))` - ([reference](https://kotlinlang.org/docs/operator-overloading.html#invoke-operator)) - [ ] `println(::add.invoke{5, 10})` - [ ] `println(add.invoke(5,10))` +[reference](https://kotlinlang.org/docs/operator-overloading.html#invoke-operator) + #### Q6. What is the entry point for a Kotlin application? - [ ] `fun static main(){}` @@ -70,11 +74,13 @@ fun add(a: Int, b: Int): Int { #### Q7. You are writing a console app in Kotlin that processes test entered by the user. If the user enters an empty string, the program exits. Which kind of loop would work best for this app? Keep in mind that the loop is entered at least once -- [x] a do..while loop ([reference](https://kotlinlang.org/docs/control-flow.html#while-loops)) +- [x] a do..while loop - [ ] a for loop - [ ] a while loop - [ ] a forEach loop +[reference](https://kotlinlang.org/docs/control-flow.html#while-loops) + #### Q8. You pass an integer to a function expecting type Any. It works without issue. Why is a primitive integer able to work with a function that expects an object? ```kotlin @@ -102,15 +108,19 @@ val task = launch { - [ ] `task.join()` - [ ] `task.abort()` - [ ] `job.stop()` -- [x] `task.cancel()` ([reference](https://kotlinlang.org/docs/cancellation-and-timeouts.html)) +- [x] `task.cancel()` + +[reference](https://kotlinlang.org/docs/cancellation-and-timeouts.html) #### Q10. You are attempting to assign an integer variable to a long variable, but Kotlin compiler flags it as an error. Why? - [ ] You must wrap all implicit conversion in a try/catch block - [ ] You can only assign `Long` to an `Int`, not the other way around -- [x] There is no implicit conversion from `Int` to `Long` ([reference](https://kotlinlang.org/docs/basic-types.html#explicit-conversions)) +- [x] There is no implicit conversion from `Int` to `Long` - [ ] All integers in Kotlin are of type `Long` +[reference](https://kotlinlang.org/docs/basic-types.html#explicit-conversions) + #### Q11. You have written a snippet of code to display the results of the roll of a six-sided die. When the die displays from 3 to 6 inclusive, you want to display a special message. Using a Kotlin range, what code should you add? ```kotlin @@ -123,17 +133,21 @@ when (die) { ``` - [x] `3,4,5,6` -- [x] `in 3..6` ([reference](https://kotlinlang.org/docs/ranges.html)) +- [x] `in 3..6` - [ ] `3 : 6` - [ ] `{3,4,5,6}` +[reference](https://kotlinlang.org/docs/ranges.html) + #### Q12. The function **typeChecker** receiver a parameter **obj** of type **Any**. Based upon the type of **obj**, it prints different messages for Int, String, Double, and Float types; if not any of the mentioned types, it prints "unknown type". What operator allows you to determine the type of an object? - [ ] `instanceof` -- [x] `is` ([reference](https://kotlinlang.org/docs/typecasts.html#is-and-is-operators)) +- [x] `is` - [ ] `typeof` - [ ] `as` +[reference](https://kotlinlang.org/docs/typecasts.html#is-and-is-operators) + #### Q13. This code does not print any output to the console. What is wrong? ```kotlin @@ -143,10 +157,12 @@ firstName?.let { ``` - [ ] A null pointer exception is thrown -- [x] `firstName` is equal to `null` ([reference](https://kotlinlang.org/docs/scope-functions.html#with)) +- [x] `firstName` is equal to `null` - [ ] `firstName` is equal to an empty string - [ ] `firstName` is equal to Boolean `false` +[reference](https://kotlinlang.org/docs/scope-functions.html#with) + #### Q14. You have a function simple() that is called frequently in your code. You place the inline prefix on the function. What effect does it have on the code? ```kotlin @@ -162,10 +178,12 @@ fun main() { ``` - [ ] The code will give a stack overflow error -- [x] The compiler warns of insignificant performance impact ([reference](https://discuss.kotlinlang.org/t/inlining-tiny-methods/17084)) +- [x] The compiler warns of insignificant performance impact - [ ] The compiler warns of significant memory usage - [ ] The code is significantly faster +[reference](https://discuss.kotlinlang.org/t/inlining-tiny-methods/17084) + #### Q15.How do you fill in the blank below to display all of the even numbers from 1 to 10 with least amount of code? ```kotlin @@ -175,10 +193,12 @@ for (_____) { ``` - [ ] `count in 1..10` -- [x] `count in 2..10 step 2` ([reference](https://kotlinlang.org/docs/ranges.html)) +- [x] `count in 2..10 step 2` - [ ] `count in 1..10 % 2` - [ ] `var count=2; count <= 10; count+=2` +[reference](https://kotlinlang.org/docs/ranges.html) + #### Q16. What value is printed by println()? ```kotlin @@ -186,11 +206,13 @@ val set = setOf("apple", "pear", "orange", "apple") println(set.count()) ``` -- [x] 3 ([reference](https://zetcode.com/kotlin/sets/)) +- [x] 3 - [ ] 4 - [ ] 1 - [ ] 5 +[reference](https://zetcode.com/kotlin/sets/) + #### Q17. Which line of code shows how to display a nullable string's length and shows 0 instead of null? - [ ] `println(b!!.length ?: 0)` @@ -204,32 +226,40 @@ println(set.count()) val list2 = (80..100).toList().filter(_____) ``` -- [x] `::removeBadValues` ([reference](https://kotlinlang.org/docs/reflection.html#callable-references)) +- [x] `::removeBadValues` - [ ] `GlobalScope.removeBadValues()` - [ ] `Mainkt.removeBadValues` - [ ] `removeBadValues` +[reference](https://kotlinlang.org/docs/reflection.html#callable-references) + #### Q19. Which code snippet correctly shows a for loop using a range to display "1 2 3 4 5 6"? - [ ] `for(z in 1..7) println("$z ")` -- [x] `for(z in 1..6) print("$z ")` ([reference](https://kotlinlang.org/docs/ranges.html)) +- [x] `for(z in 1..6) print("$z ")` - [ ] `for(z in 1 to 6) print("$z ")` - [ ] `for(z in 1..7) print("$z ")` +[reference](https://kotlinlang.org/docs/ranges.html) + #### Q20. You are upgrading a Java class to Kotlin. What should you use to replace the Java class's static fields? - [ ] an anonymous object - [ ] a static property -- [x] a companion object ([reference](https://kotlinlang.org/docs/object-declarations.html#companion-objects)) +- [x] a companion object - [ ] a backing field +[reference](https://kotlinlang.org/docs/object-declarations.html#companion-objects) + #### Q21. Your code need to try casting an object. If the cast is not possible, you do not want an exception generated, instead you want null to be assigned. Which operator can safely cast a value? -- [x] `as?` ([reference](https://kotlinlang.org/docs/typecasts.html#safe-nullable-cast-operator)) +- [x] `as?` - [ ] `??` - [ ] `is` - [ ] `as` +[reference](https://kotlinlang.org/docs/typecasts.html#safe-nullable-cast-operator) + #### Q22. Kotlin will not compile this code snippet. What is wrong? ```kotlin @@ -237,18 +267,22 @@ class Employee class Manager : Employee() ``` -- [x] In order to inherit from a class, it must be marked **open** ([reference](https://kotlinlang.org/docs/inheritance.html)) +- [x] In order to inherit from a class, it must be marked **open** - [ ] In order to inherit from a class, it must be marked **public** - [ ] In order to inherit from a class, it must be marked **sealed** - [ ] In order to inherit from a class, it must be marked **override** +[reference](https://kotlinlang.org/docs/inheritance.html) + #### Q23. Which function changes the value of the element at the current iterator location? - [ ] `change()` - [ ] `modify()` -- [x] `set()` ([reference](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list-iterator/set.html)) +- [x] `set()` - [ ] `assign()` +[reference](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list-iterator/set.html) + #### Q24. From the Supervisor subclass, how do you call the Employee class's display() method? ```kotlin @@ -264,9 +298,11 @@ class Supervisor : Employee() { - [ ] `Employee.display() ` - [ ] `::display()` -- [x] `super.display()` ([reference](https://kotlinlang.org/docs/inheritance.html#calling-the-superclass-implementation)) +- [x] `super.display()` - [ ] `override.display()` +[reference](https://kotlinlang.org/docs/inheritance.html#calling-the-superclass-implementation) + #### Q25. The code below compiled and executed without issue before the addition of the line declaring errorStatus. Why does this line break the code? ```kotlin @@ -280,11 +316,13 @@ fun main(){ } ``` -- [x] `StatusError` is an object, not a class and cannot be instantiated ([reference](https://kotlinlang.org/docs/object-declarations.html)) +- [x] `StatusError` is an object, not a class and cannot be instantiated - [ ] Only one instance of the class `Status` can be instantiated at a time - [ ] `Status.Error` must be declared as an immutable type - [ ] `Status.Error` is pribate to class and cannot be declared externally +[reference](https://kotlinlang.org/docs/object-declarations.html) + #### Q26. The code below is expected to display the numbers from 1 to 10, but it does not. Why? ```kotlin @@ -294,28 +332,34 @@ val seq = sequence { yieldAll(1..20) } ``` - [ ] You cannot assign a sequence to a variable -- [x] To produce result, a sequence must have terminal operation. In this case, it needs a `.toList()` ([reference](https://kotlinlang.org/docs/sequences.html#sequence-operations)) +- [x] To produce result, a sequence must have terminal operation. In this case, it needs a `.toList()` - [ ] The `.filter{ it < 11 }` should be `.filter{ it > 11 }` - [ ] The `yieldAll(1..20)` should be `yieldAll(1..10)` +[reference](https://kotlinlang.org/docs/sequences.html#sequence-operations) + #### Q27. What three methods does this class have? ```kotlin class Person ``` -- [x] `equals(), hashCode(), and toString()` ([reference](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/)) +- [x] `equals(), hashCode(), and toString()` - [ ] `equals(), toHash(), and super()` - [ ] `print(), println(), and toString()` - [ ] `clone(), equals(), and super()` +[reference](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/) + #### Q28. Which is the proper way to declare a singleton named DatabaseManager? -- [x] `object DatabaseManager {}` ([reference](https://kotlinlang.org/docs/object-declarations.html#object-declarations)) +- [x] `object DatabaseManager {}` - [ ] `singleton DatabaseManager {}` - [ ] `static class DatabaseManager {}` - [ ] `data class DatabaseManager {}` +[reference](https://kotlinlang.org/docs/object-declarations.html#object-declarations) + #### Q29. In order to subclass the Person class, what is one thing you must do? ```kotlin @@ -325,10 +369,12 @@ abstract class Person(val name: String) { ``` - [ ] The subclass must be marked sealed -- [x] You must override the `displayJob()` method ([reference](https://kotlinlang.org/docs/inheritance.html)) +- [x] You must override the `displayJob()` method - [ ] You must mark the subclass as final - [ ] An abstract class cannot be extended, so you must change it to open +[reference](https://kotlinlang.org/docs/inheritance.html) + #### Q30. The code snippet below translates a database user to a model user. Because their names are both User, you must use their fully qualified names, which is cumbersome. You do not have access to either of the imported classes' source code. How can you shorten the type names? ```kotlin @@ -341,38 +387,48 @@ class UserService{ } ``` -- [x] Use import as to change the type name ([reference](https://kotlinlang.org/docs/packages.html#visibility-of-top-level-declarations)) +- [x] Use import as to change the type name - [ ] Create subtypes with shorter names - [ ] Create interfaces with shorter names - [ ] Create extension classes with shorter names +[reference](https://kotlinlang.org/docs/packages.html#visibility-of-top-level-declarations) + #### Q31. Your function is passed by a parameter obj of type Any. Which code snippet shows a way to retrieve the original type of obj, including package information? - [ ] `obj.classInfo()` - [ ] `obj.typeInfo()` - [ ] `obj::class.simpleName` -- [x] `obj::class` ([reference](https://kotlinlang.org/docs/reflection.html#class-references)) +- [x] `obj::class` + +[reference](https://kotlinlang.org/docs/reflection.html#class-references) #### Q32. Which is the correct declaration of an integer array with a size of 5? - [ ] `val arrs[5]: Int` -- [x] `val arrs = IntArray(5)` ([reference](https://kotlinlang.org/docs/basic-types.html#primitive-type-arrays)) +- [x] `val arrs = IntArray(5)` - [ ] `val arrs: Int[5]` - [ ] `val arrs = Array(5)` +[reference](https://kotlinlang.org/docs/basic-types.html#primitive-type-arrays) + #### Q33. You have created a class that should be visible only to the other code in its module. Which modifier do you use? -- [x] `internal` ([reference](https://kotlinlang.org/docs/visibility-modifiers.html#classes-and-interfaces)) +- [x] `internal` - [ ] `private` - [ ] `public` - [ ] `protected` +[reference](https://kotlinlang.org/docs/visibility-modifiers.html#classes-and-interfaces) + #### Q34. Kotlin has two equality operators, == and ===. What is the difference? - [ ] `==` determines if two primitive types are identical. `===` determines if two objects are identical - [ ] `==` determines if two references point to the same object. `===` determines if two objects have the same value - [ ] `==` determines if two objects have the same value. `===` determines if two strings have the same value -- [x] `==` determines if two objects have the same value. `===` determines if two references point to the same object ([reference](https://kotlinlang.org/docs/equality.html#structural-equality)) +- [x] `==` determines if two objects have the same value. `===` determines if two references point to the same object + +[reference](https://kotlinlang.org/docs/equality.html#structural-equality) #### Q35. Which snippet correctly shows setting the variable max to whichever variable holds the greatest value, a or b, using idiomatic Kotlin? @@ -390,7 +446,9 @@ enum class Signal { OPEN, CLOSED, SENDING } - [ ] `println(Signal.SENDING.position())` - [ ] `println(Signal.SENDING.hashCode())` - [ ] `println(Signal.SENDING)` -- [x] `println(Signal.SENDING.ordinal)` ([reference](https://kotlinlang.org/docs/enum-classes.html#working-with-enum-constants)) +- [x] `println(Signal.SENDING.ordinal)` + +[reference](https://kotlinlang.org/docs/enum-classes.html#working-with-enum-constants) #### Q37. Both const and @JvmField create constants. What can const do that @JvmField cannot? @@ -404,10 +462,12 @@ class Detail { ``` - [ ] `const` is compatible with Java, but `@JvmField` is not -- [x] The compiler will inline const so it is faster and more memory efficient ([reference](https://kotlinlang.org/docs/java-to-kotlin-interop.html#static-fields)) +- [x] The compiler will inline const so it is faster and more memory efficient - [ ] Virtually any type can be used with const but not `@JvmField` - [ ] const can also be used with mutable types +[reference](https://kotlinlang.org/docs/java-to-kotlin-interop.html#static-fields) + #### Q38. You have a when expression for all of the subclasses of the class Attribute. To satisfy the when, you must include an else clause. Unfortunately, whenever a new subclass is added, it returns unknown. You would prefer to remove the else clause so the compiler generates an error for unknown subtypes. What is one simple thing you can do to achieve this? ```kotlin @@ -427,17 +487,21 @@ fun getAttribute(attribute: Attribute) : String { ``` - [ ] Replace `open` with `closed` -- [x] Replace `open` with `sealed` ([reference](https://kotlinlang.org/docs/sealed-classes.html)) +- [x] Replace `open` with `sealed` - [ ] Replace `open` with `private` - [ ] Replace `open` with `public` +[reference](https://kotlinlang.org/docs/sealed-classes.html) + #### Q39. You would like to know each time a class property is updated. Which code snippet shows a built-in delegated property that can accomplish this? - [ ] `Delegates.watcher()` -- [x] `Delegates.observable()` ([reference](https://kotlinlang.org/docs/delegated-properties.html#observable-properties)) +- [x] `Delegates.observable()` - [ ] `Delegates.rx()` - [ ] `Delegates.observer()` +[reference](https://kotlinlang.org/docs/delegated-properties.html#observable-properties) + #### Q40. Why doesn't this code compile? ```kotlin @@ -454,7 +518,9 @@ fun main(){ - [ ] infix function must be marked public - [ ] In Kotlin, add is a keyword - [ ] Extension functions use `it`, not `this`, as the default parameter name -- [x] infix functions cannot have default values ([reference](https://kotlinlang.org/docs/functions.html#infix-notation)) +- [x] infix functions cannot have default values + +[reference](https://kotlinlang.org/docs/functions.html#infix-notation) #### Q41. What is the correct way to initialize a nullable variable? @@ -503,7 +569,9 @@ class Record{ - [ ] Since `COLOR` and `SIZE` are both immutable, they are identical internally - [ ] Both are immutable, but the use of the keyword const makes `COLOR` slower and less space efficient than `SIZE` - [ ] const makes `COLOR` faster, but not compatible with Java. Without const, `SIZE` is still compatible with Java -- [x] Both are immutable, but the use of the keyword const makes `COLOR` faster and more space efficient than `SIZE` ([reference](https://kotlinlang.org/docs/properties.html#compile-time-constants)) +- [x] Both are immutable, but the use of the keyword const makes `COLOR` faster and more space efficient than `SIZE` + +[reference](https://kotlinlang.org/docs/properties.html#compile-time-constants) #### Q45. Why does not this code snippet compile? @@ -533,18 +601,22 @@ for (value in 1..5){ } ``` -- [x] `for( (ndx, value) in (1..20).withIndex() ){` ([reference](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.sequences/with-index.html)) +- [x] `for( (ndx, value) in (1..20).withIndex() ){` - [ ] `for( (ndx, value) in (1..20).pair() ){` - [ ] `for( Pair(ndx, value) in 1..20 ){` - [ ] `for( (ndx, value) in *(1..20) ){` +[reference](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.sequences/with-index.html) + #### Q47. The Kotlin .. operator can be written as which function? - [ ] `a.from(b)` - [ ] `a.range(b)` -- [x] `a.rangeTo(b)` ([reference](https://kotlinlang.org/docs/ranges.html)) +- [x] `a.rangeTo(b)` - [ ] `a.to(b)` +[reference](https://kotlinlang.org/docs/ranges.html) + #### Q48. How can you retrieve the value of the property codeName without referring to it by name or destructuring? ```kotlin @@ -557,7 +629,9 @@ fun main(){ - [ ] `proj.0` - [ ] `proj[0]` - [ ] `proj[1]` -- [x] `proj.component1()` ([reference](https://kotlinlang.org/docs/destructuring-declarations.html)) +- [x] `proj.component1()` + +[reference](https://kotlinlang.org/docs/destructuring-declarations.html) #### Q49. This function generates Fibonacci sequence. Which function is missing? @@ -572,10 +646,12 @@ fun fibonacci() = sequence { ``` - [ ] `with()` -- [x] `yield()` ([reference](https://kotlinlang.org/docs/sequences.html#from-chunks)) +- [x] `yield()` - [ ] `skip()` - [ ] `return()` +[reference](https://kotlinlang.org/docs/sequences.html#from-chunks) + #### Q50. In this code snippet, why does the compiler not allow the value of y to change? ```kotlin @@ -615,11 +691,13 @@ val result = generateSequence(1) { it + 1 }.toList() println(result) ``` -- [x] The sequence lacks a terminal operation. ([reference](https://kotlinlang.org/docs/sequences.html#iterable)) +- [x] The sequence lacks a terminal operation. - [ ] The sequence is infinite and lacks an intermediate operation to make `it` finite. - [ ] The expression should begin with `generateSequence(0)`. - [ ] The `it` parameter should be replaced with `this`. +[reference](https://kotlinlang.org/docs/sequences.html#iterable) + #### Q53. An error is generated when you try to compile the following code. How should you change the call to printStudents to fix the error? ```kotlin @@ -739,7 +817,9 @@ fun main() { - [ ] `val sorted = fibonacci().skip(3).take(6).sortedDescending().toList()` - [ ] `val sorted = fibonacci().skip(3).take(6).sortedByDescending().toList()` - [ ] `val sorted = fibonacci().skip(3).limit(6).sortedByDescending().toList()` -- [x] `val sorted = fibonacci().drop(3).take(6).sortedDescending().toList()` ([reference](https://kotlinlang.org/docs/collection-parts.html#take-and-drop)) +- [x] `val sorted = fibonacci().drop(3).take(6).sortedDescending().toList()` + +[reference](https://kotlinlang.org/docs/collection-parts.html#take-and-drop) #### Q63. You have two arrays, a and b. Which line combines a and b as a list containing the contents of both? @@ -751,7 +831,8 @@ val b = arrayOf(100, 200, 3000) - [ ] `val c = list of (a, b)` - [ ] `val c = a + b` - [ ] `val c = listOf(a+b)` -- [x] `val c = listOf(*a, *b)` ([reference](https://www.techiedelight.com/join-two-lists-kotlin/)) (Similar to Q72) +- [x] `val c = listOf(*a, *b)` +- [reference](https://www.techiedelight.com/join-two-lists-kotlin/) #### Q64. This code is occasionally throwing a null pointer exception (NPE). How can you change the code so it never throws as NPE? @@ -759,18 +840,22 @@ val b = arrayOf(100, 200, 3000) println("length of First Name = ${firstName!!.length}") ``` -- [x] Replace `!!.` with `?.` ([reference](https://kotlinlang.org/docs/null-safety.html#nullable-types-and-non-null-types)) +- [x] Replace `!!.` with `?.` - [ ] Replace `!!.` with `?:.` - [ ] Surround the line with a try/catch block. - [ ] Replace `!!.` with `?.let`. +[reference](https://kotlinlang.org/docs/null-safety.html#nullable-types-and-non-null-types) + #### Q65. What is the execution order of init blocks and properties during initialization? - [ ] All of the properties are executed in order of appearance, and then the init blocks are executed. -- [x] The init blocks and properties are executed in the same order they appear in the code. ([reference](https://kotlinlang.org/docs/classes.html#constructors)) +- [x] The init blocks and properties are executed in the same order they appear in the code. - [ ] All of the init blocks are executed in order of appearance, and then the properties are executed. - [ ] The order of execution is not guaranteed, so code should be written accordingly. +[reference](https://kotlinlang.org/docs/classes.html#constructors) + #### Q66. Both const and @JvmField create constants. What can @JvmField do that const cannot? ```kotlin @@ -782,18 +867,22 @@ class Styles { } ``` -- [x] `const` works only with strings and primitives. `@JvmField` does not have that restriction. ([reference](https://github.com/ythy/blog/issues/328)) +- [x] `const` works only with strings and primitives. `@JvmField` does not have that restriction. - [ ] `@JvmField` works as a top-level variable, but `const` works only in a class. - [ ] `@JvmField` is compatible with Java, but `const` is not. - [ ] `@JvmField` is always inlined for faster code. -#### Q67. What are the two ways to make a coroutine's computation code cancellable? ([reference](https://kotlinlang.org/docs/cancellation-and-timeouts.html#timeout)) +[reference](https://github.com/ythy/blog/issues/328) + +#### Q67. What are the two ways to make a coroutine's computation code cancellable? - [x] Call the `yield()` function or check the `isActive` property. - [ ] Call the `cancelled()` function or check the `isActive` property. - [ ] Call the `stillActive()` function or check the `isCancelled` property. - [ ] Call the `checkCancelled()` function or check the `isCancelled` property. +[reference](https://kotlinlang.org/docs/cancellation-and-timeouts.html#timeout) + #### Q68. Given the code below, how can you write the line this.moveTo("LA") more concisely? ```kotlin @@ -872,26 +961,14 @@ fun main() { - [x] `val mileage = 566` (Note: inferred) - [ ] `const int mileage = 566` -#### Q72. You have two arrays, a and b. Which line combines a and b as a list containing the contents of both? - -```kotlin -val a = array0f(1, 2, 3) -val b = array0f(166,266,366) -``` - -- [ ] `val c = a + b` -- [ ] `val c = list0f(a, b)` -- [x] `val c = list0f(*a, *b)` ([reference](https://www.techiedelight.com/join-two-lists-kotlin/)) -- [ ] `val c = list0f(a+b)` - -#### Q73. What is the preferred way to create an immutable variable of type long? +#### Q72. What is the preferred way to create an immutable variable of type long? - [ ] `var longInt = 10L` - [ ] `const long longInt = 10` - [x] `val longInt = 10L` - [ ] `val longInt:Long = 10` -#### Q74. Which line converts the binaryStr, whish contain only 0s and 1s, to an integer representing its decimal value? +#### Q73. Which line converts the binaryStr, whish contain only 0s and 1s, to an integer representing its decimal value? ```kotlin val binaryStr = "00001111" @@ -902,21 +979,25 @@ val binaryStr = "00001111" - [ ] `val myInt = binaryStr.toInt()` - [x] `val myInt = binaryStr.toInt(2)` -#### Q75. In a Kotlin program, which lines can be marked with a label +#### Q74. In a Kotlin program, which lines can be marked with a label - [ ] `Any program line can be marked with a label` - [ ] `Any statement can be marked with a label` -- [x] `Any expression can be marked with a lable` ([reference](https://agrawalsuneet.github.io/blogs/label-reference-in-kotlin/)) +- [x] `Any expression can be marked with a lable` - [ ] `Only the beginning of loops can be marked with a label` -#### Q76. All classes in Kotlin inherit from which superclass? +[reference](https://agrawalsuneet.github.io/blogs/label-reference-in-kotlin/) + +#### Q75. All classes in Kotlin inherit from which superclass? - [ ] `Default` - [ ] `Super` -- [x] `Any` ([reference](https://kotlinlang.org/docs/inheritance.html)) +- [x] `Any` - [ ] `Object` -#### Q77. You have written a function, sort(), that should accept only collections that implement the `Comparable` interface. How can you restrict the function? +[reference](https://kotlinlang.org/docs/inheritance.html) + +#### Q76. You have written a function, sort(), that should accept only collections that implement the `Comparable` interface. How can you restrict the function? ```kotlin fun sort(list: List): List { @@ -926,17 +1007,21 @@ fun sort(list: List): List { - [ ] `Add Comparable> between the `fun` keyword and the function name` - [ ] `Add Comparable between the `fun` keyword and the function name` -- [x] `Add > between the `fun` keyword and the function name` ([reference](https://kotlinlang.org/docs/generics.html#generic-functions)) +- [x] `Add > between the `fun` keyword and the function name` - [ ] `Add > between the `fun` keyword and the function name` -#### Q78. Kotlin classes are final by default. What does final mean? +[reference](https://kotlinlang.org/docs/generics.html#generic-functions) + +#### Q77. Kotlin classes are final by default. What does final mean? - [ ] final means that you cannot use interfaces with this class. - [ ] final means that this is the only file that can use the class. -- [x] final means that you cannot extend the class.([reference](https://kotlinlang.org/docs/inheritance.html)) +- [x] final means that you cannot extend the class. - [ ] final classes cannot be used in the finally section of a try/catch block. -#### Q79. You have created an array to hold three strings. When you run the code bellow, the compiler displays an error. Why does the code fail? +[reference](https://kotlinlang.org/docs/inheritance.html) + +#### Q78. You have created an array to hold three strings. When you run the code bellow, the compiler displays an error. Why does the code fail? ``` val names = arrayOf(3) diff --git a/machine-learning/machine-learning-quiz.md b/machine-learning/machine-learning-quiz.md index a2a0284c31..ba96ba8a2c 100755 --- a/machine-learning/machine-learning-quiz.md +++ b/machine-learning/machine-learning-quiz.md @@ -474,7 +474,7 @@ Note: there are centres of clusters (C0, C1, C2). - [ ] Retrain your model with smaller batch sizes. - [x] Include Asian faces in your training data and retrain your model. - `The answer is self-explanatory: if Asian users are the only group of people making the complaint, then the training data should have more Asian faces.` +`The answer is self-explanatory: if Asian users are the only group of people making the complaint, then the training data should have more Asian faces.` #### Q64. You work for a website that helps match people up for lunch dates. The website boasts that it uses more than 500 predictors to find customers the perfect date, but many costumers complain that they get very few matches. What is a likely problem with your model? @@ -483,9 +483,9 @@ Note: there are centres of clusters (C0, C1, C2). - [x] You are overfitting the model to the data. - [ ] Your machine is creating inaccurate clusters. - **Explanation**: // This question is very similar to Q49 but involves a polar opposite scenario. +**Explanation**: // This question is very similar to Q49 but involves a polar opposite scenario. - `that answer somewhat vague and unsettled. Small number of matchings does not necessarily implies that the model overfits, especially given 500 (!) independent variables. To me, it sounds more reasonable that the threshold (matching) criterion might be too tight, thus allowing only a small number of matching to occur. So a solution can be either softening the threshold criterion or increasing the number of candidates.` +`that answer somewhat vague and unsettled. Small number of matchings does not necessarily implies that the model overfits, especially given 500 (!) independent variables. To me, it sounds more reasonable that the threshold (matching) criterion might be too tight, thus allowing only a small number of matching to occur. So a solution can be either softening the threshold criterion or increasing the number of candidates.` #### Q65. (Mostly) whenever we see kernel visualizations online (or some other reference) we are actually seeing: diff --git a/maven/maven-quiz.md b/maven/maven-quiz.md index 1e376d2d57..4721cdb544 100755 --- a/maven/maven-quiz.md +++ b/maven/maven-quiz.md @@ -296,7 +296,8 @@ mvn install - [x] These elements are inherited from the parent POM file, and do not need to be repeated. - [ ] Child POM files should include definitions of only dependencies and plugins. - [ ] The values in the parent POM will be overridden by what is defined in the child POM. - Source: [maven docs](https://maven.apache.org/guides/introduction/introduction-to-the-pom.html#the-solution) + +[maven docs](https://maven.apache.org/guides/introduction/introduction-to-the-pom.html#the-solution) #### Q40. The settings.xml file that provides the user-specific settings for Maven is contained in which directory by default? @@ -376,7 +377,9 @@ mvn install - [x] to carry out checks before building the project - [ ] to ensure plugins defined in the POM file are in the correct order - [ ] to check the project structure is correct after building a project - Source: [stackoverflow](https://stackoverflow.com/a/40601037) and [maven docs](https://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html#a-build-lifecycle-is-made-up-of-phases) + +1. [stackoverflow](https://stackoverflow.com/a/40601037) +2. [maven docs](https://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html#a-build-lifecycle-is-made-up-of-phases) #### Q51. How do you check for unused dependencies in your project? @@ -384,7 +387,9 @@ mvn install - [ ] You will need to do this manually. - [ ] Include the Maven dependency plugin in your POM file and run the unpack goal. - [x] Run the analyze goal of the dependency plugin. - Source: [baeldung](https://www.baeldung.com/maven-unused-dependencies) and [stackoverflow](https://stackoverflow.com/a/1518661) + +1. [baeldung](https://www.baeldung.com/maven-unused-dependencies) +2. [stackoverflow](https://stackoverflow.com/a/1518661) #### Q52. Why is it best practice to avoid overriding the default directory structure? @@ -392,7 +397,8 @@ mvn install - [ ] Overriding the default structure is very complex. - [ ] Overriding the default structure will cause Maven to take longer to compile your code. - [x] all of these answers - Source: [maven docs](https://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html) + +[maven docs](https://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html) #### Q53. What is the main purpose of the install phase? @@ -400,4 +406,5 @@ mvn install - [x] to install all of the remote dependencies - [ ] to deploy the final project artifacts into a remote Maven repository - [ ] to copy the final project artifacts into the local Maven repository - Source: [maven docs](https://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html#a-build-lifecycle-is-made-up-of-phases) + +[maven docs](https://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html#a-build-lifecycle-is-made-up-of-phases) diff --git a/microsoft-access/microsoft-access.md b/microsoft-access/microsoft-access.md index 11c217029a..677a78236d 100644 --- a/microsoft-access/microsoft-access.md +++ b/microsoft-access/microsoft-access.md @@ -16,16 +16,17 @@ #### Q3. What is the Access string operator that joins or concatenates text strings together? -- [x] & -- [ ] ! -- [ ] # -- [ ] - +- [x] `&` +- [ ] `!` +- [ ] `#` +- [ ] `-` -[\_Caveat:](https://support.microsoft.com/en-us/office/string-functions-and-how-to-use-them-965efa84-7009-4603-9765-2eb4a099ec72) - "In a desktop database, you can also use the ampersand operator (&) for concatentation. In an Access app, you must use the plus sign (+)."\_ +[Caveat:](https://support.microsoft.com/en-us/office/string-functions-and-how-to-use-them-965efa84-7009-4603-9765-2eb4a099ec72) +"In a desktop database, you can also use the ampersand operator (&) for concatentation. In an Access app, you must use the plus sign (+)."\_ #### Q4. The relationship field in this table has been created with what feature? -

+`

` - [x] lookup - [ ] reference integrity @@ -55,7 +56,7 @@ - [ ] General Number - [ ] Fixed -[Reference)[https://support.microsoft.com/en-us/office/format-a-number-or-currency-field-e48f2312-67f0-4921-aca0-15d36b7f9c3b#bkmk_examples_predefined] +[Reference](https://support.microsoft.com/en-us/office/format-a-number-or-currency-field-e48f2312-67f0-4921-aca0-15d36b7f9c3b#bkmk_examples_predefined) #### Q8. In Access Option > Current Database, what does turning off the Allow Full Menus option do? @@ -149,8 +150,8 @@ https://support.microsoft.com/en-us/office/iif-function-32436ecf-c629-48a3-9900- - [ ] left; left - [ ] right; right -[Text:](https://support.microsoft.com/en-us/office/format-a-text-field-a5e5bcde-85da-4c7a-8164-1fe286636668) -[Numerical:](https://support.microsoft.com/en-us/office/format-a-number-or-currency-field-e48f2312-67f0-4921-aca0-15d36b7f9c3b) +1. [Text:](https://support.microsoft.com/en-us/office/format-a-text-field-a5e5bcde-85da-4c7a-8164-1fe286636668) +2. [Numerical:](https://support.microsoft.com/en-us/office/format-a-number-or-currency-field-e48f2312-67f0-4921-aca0-15d36b7f9c3b) #### Q18. Which data type is a modern replacement for the OLE Object data type? diff --git a/microsoft-azure/microsoft-azure-quiz.md b/microsoft-azure/microsoft-azure-quiz.md index a63b1eee1c..9ca0db1335 100755 --- a/microsoft-azure/microsoft-azure-quiz.md +++ b/microsoft-azure/microsoft-azure-quiz.md @@ -23,7 +23,7 @@ - [ ] service principal and a secret - [x] shared access key -**Reference:** [Azure Key Vault Developer's Guide](https://docs.microsoft.com/en-us/azure/key-vault/general/developers-guide#authenticate-to-key-vault-in-code) lists 3 available methods. The _shared access key_ does not exist in Azure at all, the closest term is _shared access signature (SAS)_ but it's used to access Azure Storage only. +[Azure Key Vault Developer's Guide](https://docs.microsoft.com/en-us/azure/key-vault/general/developers-guide#authenticate-to-key-vault-in-code) lists 3 available methods. The _shared access key_ does not exist in Azure at all, the closest term is _shared access signature (SAS)_ but it's used to access Azure Storage only. #### Q4. You added a persistent volume claim to your apps YAML manifest. When you attempt to deploy to an existing AKS cluster there is no persistent volume available. What should you do? @@ -53,7 +53,7 @@ - [ ] Shared key - [ ] Certificate -**Explanation:** [Shared access signature](https://docs.microsoft.com/en-us/azure/storage/common/storage-sas-overview) exists exactly for the purpose of giving a temporary access. Azure AD user account is not temporary so it needs to be managed. Creating/revoking Certificates for temporary access is just too much hassle. +[Shared access signature](https://docs.microsoft.com/en-us/azure/storage/common/storage-sas-overview) exists exactly for the purpose of giving a temporary access. Azure AD user account is not temporary so it needs to be managed. Creating/revoking Certificates for temporary access is just too much hassle. #### Q8. The Kineteco web app runs in an Azure Kubernetes Service. You need to monitor feature use and user navigation paths to identify where improvements are needed. What should you do? @@ -62,7 +62,7 @@ - [ ] Install the App Insights on AKS nodes - [ ] Add instrumentation to your app to send usage analytics with Application Insights. -**Notes:** Needs to be clarified. The [Container Monitoring doc](https://docs.microsoft.com/en-us/azure/azure-monitor/containers/containers) explicitly mentions that it's not for AKS. 3 and 4 look right +[Container Monitoring doc](https://docs.microsoft.com/en-us/azure/azure-monitor/containers/containers) explicitly mentions that it's not for AKS. 3 and 4 look right #### Q9. Which choice is not a valid trigger for an Azure functions? @@ -129,7 +129,7 @@ - [ ] REST API - [ ] Server Message Block(SMB) -**Reference:** [What is Azure Files?](https://docs.microsoft.com/en-us/azure/storage/files/storage-files-introduction) page mentions the supported protocols. +[What is Azure Files?](https://docs.microsoft.com/en-us/azure/storage/files/storage-files-introduction) page mentions the supported protocols. #### Q18. You are writing an app for a sales team. You need to implement security in SQL Server to ensure that sales representatives see customer financial information only for customers whom they manage. Your app must make this transparent to the user. Which SQL data security option should you choose? diff --git a/microsoft-excel/microsoft-excel-quiz.md b/microsoft-excel/microsoft-excel-quiz.md index d6f5a8ac98..47da81af16 100755 --- a/microsoft-excel/microsoft-excel-quiz.md +++ b/microsoft-excel/microsoft-excel-quiz.md @@ -473,7 +473,7 @@ - [ ] the named range Colors[Inventory], which does not use Format as Table Feature Table[Column] can be used instead of cell references (C2:C7). -https://support.microsoft.com/en-us/office/using-structured-references-with-excel-tables-f5ed2452-2337-4f71-bed3-c8ae6d2b276e +[Reference](https://support.microsoft.com/en-us/office/using-structured-references-with-excel-tables-f5ed2452-2337-4f71-bed3-c8ae6d2b276e) #### Q63. Which VLOOKUP function, when entered into cell L2 and then dragged to cell L5, returns the average number of calls for the representative IDs listed in column J? @@ -540,7 +540,7 @@ https://support.microsoft.com/en-us/office/using-structured-references-with-exce - [x] In the `PivotTable Fields` pane, drag `Sum Values` from the `Columns` section to a location below the field in the `Rows` section. - [ ] In the `PivotTable Fields` pane, drag each field from the `Sum Values` section to the `Rows` section. -https://devexpress.github.io/dotnet-eud/interface-elements-for-desktop/articles/spreadsheet/pivot-tables/group-items-in-a-pivot-table.html +[Reference](https://devexpress.github.io/dotnet-eud/interface-elements-for-desktop/articles/spreadsheet/pivot-tables/group-items-in-a-pivot-table.html) ### Q70. Which Excel feature allows you to hide rows or columns with an easily visible expand/collapse? diff --git a/microsoft-power-bi/microsoft-power-bi-quiz.md b/microsoft-power-bi/microsoft-power-bi-quiz.md index ebb57170e1..baaf8636fc 100755 --- a/microsoft-power-bi/microsoft-power-bi-quiz.md +++ b/microsoft-power-bi/microsoft-power-bi-quiz.md @@ -95,10 +95,12 @@ D. Reorder the steps. - [ ] B, C, D -- [x] A, B, C, D [proof link](https://docs.microsoft.com/en-us/power-bi/transform-model/desktop-query-overview) +- [x] A, B, C, D - [ ] A, B, D - [ ] A, B, C +[proof link](https://docs.microsoft.com/en-us/power-bi/transform-model/desktop-query-overview) + #### Q12. After you enter text in the #### Q&A box or O&A visual, Power BI will `\_` your data to create a list of appropriate visualizations. - [ ] filter and group @@ -109,12 +111,13 @@ #### Q13. You just deleted a dashboard in the Power BI service and want to get it back. What should you do? - [x] Press Ctrl+Z. - [proof link1](https://docs.microsoft.com/en-us/power-bi/visuals/service-tips-and-tricks-for-color-formatting) - [link2](https://www.edureka.co/community/26060/how-do-i-undo-something-in-power-bi) - [ ] Select Undo from the toolbar. - [ ] You cannot undo the deletion of a dashboard. - [ ] Recover it from the Recycle Bin. +1. [proof link1](https://docs.microsoft.com/en-us/power-bi/visuals/service-tips-and-tricks-for-color-formatting) +2. [link2](https://www.edureka.co/community/26060/how-do-i-undo-something-in-power-bi) + #### Q14. You have a sales data source and want to relate the tables. The table that contains sales transactions is a **\_** table that contains product information is a \_ table . - [ ] dimension; fact @@ -151,11 +154,12 @@ #### Q18. Formatting options within a visualization depend on what? - [x] the visualization you are formatting - [proof link](https://docs.microsoft.com/en-us/power-bi/visuals/service-getting-started-with-color-formatting-and-axis-properties) - [ ] the editor you use - [ ] the visualization group - [ ] your permissions +[proof link](https://docs.microsoft.com/en-us/power-bi/visuals/service-getting-started-with-color-formatting-and-axis-properties) + #### Q19. What tool can you use in Power BI Desktop to reduce data? - [ ] report editor @@ -368,7 +372,7 @@ D. They must have no duplicate data rows. #### Q48. What is the purpose of this code? -// ProductCount = COUNT(Products[ProductID]) +`ProductCount = COUNT(Products[ProductID])` - [x] It is part of the documentation - [ ] It creates and formats a measure called ProductCount diff --git a/microsoft-power-point/microsoft-power-point-quiz.md b/microsoft-power-point/microsoft-power-point-quiz.md index 53e44ce67f..bb23dc4847 100755 --- a/microsoft-power-point/microsoft-power-point-quiz.md +++ b/microsoft-power-point/microsoft-power-point-quiz.md @@ -59,7 +59,8 @@ - [ ] slide titles - [ ] missing alt text - [x] grammar - [Source](https://support.microsoft.com/en-us/office/rules-for-the-accessibility-checker-651e08f2-0fc3-4e10-aaca-74b4a67101c1?ns=powerpnt&version=16&ui=en-us&rs=en-us&ad=us) + +[Source](https://support.microsoft.com/en-us/office/rules-for-the-accessibility-checker-651e08f2-0fc3-4e10-aaca-74b4a67101c1?ns=powerpnt&version=16&ui=en-us&rs=en-us&ad=us) #### Q9. How can you change the appearance of a table in one click? @@ -393,9 +394,8 @@ If your Word document contains no Heading 1 or Heading 2 styles, PowerPoint will - [ ] The second slide must have different objects that are in the same position as the objects on the first slide - [ ] The two slides must have at least one obiect in common that is in the same position on the second slide -[Reference 1](https://support.microsoft.com/en-us/office/use-the-morph-transition-in-powerpoint-8dd1c7b2-b935-44f5-a74c-741d8d9244ea#:~:text=The%20Morph%20transition%20allows%20you%20to%20animate%20smooth,of%20things%E2%80%94text%2C%20shapes%2C%20pictures%2C%20SmartArt%20graphics%2C%20and%20WordArt.) - -[Reference 2](https://twist.learningguild.net/2019/03/morph-magic-for-incredible-effects-in-powerpoint-richard-goring/#:~:text=Morph%20recognizes%20any%20duplicate%20objects%20across%20two%20slides,make%20objects%20change%20size%2C%20or%20shape%2C%20or%20color.) +1. [Reference](https://support.microsoft.com/en-us/office/use-the-morph-transition-in-powerpoint-8dd1c7b2-b935-44f5-a74c-741d8d9244ea#:~:text=The%20Morph%20transition%20allows%20you%20to%20animate%20smooth,of%20things%E2%80%94text%2C%20shapes%2C%20pictures%2C%20SmartArt%20graphics%2C%20and%20WordArt.) +2. [Reference](https://twist.learningguild.net/2019/03/morph-magic-for-incredible-effects-in-powerpoint-richard-goring/#:~:text=Morph%20recognizes%20any%20duplicate%20objects%20across%20two%20slides,make%20objects%20change%20size%2C%20or%20shape%2C%20or%20color.) #### Q53. Why would you use the Rehearse Timings command? @@ -449,9 +449,8 @@ If your Word document contains no Heading 1 or Heading 2 styles, PowerPoint will - [ ] grammar - [ ] reading order -[Reference 1](https://support.microsoft.com/en-us/office/rules-for-the-accessibility-checker-651e08f2-0fc3-4e10-aaca-74b4a67101c1) - -[Reference 2](https://webaim.org/resources/evaloffice/) +1. [Reference](https://support.microsoft.com/en-us/office/rules-for-the-accessibility-checker-651e08f2-0fc3-4e10-aaca-74b4a67101c1) +2. [Reference](https://webaim.org/resources/evaloffice/) #### Q59. What is the easiest way to change the appearance of a table? diff --git a/node.js/node.js-quiz.md b/node.js/node.js-quiz.md index ca2a4f1552..61d0bdaad5 100755 --- a/node.js/node.js-quiz.md +++ b/node.js/node.js-quiz.md @@ -409,7 +409,10 @@ fs.appendFile('hello.txt', `Hello ${user} on ${system}`, (err) => { if (err) thr - [x] process - [ ] child_process -**Explanation:** _process is an global object and act like a bridge, the others aren't (please see https://nodejs.org/api/globals.html or https://nodejs.org/api/process.html#process_process)._ +**Explanation:** \_process is an global object and act like a bridge, the others aren't + +1. [source](https://nodejs.org/api/globals.html) +2. [source](https://nodejs.org/api/process.html#process_process) #### Q51. Which statement is true about Node.js and threads? diff --git a/nosql/nosql-quiz.md b/nosql/nosql-quiz.md index 33aa255f38..b094e994c8 100755 --- a/nosql/nosql-quiz.md +++ b/nosql/nosql-quiz.md @@ -161,7 +161,7 @@ - [ ] MongoDB - [ ] Bigtable -#### Q24. Which statement is prefered Cypher code for Neo4j? +#### Q24. Which statement is preferred Cypher code for Neo4j? - [ ] MATCH (:Person)-->(:Card)-->(:Company) RETURN count(vehicle) - [ ] Match (:Person)-->(:Car):(vehicle:Car)-->(:Company) RETURN count(vehicle) diff --git a/oop/object-oriented-programming-quiz.md b/oop/object-oriented-programming-quiz.md index d31f3ebd8d..ceae9dc6fb 100755 --- a/oop/object-oriented-programming-quiz.md +++ b/oop/object-oriented-programming-quiz.md @@ -610,7 +610,7 @@ public class Honda extends Car{} - [x] overloading - [ ] inheritance -- [ ] abstaction +- [ ] abstraction - [ ] overriding #### Q78. What does a concrete class not have? @@ -643,7 +643,7 @@ public class Honda extends Car{} #### Q82. What parameters are required to be passed to a class constructor? -// Here they haven't mentioned any specific language so let's consider all languages. +`Here they haven't mentioned any specific language so let's consider all languages.` - [ ] reference to subclass // References to subclass are never required as you can simply Initialize subclass & use their object. - [ ] reference to base class // References to the base class are not required in Java, Javascript & Python diff --git a/quickbooks/quickbooks-quiz.md b/quickbooks/quickbooks-quiz.md index ebb659944b..852c33dd9f 100644 --- a/quickbooks/quickbooks-quiz.md +++ b/quickbooks/quickbooks-quiz.md @@ -294,7 +294,7 @@ - [ ] any QuickBooks report - [x] a predesigned report that shows more detail about the data you are currently viewing on screen -[Source: LinkedIn assessment practice mode](https://i.imgur.com/dj6DeZk.png) +[LinkedIn assessment practice mode](https://i.imgur.com/dj6DeZk.png) #### Q43. After paying a bill in the Pay Bills screen, QuickBooks automatically creates a journal entry behind the scenes that will do what?