1. What is Data class ? Junior A. a language construct that defines a singleton, creating one instance lazily on first access B. a class declared so the compiler generates equals, hashCode, toString, and copy from its primary constructor properties C. an object tied to a class that holds members callable through the class name itself, replacing static members D. a keyword that permits a class or member to be inherited or overridden, which is forbidden by default Reveal the answer + AI explanation — free account
2. Which term means: "a class declared so the compiler generates equals, hashCode, toString, and copy from its primary constructor properties"? Junior A. Sealed class B. Data class C. Object declaration D. open modifier Reveal the answer + AI explanation — free account
3. Which statement is correct? Junior A. Data class — a restricted hierarchy whose direct subclasses are all known at compile time, enabling exhaustive branching B. Data class — a class declared so the compiler generates equals, hashCode, toString, and copy from its primary constructor properties C. Data class — a keyword that permits a class or member to be inherited or overridden, which is forbidden by default D. Data class — a language construct that defines a singleton, creating one instance lazily on first access Reveal the answer + AI explanation — free account
4. What is Sealed class ? Mid A. a keyword that permits a class or member to be inherited or overridden, which is forbidden by default B. a restricted hierarchy whose direct subclasses are all known at compile time, enabling exhaustive branching C. an object tied to a class that holds members callable through the class name itself, replacing static members D. a class declared so the compiler generates equals, hashCode, toString, and copy from its primary constructor properties Reveal the answer + AI explanation — free account
5. Which term means: "a restricted hierarchy whose direct subclasses are all known at compile time, enabling exhaustive branching"? Mid A. Data class B. open modifier C. Companion object D. Sealed class Reveal the answer + AI explanation — free account
6. Which statement is correct? Mid A. Sealed class — a language construct that defines a singleton, creating one instance lazily on first access B. Sealed class — a restricted hierarchy whose direct subclasses are all known at compile time, enabling exhaustive branching C. Sealed class — a class declared so the compiler generates equals, hashCode, toString, and copy from its primary constructor properties D. Sealed class — a keyword that permits a class or member to be inherited or overridden, which is forbidden by default Reveal the answer + AI explanation — free account
7. What is Object declaration ? Mid A. a class declared so the compiler generates equals, hashCode, toString, and copy from its primary constructor properties B. an object tied to a class that holds members callable through the class name itself, replacing static members C. a language construct that defines a singleton, creating one instance lazily on first access D. a restricted hierarchy whose direct subclasses are all known at compile time, enabling exhaustive branching Reveal the answer + AI explanation — free account
8. Which term means: "a language construct that defines a singleton, creating one instance lazily on first access"? Mid A. Sealed class B. Companion object C. Object declaration D. Data class Reveal the answer + AI explanation — free account
9. Which statement is correct? Mid A. Object declaration — a restricted hierarchy whose direct subclasses are all known at compile time, enabling exhaustive branching B. Object declaration — an object tied to a class that holds members callable through the class name itself, replacing static members C. Object declaration — a language construct that defines a singleton, creating one instance lazily on first access D. Object declaration — a class declared so the compiler generates equals, hashCode, toString, and copy from its primary constructor properties Reveal the answer + AI explanation — free account
10. What is Companion object ? Mid A. a restricted hierarchy whose direct subclasses are all known at compile time, enabling exhaustive branching B. a keyword that permits a class or member to be inherited or overridden, which is forbidden by default C. an object tied to a class that holds members callable through the class name itself, replacing static members D. a language construct that defines a singleton, creating one instance lazily on first access Reveal the answer + AI explanation — free account
11. Which term means: "an object tied to a class that holds members callable through the class name itself, replacing static members"? Mid A. Companion object B. Data class C. Sealed class D. Object declaration Reveal the answer + AI explanation — free account
12. Which statement is correct? Mid A. Companion object — an object tied to a class that holds members callable through the class name itself, replacing static members B. Companion object — a keyword that permits a class or member to be inherited or overridden, which is forbidden by default C. Companion object — a language construct that defines a singleton, creating one instance lazily on first access D. Companion object — a class declared so the compiler generates equals, hashCode, toString, and copy from its primary constructor properties Reveal the answer + AI explanation — free account
13. What is open modifier ? Junior A. a class declared so the compiler generates equals, hashCode, toString, and copy from its primary constructor properties B. a keyword that permits a class or member to be inherited or overridden, which is forbidden by default C. a restricted hierarchy whose direct subclasses are all known at compile time, enabling exhaustive branching D. an object tied to a class that holds members callable through the class name itself, replacing static members Reveal the answer + AI explanation — free account
14. Which term means: "a keyword that permits a class or member to be inherited or overridden, which is forbidden by default"? Junior A. open modifier B. Data class C. Companion object D. Object declaration Reveal the answer + AI explanation — free account
15. Which statement is correct? Junior A. open modifier — a restricted hierarchy whose direct subclasses are all known at compile time, enabling exhaustive branching B. open modifier — an object tied to a class that holds members callable through the class name itself, replacing static members C. open modifier — a language construct that defines a singleton, creating one instance lazily on first access D. open modifier — a keyword that permits a class or member to be inherited or overridden, which is forbidden by default Reveal the answer + AI explanation — free account