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

int (*p(char *a))[10]

  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

The compiler uses it to internally reference the data members of a particular object

  1. vtable entry

  2. this pointer

  3. Constructors

  4. default value


Correct Option: B

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

  1. True

  2. False


Correct Option: B

An operator overloading member function requires no arguments for a unary operator

  1. True

  2. False


Correct Option: A

Which of the operators can be overloaded

  1. ::

  2. :?

  3. [ ]

  4. .


Correct Option: C

The precedence of the operators can be changed by operator overloading

  1. True

  2. False


Correct Option: B

Which one does not have a valueOf(String) method ?

  1. )Integer

  2. Boolean

  3. Character

  4. Long


Correct Option: C

The initial value of an instance variable of type String which is not explicitly initialized in the program is --.

  1. null

  2. ""

  3. NULL

  4. 0


Correct Option: A

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

The CURD(Credential) rights on Siebel Applet/Application, which are those Applet Property get used in Siebel for CURD rights.

  1. No Insert

  2. No Delete

  3. No Update

  4. All of above


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

Is HTML page a web component?

  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