Blog about Programming Languages & Coding

Blog about Programming Languages & Coding
Contents for Computer Science, IT, B.Sc. CS & IT, M.Sc. CS & IT, MCA, BE CS & IT, ME CS & IT , Interview Questions, Books and Online Course Recommendations from Udemy, Coursera, etc

Cloud Computing MCQs Part-2

 Cloud Computing MCQs(Web Services, JAX-WS,REST)



 

1

 What is the purpose of XML in a web service?

a) A web services takes the help of XML to tag the data, format the data.

b)  A web service takes the help of XML to transfer a message.

c) A web service takes the help of XML to describe the availability of service.

d) None of the above.

ANS)A web services takes the help of XML to tag the data, format the data.

2

WSDL stands for?

a)    a) Web Services Description Language.

b)    b)  Web Services Direction Language.

c)    c) Wired Services Description Language.

d)    d) Web Services Dialect Language.

ANS) Web Services Description Language.

3

 Which of the following is correct about UDDI?

a)    a) UDDI is seen with SOAP and WSDL as one of the three foundation standards of web services.

b)    b) UDDI is an open industry initiative enabling businesses to discover each other and define how they interact over the Internet.

c)    c) Both of the above.

d)    d) None of the above.

ANS) Both of the above.

4

 The Service Transport layer is responsible for transporting messages between applications.

A)   a)  True

b)  False

ANS) True

5

__________ layer is responsible for describing the public interface to a specific web service.

a) Service Discovery

b)XML Messaging

c)Service Description

d)None of the above

ANS)Service Description

6

 BEEP stands for______

a)Blocks Extensible Enhancement  Protocol

b)Blocks Extend Exchange Protocol

c)Blocks Exchange Extensible Protocol

d)Blocks Extensible Exchange Protocol

ANS)Blocks Extensible Exchange Protocol

7

________ layer is responsible for actually transporting XML messages between two computers.

a) Service Protocol

b)Service Messaging

c)Service Transport

d)Service Description

ANS)Service Transport

8

Which of the following  is correct about XML-RPC

a)Requests are encoded in XML and sent via HTTP POST.

b)XML-RPC is platform-independent.

c)XML-RPC is the easiest way to get started with web services.

d)All of the above

ANS)All of the above

9

 _________ is a simple protocol that uses XML messages to perform RPCs.

a)SOAP

b)XML

c)XML-RPC

d)BEEP

ANS)XML-RPC

10

Which of the following statements  is correct about SOAP.

a)SOAP is an XML-based protocol for exchanging information between computers.

b)SOAP is an XML-based language for describing web services and how to access them.

c)Both a and b

d)None of the above

ANS)SOAP is an XML-based protocol for exchanging information between computers.

11

 UDDI stands for __________.

a) Universal Description, Discovery, and Integration.

b) Uniform Description, Discovery, and Integration.

c) Universal Description, Discovery, and Interference.

d) Unique Description, Discovery, and Integration.

ANS)Universal Description, Discovery, and Integration.

12

Three specific security issues with web services.

a)Confidentiality,Integration,Network Security.

b)Consistency,Authentication,Network Security.

c)Confidentiality,Authentication,Network Security.

d)None of the above.

ANS)Confidentiality,Authentication,Network Security.

13

Three major roles within the web service architecture.

a)Service Discovery,Service Requestor,Service Registry.

b)Service Provider,Service Requestor,Service Registry.

c)Service Provider,Service Messaging,Service Registry.

d)Service Provider,Service Requestor,Service Description.

ANS)Service Provider,Service Requestor,Service Registry.

14

_________  is an XML-based standard for describing, publishing, and finding web services.

a)SOAP

b)HTTP

c)WSDL

d)UDDI

ANS)UDDI

15

 Which of the following is true about Web service?

a) It is available over the Internet or private (intranet) networks.

b) It uses a standardized XML messaging system.

c)It is not tied to any one operating system or programming language.

d) All of the above.

ANS)All of the above.

16

Which layer of the TCP / IP stack corresponds to the OSI model transport layer?

a)Host to host

b)Application

c)Internet

d)Network Access

ANS)Host to Host

17

__________ layer of OSI model is responsible for moving the packets from source to destination.

a)Transport

b)Application

c)Data link

d)Network

ANS)Network

18

Which of the following statement  is correct about Presentation layer.

a)This layer is also known as the syntax layer.

b)It acts as a data translator for a network.

c)This layer is a part of the operating system that converts the data from one presentation format to another format.

d)All of the above

ANS)All of the above

19

Which layer is used to link the network support layers and user support layers?

a) Session layer

b) Data link layer

c) Transport layer

d) Network layer

ANS)Transport layer

20

TCP/IP model does not have ______ layer but OSI model have this layer.

a) Session layer

b) Transport layer

c) Application layer

d) Network layer

ANS)Session layer

21

Which layer is responsible for process to process delivery in a general network model?

a) Network layer

b) Transport layer

c) Session layer

d) Data link layer

ANS)Transport layer

22

Which address is used to identify a process on a host by the transport layer?

a) Physical address

b) Logical address

c) Port address

d) Specific address

ANS)Port address

23

Transmission data rate is decided by ____________

a) Network layer

b) Physical layer

c) Data link layer

d) Transport layer

ANS)Physical layer

24

IGMP stands for________

a) Internet Group Mail Protocol.

b) Internet Group Message Protocol.

c) Instant Group Message Protocol.

d)None of the above

ANS)Internet Group Message Protocol.

25

_______ protocol is used to get the physical address from the IP/logical address.

a)ICMP

b)IGMP

c)RARP

d)ARP

ANS)ARP

26

A typical __________ program obtains a remote reference to one or more remote objects on a server and then invokes methods on them.

a) Server

b) Client

c) Thread

d) Concurrent

ANS)Client

27

A remote object is an object whose method can be invoked from another virtual environment.

a) True

b) False

ANS)True

28

RMI stands for?

a) Remote Mail Invocation

b) Remote Message Invocation

c) Remaining Method Invocation

d) Remote Method Invocation

ANS)Remote Method Invocation

29

A middleware layer between the stub skeleton and transport.

a) Remote layer

b) Instruction layer

c) Reference layer

d) Remote reference layer

ANS)Remote reference layer

30

A software that lies between the OS and the applications running on it.

a) Firmware

b) Middleware

c) Utility Software

d) Application Software

ANS) Middleware

31

What is the other name for object middleware?

a) Object request interface

b) Object enabled interface

c) Object Request broker

d) Object enabled broker

ANS)Object Request broker

32

Which of the following are the major components of message in Messaging based interprocess communication.

a)Message Header,Message Metadata, Message body

b)Message Header,Message Subject, Message body

c)Message Header,Message Metadata, Message block

d)None of the Above

ANS)Message Header,Message Metadata, Message body

33

 ____________ messaging is generally implemented using message queue technique.

a) Synchronous

b) Asynchronous

c) Socket based

d)Interprocess

ANS)Asynchronous

34

MOM stands for______

a) Message Oriented Middleware

b) Mails Oriented Middleware

c) Middleware of Messages

d) Main Object Middleware

ANS) Message Oriented Middleware

35

RPC provides a  _________ on the client side, a separate one for each remote procedure.

a) Stub

b) Identifier

c) Name

d) Process identifier

ANS)Stub

36

Remote Procedure Calls are used ____________

a) for communication between two processes remotely different from each other on the same system

b) for communication between two processes on the same system

c) for communication between two processes on separate systems

d) none of the above

ANS)for communication between two processes on separate systems

37

 __________ and _________ are the two different kinds of classes used in RMI

a) Remote Classes,Synchronous Classes

b) Request Classes,Serializable Classes

c) Reference Classes,Serializable Classes

d) Remote Classes,Serializable Classes

ANS)Remote Classes,Serializable Classes

38

JMS supports messages that contain _________ Java objects.

a) nonserialized

b) serialized

c) dynamic

d) None of the above

ANS)serialized

39

Which are JMS messaging models?

a)Publish-and-subscribe ,Point-to-point

b)Store-and-forward,Point-to-point

c)Store-and-forward,Peer-to-peer

d)None of the above

ANS)Publish-and-subscribe ,Point-to-point

40

A JMS message is composed of __________.

a)Header,Subject,Body

b)Header,Properties,Block

c)Header,Property,Footer

d)Header,Properties,Body

ANS)Header,Properties,Body

41

What is an advantage of XML compared to HTML?

a) XML works on more platforms.

b) XML is suited to using Web pages as front ends to databases.

c) XML was designed for portable phones.

d) XML is simpler to learn than HTML.

Ans: XML is suited to using Web pages as front ends to databases.

42

What is the correct syntax of the declaration which defines the XML version?

a) <xml version="A.0" />

b) <?xml version="A.0"?>

c) <?xml version="A.0" />

d) None of the above

ANS)<?xml version="A.0"?>

43

Which are the ways used for describing XML data.

a)XML uses a DTD to describe the data

b) XML uses XSL to describe data

c) XML uses a description node to describe data

d) Both A and C

ANS) Both A and C

44

XML uses the features of________

a) HTML

b) XHTML

c) VML

d) SGML

ANS) SGML

45

To use XSLT in an XML system

a) the input and output of the XSLT processor must be unparsed XML documents.

b) the input and output of the XSLT processor must be a hierarchical tree representing an XML document.

c) the XSLT processor must be called from a web agent.

d) the XSLT processor must be given the DTD as well as the XML document instance.

ANS)the input and output of the XSLT processor must be a hierarchical tree representing an XML document.

46

XML validated against a __________ is considered as Valid XML.

a)JQUERY

b)PARSER

c)DTD

d)CFG

ANS)DTD

47

Complex services exhibit coarse-grained functionality and are

A) stateless                                          B) stateful                                        C)  both A and B                                 D) None of the above

48

 SOAP is

A) Simple Object Active Protocol         B) Sample Object Access Protocol

C) Sample Object Active Protocol            D) Simple Object Access Protocol

49

 If services can be invoked repeatedly without having to maintain context or state they are called.

A)   Stateless                                B) Loosely coupled

C)  Stateful                                     D) Tightly coupled

50

Informational services are

A) stateless                                    B) stateful                                                              C)  both A and B                            D) None of the above

 

51

Services that may require their context to be preserved from one invocation to the next are called

A) Loosely coupled                                   B) Stateless

C)   stateful                                   D) Tightly coupled

52

Always end your URI (or URL) with a ________ to avoid an extra trip to the server to determine that it is a site rather than a directory.

 a.       Hyphen

b.       Backslash

c.        Double slash

 d.        Slash

 

53

 Which is the default Transfer mode in WCF?

a.         Streamed                                           c.             StreamedRequest

 b.        Buffered                                             d.           StreamedResponse

54

  Which of the following binding supports Communication with callback?

 a.        wsHttpBinding                                    b.            wsDualHttpBinding

 c.         Both a and b                                       d.            None

 

55

Which namespace is used in WCF for data serialization?

 a.        System.Xml.Serialization                b.  System.Runtime.Serialization

c.          System.ServiceModel                      d.  None

56

 Which of the following WCF binding does not support reliable session?

 a.        wsHttpBinding                             b.       netTcpBinding

 c.         basicHttpBinding                       d.      wsDualHttpBinding

 

57

 WCF attribute used to serialize Data Contract member variables?

a.         Serialize                            b.     DataMember

c.          Data                                  d.     None

 

58

 WCF Contract used to send information in soap message header?

a.         DataContract                     b.    ServiceContract

c.          MessageContract            d.    None

 

59

 WCF supports Operation overloading by setting following operation contract attribute?

  1.  Action                              b.      Name  

      c.   Overload                           d.     None of the above

60

 9. WCF attribute to define REST full Service?

 a.        HttpGet                            b.      WebGet

 c.         Rest                                 d.      None of the above

61

 Which contract supports Transaction Flow?

a.         Service                            b.       Operation

c.          Message                         d.       Data

62

 Which of the following is NOT true?

 A)       A WCF Service can be consumed by Windows applications

 B)        A WCF Service can be consumed by Web applications

 C)       A WCF Service can perform calculations

 D)       A WCF Service cannot return a dataset

WCF services can communicate with _______.

                         A)       all programming languages

                         B)        XML

                         C)       only the languages included with Visual Studio .NET

                         D)       multiple platforms and multiple language

63

 The standard method for storing data that can be transferred easily from one machine or platform to another is _______.

                         A)       XML

                         B)        SOAP

                         C)       WSDL

                         D)       WCF

64

 Data that is in _______ format can pass through many firewalls that _______ cannot penetrate.

                         A)       binary, text

                         B)       text, binary

                         C)       SOAP, WCF

                         D)       WCF, SOAP

 

65

 One of the advantages of using _______ is that data are transmitted in a text format rather than a binary format.

                         A)       XML

                         B)        SOAP

                         C)       WSDL

                         D)       WCF

 

66

 The information about the names of the methods, the parameters that can be passed, and the values that are returned from the functions is controlled in some Web services by a description specified in _______.

                         A)       XML

                         B)       SOAP

                         C)       WSDL

                         D)       WCF

 

67

  A resource on the Web is uniquely identified by its URI, which means _______.

                         A)       Uniform Resource Identifier

                         B)        Universal Registered Identifier

                         C)       Uniform Registered Identifier

                         D)       Universal Resource Identifier

 

68

To add a WCF Service, select the solution name in the Solution Explorer and select _______ from File menu.

                         A)       Add / New Solution

                         B)       Add / New Web Site

                         C)       Add / New Service

                         D)       Add / New Library

 

69

 You have created a new service based on Windows Communication Foundation and also a client application to test the service. You want add an endpoint in the web.config file of the client application to use the new service. Which values should you include in you service element of the web.config file?

A.         Address

B.         Contract

C.         Binding

D.         All of these

 

70

  A service contract specifies what an endpoint communicates to the outside world. At a more concrete level, it is a statement about a set of specific messages organized into basic message exchange patterns (MEPs), such as request/reply, one-way, and duplex. Which of the following is NOT part of the Service Contract specification:

A.         The data types of messages

B.         The specific protocols and serialization formats

C.         The location of the operations

D.         The frequency of messages per second

 

71

 Services are groups of operations. To create a service contract you usually model operations and specify their grouping. In Windows Communication Foundation (WCF) applications, developers define the operations by creating a method and marking it with the which attribute?

A.         ServiceContractAttribute

B.         DataMemberAttribute

C.         DataContractAttribute

D.         OperationContractAttribute

 

72

 

You’ve created a new class in your .NET project that contains a wide variety of operations grouped together to form part of a Server Contract. You now need to add an attribute to the class to define it as a service contract. Which attribute should you use?

A.         OperationContractAttribute

B.         DataMemberAttribute

C.         DataContractAttribute

D.         ServiceContractAttribute

 

73

 Which of the following is TRUE regarding service operations and references to objects?

A.         Objects must be serializable

B.         You can’t return values from service operations

C.         Objects are passed as references

D.         You can’t pass parameters to service operations

 

74

 The signature of a service operation dictates a certain underlying message exchange pattern (MEP) that can support the data transfer and the features an operation requires. You want to adopt a pattern that supports the sending and receiving of messages by both the service and client. Which patter should you choose?

A.         one-way

B.         none of these

C.         request/reply

D.         duplex

 

75

 Study the following line of code: OperationContext.Current.GetCallbackChannel(); The ICalendarDuplexCallback interface is defined as the CallbackContract property in the Service Contract. In which class should you use this line of code?

A.         Client

B.         You should never use this

C.         Both

D.         Service

 

76

 Which of the following is FALSE regarding the WSHttpBinding class?

A.         Provides WS-Addressing

B.         Provides un-encrypted messages by default

C.         Provides reliable messaging

D.         Provides transactions

 

77

 In Windows Communication Foundation (WCF) applications, which of the following is FALSE regarding Sessions?

A.         Messages delivered during a session are processed in the order in which they are received

B.         They are explicitly initiated and terminated by the receiving application

C.         There is no general data store associated with a WCF session

D.         Sessions correlate a group of messages into a conversation

 

78

 Which class in WCF represents the unit of communication between endpoints in a distributed environment?

A.         RequestContext

B.         Message

C.         Binding

D.         ChannelBase

 

79

 When a new project is added to a WCF Service solution, the projects are saved independently.

 A)       True

 B)        False

 

80

 To rename a Web Service you need to change only the name in the Solution Explorer.

 A)       True

 B)       False

 

 

81

 The transport protocol used by SOAP is HTTP.

 A)       True

 B)        False

 

82

 For technical specifications, the industry standard term URL is preferred to URI.

 A)       True

 B)       False

 

83

 WSDL contains information about the names of the methods, the parameters that can be passed, and the values that are returned from the functions.

 A)       True

 B)        False

 

84

 Data that is in binary format can pass through any firewall.

 A)       True

 B)       False

 

85

 An endpoint indicates where messages can be sent (address).

 A)       True

 B)        False

 

86

 It is possible for a single application to be both a client and a service.

 A)       True

 B)        False

 

Cloud Computing MCQs Part-2 Cloud Computing MCQs Part-2 Reviewed by Asst. Prof. Sunita Rai, Computer Sci.. Dept., G.N. Khalsa College, Mumbai on January 11, 2022 Rating: 5

No comments:

Powered by Blogger.