Tag: softskills

Questions Related to softskills

Multiple choice softskills creativity
  1. 12

  2. nothing

  3. compilation error

  4. 0

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The code contains several errors: 'NowString()' is a constructor name that doesn't match the class 'NowS', and 'Super.Sam(12)' is invalid syntax for calling a superclass constructor (it should be 'super(12)'). These issues cause a compilation error.

Multiple choice softskills creativity
  1. Import new package

  2. use concrete class

  3. Use of Interfaces

  4. Use Inheritance

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Java does not support multiple inheritance of classes to avoid complexity and the 'diamond problem'. However, it allows a class to implement multiple interfaces, effectively providing a way to achieve the benefits of multiple inheritance.

Multiple choice softskills creativity
  1. True

  2. False

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

An interface in Java is 100% abstract - it can only contain abstract method declarations (and constants). Unlike abstract classes which can have both abstract and concrete methods, interfaces cannot have any implemented methods. This is the fundamental definition of an interface in Java - it provides a contract without implementation.

Multiple choice softskills creativity
  1. static variable

  2. Abstract method

  3. Initializer Block

  4. Instance variables

Reveal answer Fill a bubble to check yourself
A,C Correct answer
Explanation

In Java, static variables are initialized when the class is loaded, and initializer blocks (both static and instance) run before the constructor body. Static blocks run once at load time; instance blocks run every time an object is created, just before the constructor.

Multiple choice softskills creativity
  1. constructor

  2. public instance variable

  3. protected members

  4. Primitive elements

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Constructors are not inherited in Java - each class must have its own constructors. When a subclass is instantiated, it calls the superclass constructor (implicitly or explicitly via super()), but it does not inherit the constructor itself. Public instance variables, protected members, and primitive elements are all inherited by subclasses.

Multiple choice softskills creativity
  1. Run-time Error

  2. True

  3. Compilation Error

  4. False

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The code uses assignment (=) instead of equality (). In 'if(var = true)', the assignment happens first (var becomes true), then the condition evaluates the assigned value. Since true is truthy, the if-block executes, printing 'TRUE'. This is a common bug - the programmer likely meant to compare () but accidentally assigned. There's no compilation or runtime error - Java allows boolean assignment in conditions.

Multiple choice softskills teamwork
  1. Barathrum

  2. Balanar

  3. Nevermore

  4. Nerubian Weaver

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Balanar the Night Stalker is a hero in DotA whose abilities are specifically designed for nighttime combat - he has increased movement speed, attack speed, and vision at night. This makes him extremely dangerous to encounter during night hours. Barathrum, Nevermore, and Nerubian Weaver don't have this specific night-based dominance that would make them particularly threatening at night.

Multiple choice softskills teamwork
  1. True

  2. False

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

In a 1v1 match, Bradwarden the Centaur Warchief would likely beat Sand King due to his durability. Centaur has high strength gain, Return (damage reflection), and great survivability with spells like Blade Mail and Hoof Stomp. Sand King relies on Burrowstrike and Epicenter, but in a 1v1, Centaur's tankiness and damage reflection would give him the advantage. The statement is false.

Multiple choice softskills creativity
  1. Ablutophobia

  2. Agateophobia

  3. Aeroacrophobia

  4. Ailurophobia

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Ablutophobia is the specific phobia relating to washing, bathing, or cleaning. The term comes from the Latin 'abluere' (to wash) and 'phobia' (fear). People with this condition experience intense anxiety about washing or bathing, which can significantly impact daily hygiene and quality of life.