Tag: programming languages

Questions Related to programming languages

Multiple choice technology programming languages
  1. 1 public class Cup extends ContainerClass {

  2. 2 public class Basket extends ContainerClass {

  3. 3 public class Caldron extends ContainerClass {

  4. 4 public class Bag extends ContainerClass {

Reveal answer Fill a bubble to check yourself
B Correct answer
Multiple choice technology programming languages
    1. Change public abstract class Vehicles { } to public class Vehicles { }
    1. Change public class Bus { } to public class Bus extends Vehicles { }
    1. Change public class MyClass { to private class My Class {
    1. Change public abstract class Vehicles { } to protected abstract class Vehicles { }
Reveal answer Fill a bubble to check yourself
B Correct answer
Multiple choice technology programming languages
    1. 3
    1. 4
    1. 5
    1. No lines enable the garbage collection of the test object.
Reveal answer Fill a bubble to check yourself
C Correct answer
Multiple choice technology programming languages
  1. 1 This is the pseudocode representing the two types of assert statements:

  2. 2 Always handle an AssertionError in a try-catch-finally block.

  3. 3 This is the pseudocode representing the two types of assert statements:

  4. 4 Assertions of the 'assert booleanExpression;' variety should not be disabled before distributing the software.

Reveal answer Fill a bubble to check yourself
A Correct answer
Multiple choice technology programming languages
    1. Add Language (string Name) {}
    1. Add Language ( ) { }
    1. Add Language (String Name) { }
    1. Allow the compiler to add a default constructor.
Reveal answer Fill a bubble to check yourself
A,D Correct answer