Semester : SEMESTER 6
Subject : Web Technologies
Year : 2019
Term : MAY
Branch : COMPUTER SCIENCE AND ENGINEERING
Scheme : 2015 Full Time
Course Code : CS 368
Page:2
12
13
14
15
16
17
18
19
20
a)
b)
a)
b)
a)
b)
a)
b)
a)
b)
a)
b)
a)
b)
a)
b)
a)
F1153 Pages:
style attributes used for that.
PART D
Answer any two full questions, each carries 9 marks.
Write CSS code for setting the following styles
i) Table - A header row with background colour and bold font and other rows
without that.
ii) Unordered list — Set a smiley image as bullet.
What is the difference between JavaScript primitives and objects in the context
of how they are stored in memory?
Write a JavaScript program to implement various mathematical operations. Input
should be prompted for and confirmation should be asked before proceeding to
next operation.
What are the advantages of using a CSS framework? Explain the features of
Bootstrap in relation to the above answer.
External style sheets are usually preferred over other kinds of style sheets. Why?
Illustrate with suitable code samples, the different ways of Array declaration in
JavaScript. Arrays in JavaScript are said to be more flexible, why?
PART E
Answer any four full questions, each carries 10 marks.
Describe the schema of a document implemented in JSON and state how it is
different from XML schema.
What are the primitives supported by PHP?
Differentiate between simple and complex data types in XML.
Design a simple HTML form to input a string and to display whether it is
palindrome or not when the form is submitted. Use a PHP script.
List the various data types used in JSON.
What are the contexts in which session tracking can be helpful?
How does the use of cookies help in server-side scripting? Give examples for
data stored using cookies.
How can CSS be used to display a XML document? Illustrate with an example.
Design an XML document containing details about four students. Student
attributes can be added as per your choice.
Write a PHP script to search for a particular string pattern in a text.
Illustrate with a sample PHP script, how functions are implemented in PHP.
Page 2 of 3
(6)
(3)
(5)
(4)
(4)
(5)
(6)
(4)
(4)
(6)
(5)
(5)
(5)
(5)
(5)
(5)
(5)