wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

FSWD Ajax React PHP Jquery

Total questions: 66

Worksheet time: 38mins

Name
Class
Date
1.

What's the name of the syntax we use to describe the UI in React components?

a)

FBJ

b)

Babel

c)

JSX

d)

ES2015

2.

Non-technical person can create / manageCost effectiveUser-friendliness

a)

Search index

b)

Super Administrator

c)

Why use a cms

d)

3rd party search engines

3.

What You See Is What You Get- Allows users to edit content without knowing HTML / CSS- Users don't need to know HTML / CSS

a)

Assets

b)

Search

c)

Site Manager

d)

WYSIWYG

4.

Which open source platform helps to generate quiz?

a)

Kahoot

b)

Quizlet

c)

quizizz

d)

All of Above

5.
The term _______ is used to refer a row
a)
Record
b)
Foreign key
c)
Primary key
d)
Field
6.
Consider attributes ID, CITY, and NAME. Which one if this can be considered as a primary key?
a)
NAME
b)
ID
c)
CITY
d)
ID, NAME
7.
Which of the following is NOT Advantages of DBMS
a)
Increased data consistency 
b)
Reduced data redundancy
c)
Improved data security 
d)
Increase data isolation
8.

Tags and text that are not directly displayed on the page are written in _____ section.

a)

<html>

b)

<head>

c)

<title>

d)

<body>

9.

A webpage displays a picture. What tag was used to display that picture?

a)

picture

b)

image

c)

img

d)

src

10.

What is the correct HTML for making a hyperlink?

a)

<a href=”http:// mcqsets.com“>Web Design Quiz</a>

b)

<a name=”https://mcqsets.com“>Web Design Quiz</a>

c)

<https://mcqsets.com</a>

d)

url=”https://mcqsets.com“>Web Design Quiz

11.

Choose the correct HTML tag for the smallest size heading?

a)

<heading>

b)

<h6>

c)

<h1>

d)

<head>

12.

Which tag creates a check box for a form in HTML?

a)

<checkbox>

b)

<input type="checkbox">

c)

<input=checkbox>

d)

<input checkbox>

13.

Which of the following HTML code is valid?

a)

<font colour="red">

b)

<font color="red">

c)

<red><font>

d)

All of above are style tags

14.

Marquee is a tag in HTML to

a)

mark the list of items to maintain in queue

b)

Mark the text so that it is hidden in browser

c)

Display text with scrolling effect

d)

None of above

15.

AJAX can update webpage without _______ the page

a)

reloading

b)

scrolling

c)

closing

d)

clicking

16.

A programming language of the web

a)

JQuery

b)

JavaScript

c)

Java

d)

HTML

17.

PHP stands for

a)

Pre Hypertext Processor

b)

Philippine Health Product

c)

Hypertext Preprocessor

d)

Hypertext Processor

18.

Some predefined variables in PHP are _________, which means that they are always accessible, regardless of scope

a)

Superglobals

b)

Variables

c)

Globals

d)

Locals

19.

AJAX is not a programming language

a)

True

b)

False

20.

The purpose of _____ is to make it much easier to use JavaScript on your website.

a)

jQuery

b)

HTML

c)

AJAX

d)

CSS

21.

INSERT ____ tbl_students (id, username, password) VALUES (1, "user", "user123");

a)

INTO

b)

TO

c)

FROM

d)

SET

22.

Which attribute specifies a unique alphanumeric identifier to be associated with an element?

a)

class

b)

id

c)

article

d)

html

23.

In Java Script, which built-in method combines the text of two strings and returns a new string?

a)

append()

b)

concat()

c)

attach()

d)

None of the these

24.

In java script ,which of the following function of Array object removes the last element from an array and returns that element?

a)

pop()

b)

push()

c)

join()

d)

map()

25.

In Java Script,which of the following function of String object extracts a section of a string and returns a new string?

a)

slice()

b)

split()

c)

replace()

d)

search()

26.

Which of the following Attribute is used to include External JS code inside your HTML Document?

a)

src

b)

ext

c)

script

d)

link

27.

What will be the output of the following JavaScript code?

function compare()

{

int a=1;

char b=1;

if(a.tostring()===b)

return true;

else

return false;

}

a)

true

b)

false

c)

runtime error

d)

logical error

28.

JavaScript is a _______________ language.

a)

Object-Oriented

b)

High-level

c)

Assembly-language

d)

Object-Based

29.

XML stands for?

a)

Extensible Markup Language

b)

Extended Mashup Language

c)

Extensible Mashup Language

d)

X-Markup Language

30.

Find the correct syntax of the declaration which defines the XML Version?

a)

< ?xml version= "1.0" ? >

b)

< xml version="1.0"/ >

c)

< ?xml version="1.0" / >

d)

None of the above

31.

Which of the following is true ?

1.AJAX is a platform-independent technology

2. AJAX can work with web application

3. AJAX can only work with ASP.NET

4. AJAX is a platform-dependent technology

a)

1, 2

b)

1, 2,3

c)

1,3,4

d)

None of the above

32.

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

33.

From the following program, the final score displayed is…

a)

9

b)

10

c)

90

d)

100

34.

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

35.

Which is the wrong way to write variables in PHP?

a)

$name

b)

$_address

c)

$1student

d)

$school?

36.

Write the output of the following PHP program.

4 lines
37.

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()

38.

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

a)

fadeOut

b)

fadeIn

c)

fadeToggle

d)

fadeSlow

39.
Language to transport and store data. useful for updating services such as RSS feeds and blogs.
a)
Static
b)
HTML
c)
Dynamic
d)
XML
40.
Language programmers use to make static pages dynamic.
a)
JavaScript
b)
Code
c)
AJAX
d)
API
41.

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

42.

Which of the following technology is not used by Ajax?

a)

a) JavaScript

b)

b) Document Object Model

c)

c) XMLHttpRequest

d)

d) Flash

43.

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.

44.

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

a)

400

b)

401

c)

404

d)

409

45.

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

46.

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

47.

What is an XML instance?

a)

XML attribute

b)

XML document

c)

XML element

d)

XML namespace

48.

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

49.

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

50.
What type of encryption keys are used in HTTPS?
a)
Asymmetrical
b)
Randomly generated
c)
Symmetrical
d)
AES
51.

Which of the following is known as Social Web?

a)

Web 1.0

b)

Web 2.0

c)

Web 3.0

d)

Web 4.0

52.

Which of the following statements about JavaScript DOM (Document Object Model) is correct?

a)

The DOM provides a hierarchical representation of the HTML document, allowing JavaScript to manipulate its structure, content, and style dynamically.

b)

The DOM only supports manipulation of text content within HTML elements; it cannot alter the structure or style of the document.

c)

JavaScript can directly modify the HTML file on the server-side using DOM without needing client-side interaction.

d)

DOM manipulation is limited to static web pages and cannot be used to create dynamic web applications.

53.

Which of the following statements about AJAX (Asynchronous JavaScript and XML) is correct?

a)

AJAX is a programming language used for server-side scripting in web development.

b)

AJAX allows web pages to be refreshed or reloaded completely when new data is requested.

c)

AJAX requests are always synchronous, meaning the browser waits for the response before continuing to execute other scripts.

d)

AJAX enables asynchronous communication between a web browser and a server, allowing parts of a web page to be updated without a full page reload.

54.

Which of the following statements about PHP sessions is MOST ACCURATE?

a)

Sessions are a client-side mechanism for storing user information using cookies.

b)

Sessions are a server-side mechanism for storing user information across multiple page requests.

c)

Sessions automatically expire after a set period of inactivity, requiring users to re-login.

d)

Sessions require complex database interaction to store user data.

55.

Which of the following statements correctly distinguishes between DTD and XML Schema?

a)

DTD is more expressive and allows for more complex validation rules compared to XML Schema.

b)

XML Schema is a legacy technology, while DTD is the modern standard for defining document structure and validation.

c)

DTD is an XML-based language for defining the structure and constraints of XML documents, while XML Schema provides a richer set of data types and validation capabilities.

d)

XML Schema is used exclusively for defining the structure of HTML documents, while DTD is used for XML documents.

56.

How can you connect MySQL with PHP?

a)

By using the mysqli_query() function in PHP.

b)

By including the MySQL database credentials directly in the HTML code.

c)

By using functions like mysqli_connect() or PDO extension in PHP to establish a connection to the MySQL database.

d)

By directly embedding SQL queries within PHP code.

57.

Which of the following statements accurately describes the purpose of the <div>, <footer>, and <header> tags in HTML?

a)

<div> is used to define a division or section in an HTML document, <footer> represents a footer section typically placed at the bottom of a page, and <header> represents introductory content, such as headings or navigational links at the top of a page.

b)

<div> is used to define a division or section in an HTML document, <footer> represents a section that contains copyright information and other metadata about the document, and <header> represents the main content area of the page.

c)

<div> is used to define a division or section in an HTML document, <footer> represents a section that contains navigation links, and <header> represents a section containing contact information.

d)

<div> is used to define a division or section in an HTML document, <footer> represents a section containing advertisements, and <header> represents the title of the page.

58.

Which type of websites commonly use Ajax for dynamic content?

a)

Search engines

b)

Social media platforms

c)

E-commerce websites

d)

News websites

59.

Which API is commonly used in Ajax implementations?

a)

XMLHttpRequest

b)

JSONRequest

c)

HTMLRequest

d)

CSSRequest

60.

What is one example of Ajax usage on search engines?

a)

Displaying search suggestions as you type

b)

Displaying related images

c)

Displaying news articles

d)

Displaying product recommendations

61.

What is one example of Ajax usage on image searches?

a)

Loading more thumbnails as you scroll

b)

Displaying image details

c)

Sorting images by date

d)

Sharing images on social media

62.

Which of the following commands is used to create react-js-app?

a)

npx create-react-app appname

b)

npm install create-react-app

c)

npx install create-react-app -g

d)

install - l create-react-app

63.

What is the best definition of React.js?

a)

Server-side Framework

b)

User-interface framework

c)

A Library for building interaction interfaces

d)

None of These

64.

What's the fundamental building block of React apps?

a)

Components

b)

Blocks

c)

Elements

d)

Effects

65.

Which hook is commonly used for managing state in functional components in React?

a)

useEffect

b)

useState

c)

useContext

d)

useRef

66.

How do you initialize a state variable called count with an initial value of 0?

a)

const [count, setCount] = useState(0);

b)

const count = 0;

c)

const count = useState(0);

d)

const count = setState(0);

const setCount = setState(0);