0% found this document useful (0 votes)
31 views

Advance Web Technologies

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views

Advance Web Technologies

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

Roll No. …………………..

BCA–E502(DE1)
B. C. A. (Fifth Semester)
EXAMINATION, 2023-24
ADVANCE WEB TECHNOLOGIES
1
Time : 22 Hours

Maximum Marks : 60

Note : All questions have to be attempted.

Section—A

1. Multiple choice questions : 1 each

(a) Which property of the XML Http request object is


used to access the server’s response data ?

(CO1, BL-1)

(i) Response status

(ii) Response headers

(iii) Response text

(iv) Response method

P. T. O.
[2] BCA–E502(DE1)

(b) What does the term ‘asynchronous’ mean in the


context of XML Http request ? (CO1, BL-2)
(i) It means the request is made synchronously
(ii) It means the request is made without the
user’s permission
(iii) It means the request is made in the
background and the code doesn’t wait for
the response
(iv) None of the above
(c) Which HTTP method is commonly used with
XML Http request to send data to the server ?
(CO1, BL-1)
(i) GET
(ii) POST
(iii) PUT
(iv) DELETE
(d) What makes AJAX unique ? (CO1, BL-2)
(i) It works as a stand-alone web development
tool
(ii) It works the same with all web browsers
(iii) It uses C++ as its programming language
(iv) It makes data requests asynchronously
[3] BCA–E502(DE1)

(e) Which of the following is a potential ethical


concern related to the use of AJAX in web
application ? (CO1, BL-6)

(i) Inefficient data transmission

(ii) Security vulnerabilities

(iii) Improved user experience

(iv) Cross-browser compatibility

(f) What is the purpose of the JSON-Parse() method


in JavaScript ? (CO2, BL-2)

(i) To convert a JSON string into a JavaScript


object

(ii) to convert a JavaScript object into a JSON


string

(iii) To validate JSON data

(iv) To create a new JSON object

(g) Which of these are not the valid XML-DOM


relationship ? (CO2, BL-4)

(i) Parent Node

(ii) Previous sibling

(iii) Last child

(iv) Next Node

P. T. O.
[4] BCA–E502(DE1)

(h) Which of the following variables does PHP use of


authenticate a user ? (CO3, BL-2)
(A) $-SERVER [‘PHP-AUTH-USER’];
(B) $-SERVER [‘PHP-AUTH-USERS’];
(C) $-SERVER [‘PHP-AUTH-PU’];
(D) $-SERVER [‘PHP-AUTH-PW’];
(i) A and B
(ii) B and D
(iii) C and D
(iv) B and C
(i) In a PHP web application, you can use cookies
and sessions interchangeably for maintaing user
data and state. (CO3, BL-5)
(i) True
(ii) False
(j) PHP recognize constructors by name :
(CO4, BL-1)
(i) Classname()
(ii) Function-Construct()
(iii) -Construct()
(iv) Function-Construct()
[5] BCA–E502(DE1)

(k) You are building a PHP web application that


needs to validate user input from a form. Which
of the following functions should you use to
check if a user-provided e-mail address is in a
valid format ? (CO3, BL-3)

(i) strlen()

(ii) empty()

(iii) filter-var()

(iv) is-string()

(l) In PHP, which super global array is used to


retrieve data from an HTML form with the HTTP
POST method ? (CO5, BL-2)

(i) $-POST[]

(ii) $-GET[]

(iii) $-REQUEST[]

(iv) $-SESSION[]

2. Attempt any four of the following (Short answer type


questions) : 3 each

(a) What is the XML Http request object in


JavaScript and how does it work ? Explain with
example. (CO1, BL-3)

P. T. O.
[6] BCA–E502(DE1)

(b) What is Ajax and why is it important in web


development ? (CO1, BL-2)

(c) What is JSON ? What are the advantages of


JSON over XML ? (CO2, BL-4)

(d) What is constructor in PHP, and how is it


different from a regular method ? (CO4, BL-2)

(e) What is session Handling in PHP ? Discuss with


the help of program. (CO3, BL-3)

Section—B

3. Attempt any two of the following : 6 each

(a) What is XML DOM ? How does DOM relate to


XML ? (CO2, BL-2)

(b) Explain JSON data types with proper syntax of


declaration and assignment. (CO3, BL-4)

(c) Discuss inheritance in PHP with suitable


example. (CO4, BL-2)

4. Attempt any two of the following : 6 each

(a) Write a program to demonstrate form validation


using PHP and AJAX. (CO1, BL-6)
[7] BCA–E502(DE1)

(b) What is the difference between abstract class and


interface ? Can we implement an interface in an
abstract class ? Justify your answer. (CO4, BL-3)

(c) Create a connection to an assumed erusting


database, table on MySQL. Write a query to bring
a record from the database in JSON format.

(CO5, BL-6)

5. Attempt any two of the following : 6 each

(a) How do you throw an exception in PHP ? What is


the difference between exception and error ?

(CO4, BL-2)

(b) What is Code Igniter, and what is its primary


purpose ? Write the key features of Code Igniter.

(CO5, BL-2)

(c) What is CSS ? What is the difference between


inline, internal and external CSS ? Explain the
float property in CSS with suitable example.

(CO1, BL-1)

BCA–E502(DE1) 40

P. T. O.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy