Tag: programming languages

Questions Related to programming languages

  1. [11]

  2. syntax error

  3. [1,1,1]

  4. runtime error


Correct Option: C
  1. x[0][0]

  2. Syntax error at line 1

  3. Syntax error at line 2

  4. runtime error


Correct Option: A
  1. error

  2. 5

  3. garbage number

  4. 3


Correct Option: B
  1. error

  2. [1,2,3,4,'sagar',5]

  3. [1,2,3,'sagar']

  4. none


Correct Option: B
  1. A circle at (100, 100) with radius of 44

  2. A circle at (100, 44) with radius of 100

  3. A circle at (100, 44) with radius of 44

  4. The code does not compile


Correct Option: D
  1. When you construct an instance of File, if you do not use the filenaming semantics of the local machine, the constructor will throw an IOException.

  2. When you construct an instance of File, if the corresponding file does not exist on the local file system, one will be created.

  3. When an instance of File is garbage collected, the corresponding file on the local file system is deleted.

  4. None of the above.


Correct Option: A,B,C
  1. 1alpha

  2. _abcd

  3. xy+abc

  4. transient

  5. account-num

  6. very_long_name


Correct Option: A,C,D,E