Font size
Worksheetsajax
Total questions: 102
Worksheet time: 55mins
If a condition has two choices, namely true and false, then the syntax used is ...
IF
IF ... ELSE
IF - IF .. ELSE - ELSE
SWITCH
A PHP program will display the name of the month when entering a number between 1 and 12 in the input form. The use of the right branching is ...
IF
IF ... ELSE
IF - IF .. ELSE - ELSE
SWITCH
From the following program, the final score displayed is…
9
10
90
100
The program below is used to display numbers 1 - 5. Complete the PHP code in the black box below.
The right syntax used to stop a loop when a condition occurs and continue the next loop is ...
WHILE
DO ... WHILE
BREAK
CONTINUE
PHP is a server-side programming, where the code will be executed on the server side. The following which one can act as a server on a local computer ...
XAMPP
HTDOCS
APACHE
MYSQL
The following is not a way of writing PHP code in HTML is ...
<? dan ?>
<?php dan ?>
<script language=”php”> dan </script>
<$ dan $>
Which is the wrong way to write variables in PHP?
$name
$_address
$1student
$school?
Which operator is used to calculate the modulo?
*
/
+/
%
The program below is used to display the numbers 2,4 and 6 where each array element will be multiplied by the number 2. Complete the PHP code in the following black box.
Write the output of the following PHP program.
What is not an advantage of Jquery ...
Resolved inter-browser compatibility issues
Speed up form processing
Simple code
Complete documentation
The function in JQuery that is used to ensure all the desired elements are displayed on the web page is ...
document ready()
document complete()
document all()
document display()
The functions provided by JQuery to hide elements are ...
fadeOut
fadeIn
fadeToggle
fadeSlow
Which is an AJAX function?
can load data from the server to a web browser without reloading (refreshing)
make code more concise
add style to the web page
create slide animations
What is the full form of AJAX ?
a) Asynchronous Javascript and XML
b) Another Java and XML Library
c) Abstract JSON and XML
d) None of the mentioned
Which of the following technology is not used by Ajax?
a) JavaScript
b) Document Object Model
c) XMLHttpRequest
d) Flash
Which of the following is a benefit of using a web service?
a) Web services allows you to expose the functionality of your existing code over the network. Once it is exposed on the network, other application can use the functionality of your program.
b) Web services allow various applications to talk to each other and share data and services among themselves.
c) Web services use standardized industry standard protocol for the communication.
d) All of the above.
Which of the following is correct about Service Discovery layer in Web Service Protocol Stack?
a) This layer is responsible for centralizing services into a common registry and providing easy publish/find functionality.
b) Currently, service discovery is handled via Universal Description, Discovery, and Integration (UDDI).
c) Both of the above.
d) None of the above.
Which directory of web service interface described by WSDL?
a) HTTP
b) DNS
c) UDDI
d) XML
WSDL Stands for ________
a) Web Services Development Language
b) Web Services Design Language
c) None of these
d) Web Services Description Language
SOAP is an
a) both platform and language independent protocol
b) only platform independent and not language independent protocol
c) only language independent and not platform independent protocol
d) neither platform independent nor language independent protocol
SOAP based on
a) HTML
b) WML
c) XML
d) CSS
Which of the following is considered as Web Service Platform Elements ?
SOAP
All of these
UDDI
WSDL
UDDI Stands for
Universal Development, Design and Integration
Universal Description, Discovery and Integration
Universal Description, Development and Integration
None of these
SOAP is a format for sending messages and is also called as __________.
Data Transfer protocol
Communication protocol
Network protocol
None of these
The full form of W.W.W is _____________________
wide web worry
work wide web
World Wide Web
online work web
PC Card modem is like the combination of external and internal modems
True
False
One of the popular video conferencing site is _____________
yugma
oovoo
skype
ekiga
all the above
Internet is a _______________ space
Public
Private
Local
none of the above
What does URL mean?
Uniform Resource Locator
Unified Resource Locator
Unitop Resource Locator
Uniform Resource Location
Allows two or more people to hold online conferences at different locations using a computer network to transmit audio and video as if they were all in the same room
Video Conferencing
Video Calls
Video Locations
Video Line
Why do we use e-mail? because it is
very fast and everywhere and cheap
it is nice
it is from google
I can't share my password with strangers
True
False
Use of <binding> element in WSDL
to communicate protocols used by web service
to bind data among Web Sites.
to set protocol for Web Sites.
None of these
Which of these is not the major element of WSDL document which describes the describes a web service ?
<portType>
<message>
<binding>
<attribute>
What are the web service platform elements?
SOAP, UDDI, XML
HTTP, WSDL
UDDI, XML, SOAP
SOAP, UDDI, WSDL
Which of these are not the WSDL operation types ?
One-way
error-message
Request-response
Solicit-response
UDDI uses ______ to describe interfaces to web services
SOAP
WSDL
UDDI
RPC
What is NOT a part of a SOAP Message?
SOAP Body
SOAP Envelop
SOAP Headers
SOAP Footer
What is the root element of all WSDL documents?
Definition
Description
Root
Wsdl-root
Which of the following is true about Web services?
Web services are open standard (XML, SOAP, HTTP etc.) based Web applications
Web services interact with other web applications for the purpose of exchanging data.
Web Services can convert your existing applications into Web-applications.
All of the above
Which technology is used to transform XML into HTML?
XHTML
XSLT
DOM
DTD
Web Services are
Loosely Coupled
Either Loosely or Tightly Coupled
Neither Loosely nor Tightly Coupled
All of the above
_______________can be defined as a set of rules that govern the acceptable online behaviour of the user.
hotspots
video conferencing
netiquettes
chatting
Which of the following protocol is used by RESTful web services as a medium of communication between client and server?
HTTP
FTP
Gopher
HTTPS
Which of the following HTTP method should be idempotent in nature?
OPTIONS
DELETE
POST
HEAD
Which of the following HTTP Status code means NOT FOUND, states that method is not available?
400
401
404
409
Which of the following is correct about JAX-RS?
.
JAX-RS makes heavy use of annotations available from Java SE 5 to simplify development of JAVA based web services creation and deployment.
It also provides supports for creating clients for RESTful web services.
Both of the above.
None of the above
Which of the following is correct about URI in RESTful web services?
Each resource in REST architecture is identified by its URI
Purpose of an URI is to locate a resource(s) on the server hosting the web service
Both of the above
None of the above
Which of the following is true about Web services?
Web services are open standard (XML, SOAP, HTTP etc.) based Web applications.
Web services interact with other web applications for the purpose of exchanging data.
Web Services can convert your existing applications into Web-applications.
All of the above.
Which of the following role of web service architecture provides a central place where developers can publish new services or find existing ones?
Service Provider
Service Requester
Service Registry
Service Description
In contrast, the contract-first approach encourages you to think of the service contract first in terms of
XML
XML Schema(.xsd)
WSDL
Only First and Second
All of the mentioned
A script is a
Program or sequence of instructions that is interpreted or carried out by processor directly
Program or sequence of instruction that is interpreted or carried out by another program
Program or sequence of instruction that is interpreted or carried out by web server only
All of the above
None of above
When compared to the compiled program, scripts run
Faster
Slower
The execution speed is similar
Depend on the script
Which of the following layer in Web Service Protocol Stack is responsible for describing the public interface to a specific web service?
Service Transport
XML Messaging
Service Description
Service Discovery
Service Registry
XSLT is:
Extensible Stylesheet Language Translators
Extended Stylesheet Language Transformation
Extensible Stylesheet Language Transformation
Extensible Style Language Transformation
What is the correct symtax of for-each in XSLT ?
<for-each> code … </for-each>
<xsl:for-each> code … <xsl:for-each/>
<xsl:for-each> code … </xsl:for-each>
<xsl:foreach> code … </xsl:foreach>
Is this a "well formed" XML document?
<?xml version="1.0"?>
<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note>
Yes
No
What are XML entities used for?
Entities define shortcuts to standard text or special characters
Entities define shortcuts to standard elements
Entities define shortcuts to standard attributes
All of the Above
The syntax for parameter entity is
<! ENTITY $ NAME DEFINITION>
A. <! ENTITY % NAME DEFINITION>
< ENTITY % NAME DEFINITION>
< ENTITY % NAME DEFINITION>
A schema describes
(i) grammar of a programming language
(ii) vocabulary of text
(iii) structure of a document
(iv) datatype of XML document
(i) & (ii) are correct
(i),(iii) ,(iv) are correct
(i),(ii),(iv) are correct
(ii),(iii),(iv) are correct
(i),(ii),(iii),(iv) are correct
What is an XML instance?
XML attribute
XML document
XML element
XML namespace
This is used to format the layout of Web pages. This can be used to define text styles, table sizes, and other aspects of Web pages.
HTML
CSS
DNS
SCM
This is an organized collection of data, generally stored and accessed electronically from a computer system.
Bucket Storage
Virtual machine
Serverless functions
Databases
This is essentially a bundle of JavaScript code that someone else has written which you can include in your application to help you build it faster.
Front-end Frameworks
Virtual machine
JavaScript
System Design
This is a general-purpose programming language that is class-based, object-oriented, and designed to have as few implementation dependencies, as possible.
HTML
JavaScript
CSS
Python
This is an interpreted, high-level, general-purpose programming language. Created by Guido van Rossum and first released in 1991.
HTML
Python
JavaScript
CSS
The application one uses to access web pages is called.....
web browser
word processor
presentation software
Steam software manager
Another name for a web address is.................
HTTP
HTML
URL
CSS
The conversation between your computer and a server when requesting a website is mainly made up of _________ requests....
"Ask"
"Help"
"Get"
"Ack"
What does HTML stand for?
Hyperspace The Makeshift Lab Rat
Hyper Text Markup Language
Hyper Text Makeup Language
Half The Mozzarella Left
If a website has several images, thoise images load as the "get" requests occur and thus the page loads slower, true or false?
True
False
Which of those requests is idempotent?
POST
PUT
PATCH
What code is returned when you send DELETE and successfully recieve response with empty body?
201
202
203
204
Level 2 of REST Maturity model requires presence of them
Safe and unsafe operations
Several different endpoints
Both SOAP and REST
Self-documenting resource links
What was the Accept header for this response body?
"application/hal+json"
"application/json"
"application/xml"
"text/html"
