K.S.POLYTECHNIC

WEB PROGRAMMING LAB VIVA QUESTIONS

1)What is HTML?

HyperText Markup Language (HTML) is the standard markup language for creating web pages and web applications.

2)What is mark up Language?
Markup languagesare designed for the processing, definition and presentation of text. Thelanguagespecifies code for formatting, both the layout and style, within a text file. The code used to specify the formatting are called tags. HTMLisa an example of a widely known and usedmarkup language.

3)What is tag?

HTML tagsare the hidden keywords within a web page that define how the browser must format and display the content. Mosttagsmust have two parts, an opening and a closing part.

4)What is xhtml?

  • <html>, <head>, <title>, and <body> aremandatory
  • XHTML elements must beproperly nested
  • XHTML elements must always beclosed
  • XHTML elements must be inlowercase
  • XHTML documents must haveone root element
  • Attribute names must be inlower case
  • Attribute values must bequoted

5)What is Event Driven Programming?

In Event-Driven Programming program source code are executed at completely unpredictable time, which are mainly triggered by user interactions with the executing program.

6)What is event handler?
An event handler is a script that is implicitly executed in response to the appearance of an event.

7)What is Onmouseover event?

Theonmouseoverevent occurs when the mouse pointer is moved onto an element.

8)What is Onmouseout event?

Theonmouseoutevent occurs when the mouse pointer is moved out of an element.

9)What is onclick event?

The setTimeout() method calls a function or evaluates an expression after a specified number of milliseconds.

10)What is XML?

  • XML stands for EXtensible Markup Language
  • XML is a markup language much like HTML
  • XML was designed to store and transport data
  • XML was designed to be self-descriptive

11) What is the difference of XML when compared to HTML.

XML and HTML were designed with different goals:

  • XML was designed to carry data - with focus on what data is
  • HTML was designed to display data - with focus on how data looks
  • XML tags are user defined, no predefined tags are used.

12)What is CSS?

Cascading Style Sheets(CSS) is a style sheet language used for describing the presentation of a document written in a markup language.

13)What is XSLT?

XSLT(Extensible Stylesheet Language Transformations) is a language for transforming XML documents into other XML documents.

14)What is a function?

afunctionis a type of procedure or routine, which returns a value.

15)What is substr?

Thesubstr() function returns a part of a string.

16)What is mt_rand ?

Themt_rand() random number generator.

17)What is form tag?

TheHTMLformtagis used for creating aformfor user input. Aform can contain textfields, checkboxes, radio-buttons and more.Formsare used to pass user-data to a specified URL.

18)What are the attributes of form tag?

  1. Action
  2. Method

19)What is action attribute?

The action attribute specifies where to send the form-data when a form is submitted.

20)What is method attribute in form tag?

The method attribute specifies how to send form-data.

21)What is GET method in form handling?

Appends form-data into the URL in name/value pairs

The length of a URL is limited (about 3000 characters)

22)What is POST method in form handling?

Appends form-data inside the body of the HTTP request (data is not shown is in URL)

Has no size limitations

23)What is Session?

Asessionis a way to store information (in variables) to be used across multiple pages.