0

programming languages Online Quiz - 21

Description: programming languages Online Quiz - 21
Number of Questions: 20
Created by:
Tags: programming languages
Attempted 0/20 Correct 0 Score 0
  1. incSize(int minCapacity)

  2. ensureCapacity(int minCapacity)

  3. incCapicity(int minCapacity)

  4. All of the Above


Correct Option: B
  1. Returns String

  2. Returns an Array

  3. Returns a shallow copy of this ArrayList instance

  4. Returns Void


Correct Option: C
  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

Which of the following statements are true

  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
  1. Constructor

  2. Destructor

  3. Overloaded assignment operator

  4. Default Copy Constructor


Correct Option: A,B,C,D
- Hide questions