0

programming languages Online Quiz - 288

Description: programming languages Online Quiz - 288
Number of Questions: 20
Created by:
Tags: programming languages
Attempted 0/20 Correct 0 Score 0

int *p(char *a)

  1. p is a function that returns a pointer to an integer quantity

  2. p is a function that accepts an argument which is a pointer to a character and returns a pointer to 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. None of the above


Correct Option: B
  1. p is a function that accepts an argument which is a pointer to a character and returns a pointer to a 10 element integer array

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

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

  4. None of the above


Correct Option: A

Different Return type is sufficient to overload two C++ functions

  1. True

  2. False


Correct Option: B

The precedence of the operators can be changed by operator overloading

  1. True

  2. False


Correct Option: B

Which type script gets used in Siebel for coding.

  1. eScript(Same as Java Script)

  2. VB Script

  3. Shell Script

  4. Option 1 & 2 both


Correct Option: D

What is the output (Assuming written inside main) ? String s1 = new String("gopal"); String s2 = s1.replace('m','i'); s1.concat("Poddar"); System.out.println(s1); System.out.println((s1+s2).charAt(5));

  1. Compile error

  2. gopalPoddar o

  3. gopalPoddar i

  4. gopal i


Correct Option: C

Is the statement true"interface contains variables that must be static and final; abstract class may contain non-final and final variables."

  1. True

  2. False

  3. Neither true nor false

  4. No idea


Correct Option: A

Which of them is false about a Static data member within a class

  1. A single copy of the data member exists

  2. The data member is initialised to zero before the first object is created

  3. Requires a global definition

  4. Storage is allocated to the static data member on declaration


Correct Option: D

An array of references can be created

  1. True

  2. False


Correct Option: B

Throwable is the base class for Error and Exception?

  1. True

  2. False


Correct Option: B

"This" keyword in java refer to current object?

  1. True

  2. False


Correct Option: B

is JVM a interpreter?

  1. True

  2. False


Correct Option: B

Final class can be overridden. This statement is…

  1. True

  2. False


Correct Option: B
- Hide questions