Tag: programming languages

Questions Related to 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 { }

Correct Option: B
  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.


Correct Option: A
    1. static String [50] sSyntax = new String[];
    1. String [] sSyntax = new String[50];
    1. static String [] sSyntax = new String[50];
    1. static string [] sSyntax = new string[50];

Correct Option: C
    1. The quotes should not be around false.
    1. New should be after Boolean.
    1. A boolean is expected not a Boolean.
    1. The Semi-colon should not be used.

Correct Option: C
  1. lines2list

  2. list2lines

  3. select

  4. showbind


Correct Option: A,C