Tag: programming languages

Questions Related to programming languages

  1. $$variablename

  2. @$variablename

  3. $@variablename

  4. %$variablename


Correct Option: A

Forward declaration of subroutine in following way

  1. sub test;

  2. sub test {};

  3. sub test[];

  4. none of the above


Correct Option: A
  1. delete

  2. unlink

  3. rename

  4. deletefile


Correct Option: B

public String makinStrings() { 12. String s = “Fred”; 13. s = s + “47”; 14. s = s.substring(2, 5); 15. s = s.toUpperCase(); 16. return s.toString(); 17. } How many String objects will be created when this method is invoked?

  1. 1

  2. 2

  3. 3

  4. 5


Correct Option: D