Web Programming using PHP-B.C.A 18-21-First-Internal-Exam-FEB-2020




FIRST INTERNAL
EXAMINATION, FEBRUARY 2020
Department
of Computer Applications, Semester IV
WEB PROGRAMMING USING
PHP
Total : 50
marks Time: 2 hours
Section
A
Answer any 5
questions. Each question carries 2 marks.
1. What
is internet?
The Internet,
sometimes called simply "the Net," is a worldwide system of computer
networks -- a network of networks in which users at any one computer can, if
they have permission, get information from any other computer
2. What is
hypertext?
A computer-based text retrieval system that enables a user to
access particular locations or files in webpages or other electronic documents
by clicking on links within specific webpages or documents
3. How can we
insert an image to a webpage?
Using
the <img> tag and ‘src’ property
4. What is
CSS?
CSS stands for Cascading Style Sheets; CSS describes how HTML elements are to be displayed on screen,
paper, or in other media
5. What is
Javascript?
JavaScript
is the Programming Language for the Web. JavaScript can update and change both
HTML and CSS. JavaScript can calculate, manipulate and validate data.
6. What are
events in Javascript?
JavaScript's interaction with HTML is handled
through events that occur when the user or the browser manipulates a
page. When the page loads, it is called an event. When the user clicks a
button, that click too is an event. Other examples include events
like pressing any key, closing a window, resizing a window, etc.
Section
B
Answer any 5 questions.
Each question carries 5 marks.
7. Explain www
architecture.
WWW stands for World Wide Web. A technical definition of the World
Wide Web is : all the resources and users on the Internet that are using the
Hypertext Transfer Protocol (HTTP). A broader definition comes from the
organization that Web inventor Tim Berners-Lee helped found, the World Wide Web
Consortium (W3C). The World Wide Web is the universe of network-accessible
information, an embodiment of human knowledge.
In simple terms, The World Wide Web is a way of exchanging information
between computers on the Internet, tying them together into a vast collection
of interactive multimedia resources.
8. Explain
different text formatting tags
<b>
- Bold text
<strong> - Important text
<i> - Italic text
<em> - Emphasized text
<mark> - Marked text
<small> - Small text
<del> - Deleted text
<ins> - Inserted text
<sub> - Subscript text
<sup> - Superscript text
9. Explain
attributes of <body> tag with example.
•background: It contains the URL of background image.
•bgcolor: It is used to specify the background color of an image.
•alink: It is used to specify the color of active link.
•link: It is used to specify the color of visited links.
•text: It specify the color of text in a document.
10. Explain the different ways to add CSS to HTML
document with example
<b> - Bold text
<strong>
- Important text
<i> -
Italic text
<em>
- Emphasized text
<mark>
- Marked text
<small>
- Small text
<del>
- Deleted text
<ins>
- Inserted text
<sub>
- Subscript text
<sup>
- Superscript text
11. Explain
functions in Javascript with syntax and example.
JavaScript
functions are defined with the function keyword. You can use a function
declaration or a function expression. Earlier in this tutorial, you learned that functions
are declared with the following syntax:
function functionName(parameters) {
// code to be executed
}
// code to be executed
}
Declared functions are not executed
immediately. They are "saved for later use", and will be executed
later, when they are invoked (called upon).
function myFunction(a, b) {
return a * b;
}
return a * b;
}
12. Which are
the different popup boxes in Javascript? Explain each with syntax, example and
its significance.
JavaScript
has three kind of popup boxes: Alert box, Confirm box, and Prompt box.
Alert Box
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.
Syntax
window.alert("sometext");
Confirm Box
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.
Syntax
window.confirm("sometext");
Prompt Box
A prompt box is often
used if you want the user to input a value before entering a page.
When a prompt box
pops up, the user will have to click either "OK" or
"Cancel" to proceed after entering an input value.
If the user clicks
"OK" the box returns the input value. If the user clicks
"Cancel" the box returns null.
Syntax
window.prompt("sometext","defaultText");
Section
C
Answer any 1 question.
It carries 15 marks.
13. Explain
different form controls in HTML with the help of a Registration form.
Draw a registration form and explain each of the
following.
·
Textinput
·
Checkboxes
·
Radiobutton
·
Select box
·
File select
·
Hidden controls
·
Clickable Buttons
·
Submit and Reset buttons
14. Explain
different operators used in Javascript with syntax and example.
Explain the following:
1. Arithmetic
2. Comparison
3. Bitwise
4. Logical
5. Assignment
6. Special
Comments
Post a Comment