Java Web Services and OOP Fundamentals

Test your knowledge of Java web services (SOAP, UDDI, WSDL, XML-RPC, REST) and core object-oriented programming concepts including classes, objects, methods, and polymorphism.

25 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Which of the following is a directory service where enterprises register and search for web services?

  1. WSDL
  2. UDDI
  3. Supporting protocols of SOAP
  4. None of the above
Question 2 Multiple Choice (Single Answer)

Why SOAP is used as a protocol for accessing a web service?

  1. SOAP platform and language independent, allows to get around firewalls
  2. SOAP is based on HTML
  3. SOAP is designed to communicate through LAN
  4. All of the above
Question 3 Multiple Choice (Single Answer)

A windows application creation or a web application creation is mandatory in order to test a web service.

  1. True
  2. False
Question 4 Multiple Choice (Single Answer)

In accessing a web service through 'synchronous call',

  1. application can make a call to the web service and then continue to perform the needed task
  2. a service notifies the application when it is ready
  3. application has to wait until execution is completed
  4. None of the above
Question 5 Multiple Choice (Single Answer)

Which of the following is used to perform remote procedure calls in web services?

  1. HTTP-RPC
  2. XML-HTTP
  3. XML-RPC
  4. SOAP-XML
Question 6 Multiple Choice (Single Answer)

Service Transport, XML Messaging, Service Description and Service Discovery are four layers of

  1. web service implementing client components
  2. web service protocol stack
  3. web service supporting repository
  4. web service supporting request and response components
Question 7 Multiple Choice (Single Answer)

Which of the following three kinds of data that web services have?

  1. shared data, processed data, form data
  2. shared data, pre-session data and temporary data
  3. shared data, post-session data and temporary data
  4. shared data, pre-session data and permanent data
Question 8 Multiple Choice (Single Answer)

The core components, registry and repository, business processes, trading partner agreements are defined in _____________ standards of web services

  1. UDDI
  2. SOAP
  3. WSDL
  4. ebXML (e-business XML)
Question 9 Multiple Choice (Single Answer)

Which of the following is an open source SOAP server and client?

  1. Apache ANT
  2. Apache Tomcat
  3. Jakarta Struts
  4. Apache Axis
Question 10 Multiple Choice (Single Answer)

Can two different programming languages be mixed in a single ASMX file?

  1. True
  2. False
Question 11 Multiple Choice (Single Answer)

What is new about web services?

  1. XML - a common language for describing RMC
  2. XML - a common language for describing web services
  3. XML - a common language for describing web service directories
  4. All of the above
Question 12 Multiple Choice (Single Answer)

What are the possible pivot-handlers in java webservices?

  1. java:RPC, java:EJB
  2. java:WSDL, java:UDDI
  3. java:eb-xml, java:SOAP
  4. None of the above
Question 13 Multiple Choice (Single Answer)

Web services are the amalgamation of

  1. XML and SOAP
  2. XML and HTTP
  3. WSDL and UDDI
  4. eb-XML and WSDL
Question 14 Multiple Choice (Single Answer)

Web Services attempts to describe architecture based on

  1. Representational State Transfer (REST)
  2. Remote Procedure Calls
  3. Reusable Application Components
  4. None of the above
Question 15 Multiple Choice (Single Answer)

Registry services such as managing information about service providers, service implementations and service metadata is provided by

  1. WSDL
  2. UDDI
  3. REST
  4. SPARQL
Question 16 Multiple Choice (Single Answer)

Which of the following statements is false about objects?

  1. An instance of a class is an object
  2. Objects can access both static and instance data
  3. Object is the super class of all other classes
  4. Objects do not permit encapsulation
Question 17 Multiple Choice (Single Answer)

Which methods can access to private attributes of a class?

  1. Only Static methods of the same class
  2. Only instances of the same class
  3. Only methods those defined in the same class
  4. Only classes available in the same package.
Question 18 Multiple Choice (Single Answer)

Which of the following statements about the Java language is true?

  1. Both procedural and OOP are supported in Java.
  2. Java supports only procedural approach towards programming.
  3. Java supports only OOP approach.
  4. None of the above.
Question 19 Multiple Choice (Single Answer)

A class can have many methods with the same name as long as the number of parameters or type of parameters is different. This OOP concept is known as

  1. Method Invocating
  2. Method Overriding
  3. Method Labeling
  4. Method Overloading
Question 20 Multiple Choice (Single Answer)

A lower precision can be assigned to a higher precision value in Java. For example a byte type data can be assigned to int type.

  1. True
  2. False
Question 21 Multiple Choice (Single Answer)

Which of the following is considered as a blue print that defines the variables and methods common to all of its objects of a specific kind?

  1. Object
  2. Class
  3. Method
  4. Real data types
Question 22 Multiple Choice (Single Answer)

What is an aggregate object?

  1. An object with only primitive attributes
  2. An instance of a class which has only static methods
  3. An instance which has other objects
  4. None of the above
Question 23 Multiple Choice (Single Answer)

Assume that File is an abstract class and has toFile() method. ImageFile and BinaryFile are concrete classes of the abstract class File.
Also, assume that the method toFile() is implemented in both Binary File and Image File. A File references an ImageFile object in memory and the toFile method is called, which implementation method will be called?

  1. Binary File
  2. Image File
  3. Both File and Binary Files
  4. None of the above
Question 24 Multiple Choice (Single Answer)

What are the two parts of a value of type double?

  1. Significant Digits, Exponent
  2. Length, Denominator
  3. Mode, Numerator
  4. None of these
Question 25 Multiple Choice (Single Answer)

What is the meaning of the return data type void?

  1. An empty memory space is returned so that the developers can utilize it.
  2. void returns no data type.
  3. void is not supported in Java
  4. None of the above