Tag: programming languages

Questions Related to programming languages

Multiple choice technology programming languages
  1. p is a pointer to pointer to integer

  2. p is a pointer to a function that accepts an argument which is a pointer to a character and returns an integer quantity

  3. p is a function that accepts an argument which is a pointer to a character and returns an integer quantity

  4. p is a function that accepts an argument which is a pointer to a character and returns a pointer to an integer quantity

Reveal answer Fill a bubble to check yourself
C Correct answer
Multiple choice technology programming languages
  1. The class does not compile because the top level class cannot be protected.

  2. The program prints "abc"

  3. The program prints "abcabc"

  4. The program does not compile because statement "test = test + test" is illegal.

Reveal answer Fill a bubble to check yourself
A Correct answer
Multiple choice technology programming languages
  1. A static method may be invoked before even a single instance of the class is constructed.

  2. A static method cannot access non-static methods of the class.

  3. Abstract modifier can appear before a class or a method but not before a variable.

  4. final modifier can appear before a class or a variable but not before a method.

  5. Synchronized modifier may appear before a method or a variable but not before a class.

Reveal answer Fill a bubble to check yourself
A,B,C Correct answer
Multiple choice technology programming languages
  1. It is possible for a program to free memory at a given time.

  2. Garbage Collection feature of Java ensures that the program never runs out of memory.

  3. It is possible for a program to make an object available for Garbage Collection.

  4. The finalize method of an object is invoked before garbage collection is performed on the object.

Reveal answer Fill a bubble to check yourself
C,D Correct answer
Multiple choice technology programming languages
  1. Prints: 1111111,177,127,7f

  2. Prints: 11111111,377,256,ff

  3. Compile-time error

  4. Run-time error

  5. None of the above

Reveal answer Fill a bubble to check yourself
A Correct answer