Tag: programming languages

Questions Related to programming languages

  1. conditional statement

  2. assignment statement

  3. looping statement

  4. None of the Above


Correct Option: B

In C++ the function that is used to release the block of memory already used is

  1. release

  2. deallocate

  3. delete

  4. all the above


Correct Option: C
  1. One

  2. Zero

  3. Two

  4. None of the Above


Correct Option: B
  1. Data Hiding

  2. Encapsulation

  3. Operator Overloading

  4. None Of the Above


Correct Option: C
  1. LinkedList l=new LinkedList();

  2. List l=new LinkedList();

  3. LinkedList l=new LinkedList();

  4. LinkedList l=new LinkedList()

  5. List l=new LinkedList();


Correct Option: B,C
  1. numeric will be represented by blank and character will be represented by .

  2. both character and numeric will be represented as blanks

  3. numeric will be represented by . and character will be represented by blank

  4. numeric will be represented by . and character will be represented by NULL values


Correct Option: C

class A{ int b=10; private A(){ this.b=7; } int f(){ return b; } } class B extends class A{ int b; } class Test{ public static void main(String args[]){ A a=new B(); System.out.println(a.f()); } }

  1. Does not compile

  2. prints 0

  3. prints 10

  4. prints 7


Correct Option: A