Tag: programming languages

Questions Related to programming languages

  1. Yes, always it should implement

  2. No, Never

  3. No, Not when A is abstract

  4. None of the above


Correct Option: C

A class cannot be declared

  1. volatile

  2. private

  3. default

  4. static


Correct Option: B
  1. Infinite loop

  2. Until Stack Underflow

  3. Until Machine Hangs

  4. Stack Overflow


Correct Option: D

Complexity of Quick Sort????(avg)

  1. O(n2)

  2. O(log n)

  3. O(nlogn)

  4. O(n2 logn)


Correct Option: C
  1. O(n)

  2. O(log n)

  3. O(n^2)

  4. O(n log n)


Correct Option: C
  1. double is primitive datatypes. Double is a class

  2. Both are primitive dataType

  3. Both are class type

  4. double is class and Double is primitive Type


Correct Option: A