Web Programming and PHP B.C.A 17-20 SEM 4, Sec Internal March 2019


SAINTGITS COLLEGE OF APPLIED SCIENCES
Second Internal Assessment Examination, Feb 2019
Department of BCA, Semester IV
WEB PROGRAMMING USING PHP (Answer Key)
Time    : 2 hours                                                                           Total:  50 Marks
Section A
Answer any 5 questions. Each question carries 2 marks.

1.   <html>
<head>
<title>------</title>
</head>
<body>---------</body>
</html>
2.  Web server is a program that uses HTTP(Hypertext Transfer Protocol) to serve the files that form Web pages to users, in response to their requests, which are forwarded by their computers 'HTTP clients.
3. HTTP means Hypertext Transfer Protocol. HTTP is the underlying protocol used by the World Wide Web and this protocol defines how messages are formatted and transmitted.
4. An alert box is often used if you want to make sure information comes through to the user.When an alert box pops up, the user will have to click "OK" to proceed.
alert("sometext");
A confirm box is often used if you want the user to verify or accept something.When a confirm box pops up, the user will have to click either "OK" or "Cancel" to proceed.If the user clicks "OK", the box returns true. If the user clicks "Cancel", the box returns false.
confirm("sometext");
5 . The :link selector is used to select unvisited links.
:link{
  cssdeclarations;
}
Eg:
<html>
<head>
<style>
a:link {
  color: green;
}
a:visited {
            color: green;
}
a:hover {
  color: red;
}
a:active {
             color: yellow;
}
</style>
</head>
<body>
</body>
</html>
6. Text property: text color, align, direction etc
Font property: font family, style, weight etc

                                                                                                                        (5 X 2 = 10 marks)

                                                                        Section B
Short essay questions
Answer any 5 questions. Each question carries 5 marks.

7. Bold, italis, subscript, superscript, inserted etc.explain each.
8. <img> attributes:src,height,width etc
<a> tag attributes: href, name etc
Explain its syntax
9. <style>
            <html>
<head>
<style>
h1 {color:red;}
p {color:blue;}
</style>
</head>
<body>
<h1>hello</h1>
<p>hai</p>

</body>
</html>
<link>
<html>
<head>
            <link rel="stylesheet" href="styles.css">
</head>
<body>
<h1>hello</h1>
<p>hai.</p>
</body>
</html>
10. Web server is a program that uses HTTP (Hypertext Transfer Protocol) to serve the files that form Web pages to users, in response to their requests, which are forwarded by their computers' HTTP clients. Explain in details
11. Arithemetic, comparison, logical, bitwise, assignment operator’s etc.explain each.
12. For, while, do..While, for-in loops.explian each.
(5 X 5 = 25 marks)

Section C
Long essay questions
Answer any 1question. It carries 15marks.


13. Tables
            <table >
            <tr>
             <th>-----</th>
            <th>-----</th>
             </tr>
             </table>
Frames
<frameset>
<frame src=”------”>
</framesset>
Eg:
<frameset cols="25%,*,25%">
      <frame src="frame_a.html">
      <frame src="frame_b.html">
</frameset>
 
 forms 
<form>
formelements
</form>
 Marquee
<marquee attribute_name = "attribute_value"....more attributes>
             One or more lines or text message or image
</marquee>
Explain each with example
14..       if
If else
Nested if
For
While
Do…while
For each
Explain each with syntax and example program

(1 X 15 = 15 marks)
_____________________

Comments

Popular posts from this blog

UG, S1 BCA, First internal examination, Introduction to Problem Solving and Web Designing, September 2024