0

web technology Online Quiz - 144

Description: web technology Online Quiz - 144
Number of Questions: 20
Created by:
Tags: web technology
Attempted 0/20 Correct 0 Score 0

Which is the correct way to create a ListGrid ?

  1. isc.ListGrid.create({ ID:"test", left:50, top:150, width:600, height:400, });

  2. isc.ListGrid.create({ ID:"test"; left:50; top:150; width:600;height:400; });

  3. isc.ListGrid.create({ ID:"test", left:50, top:150, width:600, height:400 });

  4. None


Correct Option: C

What is the output for the below code ? class A implements Runnable{ public void run(){ System.out.println(Thread.currentThread().getName()); } } public class Test { public static void main(String... args) { A a = new A(); Thread t = new Thread(a); Thread t1 = new Thread(a); t.setName("t"); t1.setName("t1"); t.setPriority(10); t1.setPriority(-3); t.start(); t1.start(); } }

  1. t t1

  2. t1 t

  3. t t

  4. Compilation succeed but Runtime Exception


Correct Option: D

What is the output for the below code ? class A implements Runnable{ public void run(){ System.out.println(Thread.currentThread().getName()); } } public class Test { public static void main(String... args) { A a = new A(); Thread t = new Thread(a); t.setName("good"); t.start(); } }

  1. good

  2. Compilation succeed but Runtime Exception

  3. null

  4. Compilation fails with an error at line 5


Correct Option: A

What is the output for the below code ? public class Test { public static void main(String[] args) { Boolean expr = true; if (expr) { System.out.println("true"); } else { System.out.println("false"); } } }

  1. false

  2. Compile Error - can't use Boolean object in if().

  3. true

  4. Compile Properly but Runtime Exception.


Correct Option: C

What is the output for the below code ? public class Test { public static void main(String[] args) { List list = new ArrayList(); list.add(0, 59); int total = list.get(0); System.out.println(total); } }

  1. Compile Properly but Runtime Exception

  2. Compile time error, because you have to do int total = ((Integer)(list.get(0))).intValue();

  3. 59

  4. Compile time error, because can't add primitive type in List.


Correct Option: C

What is the output for the below code ? public class Test { public static void main(String[] args) { Integer i = null; int j = i; System.out.println(j); } }

  1. NullPointerException

  2. 0

  3. Complie with Error

  4. Null


Correct Option: A
  1. Simple Object Access Protocol

  2. Simplified Object Access Protocol

  3. Simplified Object Access Program

  4. Simple Or Advanced Protocol


Correct Option: A
  1. dependent

  2. sometimes dependent

  3. independent

  4. sometimes independent


Correct Option: C
  1. December 1998

  2. December 2001

  3. November 1998

  4. November 2001


Correct Option: D
  1. An optional tailer element that contains tailer information

  2. An optional Header element that contains header information

  3. A required Body element that contains call and response information

  4. A required Envelope element that identifies the XML document as a SOAP message


Correct Option: A

A SOAP message must always have an Envelope element associated with the "http://www.w3.org/2001/12/soap-envelope" namespace.

  1. False

  2. True

  3. Not always true

  4. none of these


Correct Option: B

The SOAP ________ attribute is used to define the data types used in the document.

  1. Style

  2. codingStyle

  3. encodingStyle

  4. Encoding


Correct Option: C

What is the right syntax of the actor attribute ?

  1. soap:actor="URI"

  2. SOAP:actor="URI"

  3. soap:actor='URI';

  4. actor="URI"


Correct Option: A

While Developing a Cognos BI Application what product you would use to model Metadata?

  1. Cognos Datamanager

  2. Framework Manager

  3. Cognos Metrics Manager

  4. Cognos Metric Designer


Correct Option: B

Who amoung the following is "Vice President & Head, Global HR"

  1. Phiroz A Vandrevala

  2. Ajoy Mukherjee

  3. Laura Cha

  4. S Mahalingam


Correct Option: B

Who amoung the following is the "Chief Executive Officor & Managing Director"

  1. Ratan Tata

  2. S. Ramadorai

  3. N. Chandrasekaran

  4. s. Mahalingam


Correct Option: C

Who among the following is "Vice Chairman" of TCS

  1. S. ramadorai

  2. Ratan Tata

  3. Laura Cha

  4. Phiroz A Vandrevala


Correct Option: A
- Hide questions