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.
Questions
Which of the following is a directory service where enterprises register and search for web services?
- WSDL
- UDDI
- Supporting protocols of SOAP
- None of the above
Why SOAP is used as a protocol for accessing a web service?
- SOAP platform and language independent, allows to get around firewalls
- SOAP is based on HTML
- SOAP is designed to communicate through LAN
- All of the above
A windows application creation or a web application creation is mandatory in order to test a web service.
- True
- False
In accessing a web service through 'synchronous call',
- application can make a call to the web service and then continue to perform the needed task
- a service notifies the application when it is ready
- application has to wait until execution is completed
- None of the above
Which of the following is used to perform remote procedure calls in web services?
- HTTP-RPC
- XML-HTTP
- XML-RPC
- SOAP-XML
Service Transport, XML Messaging, Service Description and Service Discovery are four layers of
- web service implementing client components
- web service protocol stack
- web service supporting repository
- web service supporting request and response components
Which of the following three kinds of data that web services have?
- shared data, processed data, form data
- shared data, pre-session data and temporary data
- shared data, post-session data and temporary data
- shared data, pre-session data and permanent data
The core components, registry and repository, business processes, trading partner agreements are defined in _____________ standards of web services
- UDDI
- SOAP
- WSDL
- ebXML (e-business XML)
Which of the following is an open source SOAP server and client?
- Apache ANT
- Apache Tomcat
- Jakarta Struts
- Apache Axis
Can two different programming languages be mixed in a single ASMX file?
- True
- False
What is new about web services?
- XML - a common language for describing RMC
- XML - a common language for describing web services
- XML - a common language for describing web service directories
- All of the above
What are the possible pivot-handlers in java webservices?
- java:RPC, java:EJB
- java:WSDL, java:UDDI
- java:eb-xml, java:SOAP
- None of the above
Web services are the amalgamation of
- XML and SOAP
- XML and HTTP
- WSDL and UDDI
- eb-XML and WSDL
Web Services attempts to describe architecture based on
- Representational State Transfer (REST)
- Remote Procedure Calls
- Reusable Application Components
- None of the above
Registry services such as managing information about service providers, service implementations and service metadata is provided by
- WSDL
- UDDI
- REST
- SPARQL
Which of the following statements is false about objects?
- An instance of a class is an object
- Objects can access both static and instance data
- Object is the super class of all other classes
- Objects do not permit encapsulation
Which methods can access to private attributes of a class?
- Only Static methods of the same class
- Only instances of the same class
- Only methods those defined in the same class
- Only classes available in the same package.
Which of the following statements about the Java language is true?
- Both procedural and OOP are supported in Java.
- Java supports only procedural approach towards programming.
- Java supports only OOP approach.
- None of the above.
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
- Method Invocating
- Method Overriding
- Method Labeling
- Method Overloading
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.
- True
- False
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?
- Object
- Class
- Method
- Real data types
What is an aggregate object?
- An object with only primitive attributes
- An instance of a class which has only static methods
- An instance which has other objects
- None of the above
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?
- Binary File
- Image File
- Both File and Binary Files
- None of the above
What are the two parts of a value of type double?
- Significant Digits, Exponent
- Length, Denominator
- Mode, Numerator
- None of these
What is the meaning of the return data type void?
- An empty memory space is returned so that the developers can utilize it.
- void returns no data type.
- void is not supported in Java
- None of the above