0% found this document useful (0 votes)
35 views4 pages

CST463 WEB PROGRAMMING, DECEMBER 2022

Highly

Uploaded by

FARAS A
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)
35 views4 pages

CST463 WEB PROGRAMMING, DECEMBER 2022

Highly

Uploaded by

FARAS A
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/ 4

B 1000csT463122202

Reg No.:

APJ ABDUL KALAM TECHNOLOGICAL


Seventh Semester B.Tech Degree Examination December 2022 (2019

Course Code: CST463


Course Name: WEB PROGRAMMING
Max. Marks: 100 Duration:3 Hours
PART A
Answer all qaestions, each carries 3 marks. Marks

I Why do you call MIME as an extension feature? Justi$ with suitable statements. (3)

2 Discuss URI's and URL. (3)


'l
J Compare Absolute Positioning and Relative positioning. (3)

4 What is a call back function in JavaScript? State how it is different from normal (3)
functions.

Write a PHP program to check whether the given number is prime or not. (3)

List out the sorting functions for Arrays in PHP. Illustrate with suitable (3)

examples.
Discuss the various steps for establishing PHP-My SQL connection with a My (3)

SQL database.
Illustrate with a sample PHP script, how CREATE operations on My SQL table (3)
are implemented in PHP.

9 Describe the schema of a document implemented in JSON with suitable examples. (3)
l0 Explain the role.*of Resource controllers in Laravel. (3)
. PART B
Answer any onefull questionfrom each module, each carries 14 marks.
Modulgl '
11 a) Write the equivalent HTML code to implement the following in a web page: (4)
l) An image titled "flowerjpg" with proper attribute to set height, width and
message text.

2) Unordered list with values tea, coffee and milk

b) Explain following html tags with proper example. (10)


l.<textarea> 2. < span> 3.< tr> 4.< form> 5.<a>

OR

Page lof4
1000csT463122202

12 a) Design a webpage that displays the following table. (8)

Company tvtodet

Dodge Challanger

Maruti Swift
Jeep Wrangler
Fusion

Ford Fiesta

Escape

BMW BMW 5 Series

b) Write down the general format of an HTTP request and an HTTP response. What (6)

is the purpose of the following HTTP headers? Also, identiff whether they are
included with an HTTP headeriresponse or both.
i. host ii. last-modified

Module II
(6)
13 a) Write CSS code forthe following:
i) set the background color for the hover and active link states to

"yellow".
ii) Set the list style for ordered lists to "lower case alphabet"'
t iii) Set "Boat.gif'as the background image ofthe page.
iv) Set dotted border for the document.

b) Discuss various types of control statements in JavaScript (8)


. t.8.

14 a) How are event handlers registered in JavaScript? Write the code for an HTML (8)

document with embedded JavaScript scripts, which initially displays a paragraph


with text "'Welcome" and a button titled "Click". When the buffon is clicked, the
paragraph text.
-message "Hello from JavaScripf in bold should replace the

b) What are class selectors in CSS? Suppose that it is required to display the text (6)

content of p tags in two different styles depending on the context.

Page2of 4
1000csT463122202

Style I - text should be dbplayed in blue colour, right aligned, underlined, with
font style of italics and spacing between the words of text set to 2 cm.

Style 2 -text should be displayed with a background colour of yellow, blue colour
border, and with a padding of 1.5 cm

Write the equivalent CSS style rules.

Module III
15 a) Explain any six string handling functions used in PHP with example. (6)
b) What is the purpose of the implicit arrays $_POST and $_GET in PHP? Consider (8)
that a web page displays a form containing two text boxes (named numl and
num2), where the user enters numeric data. Write a PHP script which collects this
form data, finds the sum, difference and the product of the two numbers and then
displays the same with suitable messages. Assume that the script is to be

embedded in the web page specified by the action attribute of the form and that
the method used when the form is submitted is GET.

OR

16 a) Illustrate with a sample PHP script, how functions are implemented in PHP. (6)

b) Why is PHP considered to be dynamically typed? Distinguish between implode (8)


I and explode function in PHP with suitable examples.

Module IV

: 17 a) What is the silnificance of cookies in web? How can a cookie be created (6)
, and destroyed in PHP?
n
' t
b) Write equivalent PHP statements cortespending to the following (8)
i)Declare an associative array named "marks" to store the key-value pairs
("Ram", 40),("Alice",20),("Raj",45),("Mary",35).
ii)Modiff the value associated with the key "Ram" to 50.

iii)Sort the array and print the sorted key value pairs.
iv)The entry identified by the key "Raj"

Page 3of4
". 1ffi6CET#3*tXN2,
'3

"' l8 a) bign an HTIvtL frrm'for ent€ring a mlrnber by the user. Write a PHP codc to {5)
dtsflry,a mesrycindicgirg, u&e&a,t$e number is positi.ve or ncg*tivc, whcn
clicking sr the zubmit button.

b) Write a PHP form hanrdling program to perform the user regis*aion of any (8)
wcbsite with a minirnum of 5 different {ields and insert the data into a My S@
after establishing necessary ccrrections with the Database.

Module V
19 a) Wifi a neat diagram, explain about Laravel MVC Framework (6)
b) Dbcuss in d€tait about Laravel's Routing mechanisms (S)
'oR
,I 20 a) Listttedats types u€€d in JSOS{? Explain the use of parseQ and stringis$ (8)
fimetions in JSON with examples.
b] Wbt is Route ModdBinding in Lsavcl? Which types of route model binding (6)
Ws$ppmted in Larevel?

.! :.-s.

Pagr 4of4

You might also like