Web New Notes

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

Register No. :…………………… Name: ……………………..

2023
Branch & SEM: CSE S7 Course Code: CST463 Total Marks: 50 Time: 2 Hrs
Course Name: WEB PROGRAMMING
CO: Course Outcome .PO, Program Outcomes Level: Bloom’s Taxonomy Level no. (L1-L6)
Part – A
(Answer all questions, each carry 3 marks)
Q No Questions Marks CO PO Level
1 Build a PHP script to check whether a given number is prime or 3 CO3 1,2,3,4,6,12 L2
not?
2 Illustrate with a sample PHP script, how functions are 3 CO3 1,2,3,4,6,12 L2
implemented in PHP. ?
3 How does a PHP array differ from an array in C? 3 CO4 1,2,3,4,11,12 L1
4 What are the Features of JSON ? 3 CO4 1,2,3,4,11,12 L1
5 What are the Characteristics of JSON? 3 CO5 1,2,3,4,11,12 L1

Part – B
Module – III
(Answer two full questions from module I & II)
Q No Questions Marks CO PO Level
6 Write a PHP program to compute the sum of the positive integers 7 CO3 1,2,3,4,6,12 L1
up to 100 using do while.
7 Write an embedded PHP script which displays the factorial of all 7 CO3 1,2,3,4,6,12 L2
numbers from 1 to 10 in a table in the web page. The factorial
should be calculated and returned?
8 Explain any six string handling functions used in PHP with 7 CO3 1,2,3,4,6,12 L1
example.
Module – IV
Q No Questions Marks CO PO Level
9 Write equivalent PHP statements corresponding to the following: 7 CO4 1,2,3,4,6,10,11,12 L1
(8) (i) Declare an associative array named “ages” to store the key-
value pairs (“Alice”, 30), (“Bob”, 30), (“Harry”, 35), (“Mary”,
32). (ii) Modify the value associated with the key “Mary” to 28.
(iii) Sort the array according to values maintaining the key-value
relationships and print the sorted key-value pairs. (iv) Delete the
entry identified by the key “Bob”
10 What is the purpose of the implicit arrays $_POST and $_GET in 7 CO4 1,2,3,4,6,10,11,12 L1
PHP? Consider that a web page displays a form containing two
text boxes (named num1 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
11 . Write the HTML code to provide a form that collects the name 7 CO4 1,2,3,4,6,10,11,12 L1
and marks of 5 subjects of a student. Write a PHP script that will
process these details and print the total and average marks of the
student.
Page 1 of 2
Module – V
(Answer one full question from module III)
Q No Question Marks CO PO Level
s
12 Enumerate the data types in JSON. Illustrate the document 7 CO5 1,2,3,4,8,11,12 L2
definition of a ‘Student document ‘using JSON Schema
13 Write the JSON code based on the below output screen 7 CO5 1,2,3,4,11,12 L3

Page 2 of 2

You might also like