wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

ajax

Total questions: 102

Worksheet time: 55mins

Name
Class
Date
1.

If a condition has two choices, namely true and false, then the syntax used is ...

a)

IF

b)

IF ... ELSE

c)

IF - IF .. ELSE - ELSE

d)

SWITCH

2.

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 ...

a)

IF

b)

IF ... ELSE

c)

IF - IF .. ELSE - ELSE

d)

SWITCH

3.

From the following program, the final score displayed is…

a)

9

b)

10

c)

90

d)

100

4.

The program below is used to display numbers 1 - 5. Complete the PHP code in the black box below.

4 lines
5.

The right syntax used to stop a loop when a condition occurs and continue the next loop is ...

a)

WHILE

b)

DO ... WHILE

c)

BREAK

d)

CONTINUE

6.

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 ...

a)

XAMPP

b)

HTDOCS

c)

APACHE

d)

MYSQL

7.

The following is not a way of writing PHP code in HTML is ...

a)

<? dan ?>

b)

<?php dan ?>

c)

<script language=”php”> dan </script>

d)

<$ dan $>

8.

Which is the wrong way to write variables in PHP?

a)

$name

b)

$_address

c)

$1student

d)

$school?

9.

Which operator is used to calculate the modulo?

a)

*

b)

/

c)

+/

d)

%

10.

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.

4 lines
11.

Write the output of the following PHP program.

4 lines
12.

What is not an advantage of Jquery ...

a)

Resolved inter-browser compatibility issues

b)

Speed ​​up form processing

c)

Simple code

d)

Complete documentation

13.

The function in JQuery that is used to ensure all the desired elements are displayed on the web page is ...

a)

document ready()

b)

document complete()

c)

document all()

d)

document display()

14.

The functions provided by JQuery to hide elements are ...

a)

fadeOut

b)

fadeIn

c)

fadeToggle

d)

fadeSlow

15.

Which is an AJAX function?

a)

can load data from the server to a web browser without reloading (refreshing)

b)

make code more concise

c)

add style to the web page

d)

create slide animations

16.
Interaction between databases. (book ticket or buy something online).
a)
Static
b)
HTML
c)
Dynamic
d)
XML
17.
It displays information or content in a fixed format.
a)
Static
b)
HTML
c)
Dynamic
d)
XML
18.
Defines the structure and layout of web pages.
a)
Static
b)
HTML
c)
Dynamic
d)
XML
19.
Language to transport and store data. useful for updating services such as RSS feeds and blogs.
a)
Static
b)
HTML
c)
Dynamic
d)
XML
20.
Instructions in a computer program.
a)
JavaScript
b)
Code
c)
AJAX
d)
API
21.
Language programmers use to make static pages dynamic.
a)
JavaScript
b)
Code
c)
AJAX
d)
API
22.
Website get data from a server without reloading the whole webpage.
a)
JavaScript
b)
Code
c)
AJAX
d)
API
23.
Different software communicate each other.
a)
JavaScript
b)
Code
c)
AJAX
d)
API
24.
Data is wrapped up with a set of functions into packages.
a)
Object- oriented
b)
Applications
c)
App
d)
Dynamic
25.
Program or piece of software.
a)
Object- oriented
b)
Applications
c)
App
d)
Dynamic
26.
Abbreviation mostly for mobile phones.
a)
Object- oriented
b)
Applications
c)
App
d)
Dynamic
27.

What is the full form of AJAX ?

a)

a) Asynchronous Javascript and XML

b)

b) Another Java and XML Library

c)

c) Abstract JSON and XML

d)

d) None of the mentioned

28.

Which of the following technology is not used by Ajax?

a)

a) JavaScript

b)

b) Document Object Model

c)

c) XMLHttpRequest

d)

d) Flash

29.

Which of the following is a benefit of using a web service?

a)

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)

b) Web services allow various applications to talk to each other and share data and services among themselves.

c)

c) Web services use standardized industry standard protocol for the communication.

d)

d) All of the above.

30.

Which of the following is correct about Service Discovery layer in Web Service Protocol Stack?

a)

a) This layer is responsible for centralizing services into a common registry and providing easy publish/find functionality.

b)

b) Currently, service discovery is handled via Universal Description, Discovery, and Integration (UDDI).

c)

c) Both of the above.

d)

d) None of the above.

31.

Which directory of web service interface described by WSDL?

a)

a) HTTP

b)

b) DNS

c)

c) UDDI

d)

d) XML

32.

WSDL Stands for ________

a)

a) Web Services Development Language

b)

b) Web Services Design Language

c)

c) None of these

d)

d) Web Services Description Language

33.

SOAP is an

a)

a) both platform and language independent protocol

b)

b) only platform independent and not language independent protocol

c)

c) only language independent and not platform independent protocol

d)

d) neither platform independent nor language independent protocol

34.

SOAP based on

a)

a) HTML

b)

b) WML

c)

c) XML

d)

d) CSS

35.

Which of the following is considered as Web Service Platform Elements ?

a)

SOAP

b)

All of these

c)

UDDI

d)

WSDL

36.

UDDI Stands for

a)

Universal Development, Design and Integration

b)

Universal Description, Discovery and Integration

c)

Universal Description, Development and Integration

d)

None of these

37.

SOAP is a format for sending messages and is also called as __________.

a)

Data Transfer protocol

b)

Communication protocol

c)

Network protocol

d)

None of these

38.

The full form of W.W.W is _____________________

a)

wide web worry

b)

work wide web

c)

World Wide Web

d)

online work web

39.

PC Card modem is like the combination of external and internal modems

a)

True

b)

False

40.

One of the popular video conferencing site is _____________

a)

yugma

b)

oovoo

c)

skype

d)

ekiga

e)

all the above

41.

Internet is a _______________ space

a)

Public

b)

Private

c)

Local

d)

none of the above

42.

What does URL mean?

a)

Uniform Resource Locator

b)

Unified Resource Locator

c)

Unitop Resource Locator

d)

Uniform Resource Location

43.

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

a)

Video Conferencing

b)

Video Calls

c)

Video Locations

d)

Video Line

44.
What are electronic books?
a)
They are credit cards.
b)
They are digital versions of books.
c)
They are free books.
d)
They cannot be read offline.
45.
Before you travel, it is good to go to the Internet to download a digital _____.
a)
book
b)
map
c)
news
d)
search engine
46.
Files sent with e-mails
a)
Attachments
b)
Letters
c)
Folders
d)
Paperclips
47.
What does the "E" stand for in E-mail
a)
Energetic
b)
Electrical
c)
Enormous
d)
Electronic
48.

Why do we use e-mail? because it is

a)

very fast and everywhere and cheap

b)

it is nice

c)

it is from google

49.

I can't share my password with strangers

a)

True

b)

False

50.

Use of <binding> element in WSDL

a)

to communicate protocols used by web service

b)

to bind data among Web Sites.

c)

to set protocol for Web Sites.

d)

None of these

51.

Which of these is not the major element of WSDL document which describes the describes a web service ?

a)

<portType>

b)

<message>

c)

<binding>

d)

<attribute>

52.

What are the web service platform elements?

a)

SOAP, UDDI, XML

b)

HTTP, WSDL

c)

UDDI, XML, SOAP

d)

SOAP, UDDI, WSDL

53.

Which of these are not the WSDL operation types ?

a)

One-way

b)

error-message

c)

Request-response

d)

Solicit-response

54.

UDDI uses ______ to describe interfaces to web services

a)

SOAP

b)

WSDL

c)

UDDI

d)

RPC

55.

What is NOT a part of a SOAP Message?

a)

SOAP Body

b)

SOAP Envelop

c)

SOAP Headers

d)

SOAP Footer

56.

What is the root element of all WSDL documents?

a)

Definition

b)

Description

c)

Root

d)

Wsdl-root

57.

Which of the following is true about Web services?

a)

Web services are open standard (XML, SOAP, HTTP etc.) based Web applications

b)

Web services interact with other web applications for the purpose of exchanging data.

c)

Web Services can convert your existing applications into Web-applications.

d)

All of the above

58.

Which technology is used to transform XML into HTML?

a)

XHTML

b)

XSLT

c)

DOM

d)

DTD

59.

Web Services are

a)

Loosely Coupled

b)

Either Loosely or Tightly Coupled

c)

Neither Loosely nor Tightly Coupled

d)

All of the above

60.

_______________can be defined as a set of rules that govern the acceptable online behaviour of the user.

a)

hotspots

b)

video conferencing

c)

e-mail

d)

netiquettes

e)

chatting

61.

Which of the following protocol is used by RESTful web services as a medium of communication between client and server?

a)

HTTP

b)

FTP

c)

Gopher

d)

HTTPS

62.

Which of the following HTTP method should be idempotent in nature?

a)

OPTIONS

b)

DELETE

c)

POST

d)

HEAD

63.

Which of the following HTTP Status code means NOT FOUND, states that method is not available?

a)

400

b)

401

c)

404

d)

409

64.

Which of the following is correct about JAX-RS?

.

a)

JAX-RS makes heavy use of annotations available from Java SE 5 to simplify development of JAVA based web services creation and deployment.

b)

It also provides supports for creating clients for RESTful web services.

c)

Both of the above.

d)

None of the above

65.

Which of the following is correct about URI in RESTful web services?

a)

Each resource in REST architecture is identified by its URI

b)

Purpose of an URI is to locate a resource(s) on the server hosting the web service

c)

Both of the above

d)

None of the above

66.

Which of the following is true about Web services?

a)

Web services are open standard (XML, SOAP, HTTP etc.) based Web applications.

b)

Web services interact with other web applications for the purpose of exchanging data.

c)

Web Services can convert your existing applications into Web-applications.

d)

All of the above.

67.

Which of the following role of web service architecture provides a central place where developers can publish new services or find existing ones?

a)

Service Provider

b)

Service Requester

c)

Service Registry

d)

Service Description

68.

In contrast, the contract-first approach encourages you to think of the service contract first in terms of

a)

XML

b)

XML Schema(.xsd)

c)

WSDL

d)

Only First and Second

e)

All of the mentioned

69.

A script is a

a)

Program or sequence of instructions that is interpreted or carried out by processor directly

b)

Program or sequence of instruction that is interpreted or carried out by another program

c)

Program or sequence of instruction that is interpreted or carried out by web server only

d)

All of the above

e)

None of above

70.

When compared to the compiled program, scripts run

a)

Faster

b)

Slower

c)

The execution speed is similar

d)

Depend on the script

71.

Which of the following layer in Web Service Protocol Stack is responsible for describing the public interface to a specific web service?

a)

Service Transport

b)

XML Messaging

c)

Service Description

d)

Service Discovery

e)

Service Registry

72.

XSLT is:

a)

Extensible Stylesheet Language Translators

b)

Extended Stylesheet Language Transformation

c)

Extensible Stylesheet Language Transformation

d)

Extensible Style Language Transformation

73.

What is the correct symtax of for-each in XSLT ?

a)

<for-each> code … </for-each>

b)

<xsl:for-each> code … <xsl:for-each/>

c)

<xsl:for-each> code … </xsl:for-each>

d)

<xsl:foreach> code … </xsl:foreach>

74.

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>

a)

Yes

b)

No

75.

What are XML entities used for?

a)

Entities define shortcuts to standard text or special characters

b)

Entities define shortcuts to standard elements

c)

Entities define shortcuts to standard attributes

d)

All of the Above

76.

The syntax for parameter entity is

a)

<! ENTITY $ NAME DEFINITION>

b)

A. <! ENTITY % NAME DEFINITION>

c)

< ENTITY % NAME DEFINITION>

d)

< ENTITY % NAME DEFINITION>

77.

A schema describes

(i) grammar of a programming language

(ii) vocabulary of text

(iii) structure of a document

(iv) datatype of XML document

a)

(i) & (ii) are correct

b)

(i),(iii) ,(iv) are correct

c)

(i),(ii),(iv) are correct

d)

(ii),(iii),(iv) are correct

e)

(i),(ii),(iii),(iv) are correct

78.

What is an XML instance?

a)

XML attribute

b)

XML document

c)

XML element

d)

XML namespace

79.

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.

a)

HTML

b)

CSS

c)

DNS

d)

SCM

80.

This is an organized collection of data, generally stored and accessed electronically from a computer system.

a)

Bucket Storage

b)

Virtual machine

c)

Serverless functions

d)

Databases

81.

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.

a)

Front-end Frameworks

b)

Virtual machine

c)

JavaScript

d)

System Design

82.

This is a general-purpose programming language that is class-based, object-oriented, and designed to have as few implementation dependencies, as possible.

a)

HTML

b)

JavaScript

c)

CSS

d)

Python

83.

This is an interpreted, high-level, general-purpose programming language. Created by Guido van Rossum and first released in 1991.

a)

HTML

b)

Python

c)

JavaScript

d)

CSS

84.
What does the H in HTTP stand for?
a)
Hyper
b)
Hypertext
c)
HTML
d)
Helix
85.
What happens if in the HTML code received is a link to an image
a)
Another HTTP request is sent requesting the image
b)
Nothing
c)
The computer googles the image and inserts it
d)
The computer saves the webpage to its local storage
86.
What does the T (2st) in HTTP stand for?
a)
Transfer
b)
Transmission
c)
Texture
d)
Tanks
87.
What does the P in HTTP stand for?
a)
Protocol
b)
Process
c)
Parser
d)
Password
88.
What type of encryption keys are used in HTTPS?
a)
Asymmetrical
b)
Randomly generated
c)
Symmetrical
d)
AES
89.
What is an advantage of HTTP?
a)
Is faster
b)
It's not better in any way
c)
It signifies the domain name
d)
It ultimately parses the background processes
90.
What is the difference between HTTP & HTTPS?
a)
One is secured
b)
They are the same
c)
One is used for the web, one is used for calculating temperature
d)
One is a wrong answer
91.
Which of the following is an internet protocol?
a)
HTTP
b)
HTML
c)
CSS
d)
UTP
92.
The part of the internet that users can access using web browsers such as Google Chrome is called the?
a)
World Wide Web
b)
The Intranet
c)
HTTP
d)
The Deep Web
93.
The HTTP protocol: 
a)
The GET request results in all of the page data being displayed. 
b)
Data sent by the server is sent in one file, broken up into various packets.
c)
Data sent by the server is sent in several files broken up into packets.  
d)
Data sent by the server arrives at the client in the order it is sent. 
94.

The application one uses to access web pages is called.....

a)

web browser

b)

word processor

c)

presentation software

d)

Steam software manager

95.

Another name for a web address is.................

a)

HTTP

b)

HTML

c)

URL

d)

CSS

96.

The conversation between your computer and a server when requesting a website is mainly made up of _________ requests....

a)

"Ask"

b)

"Help"

c)

"Get"

d)

"Ack"

97.

What does HTML stand for?

a)

Hyperspace The Makeshift Lab Rat

b)

Hyper Text Markup Language

c)

Hyper Text Makeup Language

d)

Half The Mozzarella Left

98.

If a website has several images, thoise images load as the "get" requests occur and thus the page loads slower, true or false?

a)

True

b)

False

99.

Which of those requests is idempotent?

a)

POST

b)

PUT

c)

PATCH

100.

What code is returned when you send DELETE and successfully recieve response with empty body?

a)

201

b)

202

c)

203

d)

204

101.

Level 2 of REST Maturity model requires presence of them

a)

Safe and unsafe operations

b)

Several different endpoints

c)

Both SOAP and REST

d)

Self-documenting resource links

102.

What was the Accept header for this response body?

a)

"application/hal+json"

b)

"application/json"

c)

"application/xml"

d)

"text/html"