WT Practical Oral Questions

Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

lOMoARcPSD|39272817

WT practical oral questions

computer engg (Dr. D.Y. Patil Institute of Engineering, Management and Research)

Scan to open on Studocu

Studocu is not sponsored or endorsed by any college or university


Downloaded by yojitha k ([email protected])
lOMoARcPSD|39272817

WEB TECHNOLOGY Lab VIVA Questions :-


css :-

1. What are Cascading Style Sheets?


(CSS) is a list of statements (or rules) that can assign various
rendering properties to HTML elements. Style rules can be specified
for a single element occurrence, multiple elements, and entire
document, or even multiple documents at once.

2. What is class?
A group of instances of the same element to which a unique style
can be attached.

3. What is grouping?
Gathering into a comma separated list two or more selectors that
share the same style or into a semicolon separated list two or more
declarations that are attached to the same selector.

4. What is property?
Property is a stylistic parameter (attribute) that can be influenced
through CSS, e.g. font or width. There must always be a
corresponding value or values set to each property.

5. What is the CSS clear property?


The clear property specifies which sides of an element where other
floating elements are not allowed.

6.What are the necessities of using HTML forms?


1. Gathering user information
2. Conducting Surveys
3. Interactive services

7. What are the sequences of steps for each HTTP


request from a client to the server?
1. Making the connection
2. Making a request
3. The response
4. Closing the connection

8. What is HTML?
HTML (HyperText Markup Language) is a Universal language
which allows an individual using special code to create web pages to
be viewed on the Internet.

9. What is a tag?
In HTML, a tag tells the browser what to do. When you write an
HTML page, you enter tags for many reasons; to change the
appearance of text, to show a graphic, or to make a link to another
page.

10. How can I include comments in HTML?


An HTML comment begins with “<!—“, ends with “–> “, and does
not contain “–“ or “>” anywhere in the comment.

11. What is a Hypertext link?


Downloaded by yojitha k ([email protected])
lOMoARcPSD|39272817

A hypertext link is a special tag that links one page to another page
or resource. If you click the link, the browser jumps to the link’s
destination.

12. How do you align a table to the right (or left)?


You use the <table align=”right”> property to float a table to the
right. Put left in place of right to float right.

13. How do I open a link into a new window?


Add target=”_blank” to your link syntax.

14.What is the jsp:plugin action ?


This action lets you insert the browser-specific OBJECT or EMBED
element needed to specify that the browser run an applet using the
Java plugin.

15.What’s relationship between JavaScript and


ECMAScript?
ECMAScript is yet another name for JavaScript (other names
include LiveScript). The current JavaScript that you see supported
in browsers is ECMAScript revision 3.

16.What are JavaScript types?


Number, String, Boolean, Function, Object, Null, Undefined.

17.What does isNaN function do?


Return true if the argument is not a number.

18.What is negative infinity?


It’s a number in JavaScript, derived by dividing negative number by
zero.

19.What boolean operators does JavaScript support?


– &&, || and !

20.What do “1”+2+4 evaluate to? –


Since 1 is a string, everything is a string, so the result is 124.

21.How about 2+5+”8″?


Since 2 and 5 are integers, this is number arithmetic, since 8 is a
string, it’s concatenation, so 78 is the result.

22.What looping structures are there in JavaScript? –


for, while, do-while loops, but no foreach.

23.How do you create a new object in JavaScript? –


var obj = new Object(); or var obj = {};

24.How do you assign object properties? –


obj[“age”] = 17 or obj.age = 17.

25. What is an Empty HTML Tag?


Empty HTML tags are tags that do not need to be closed when one
is creating a HTML document.
Example: br (<br / )
Downloaded by yojitha k ([email protected])
lOMoARcPSD|39272817

26., . What are the ways to use namespaces?


There are two ways to use namespaces:
• Declare a default namespace
• Associate a prefix with a namespace

27. Do all HTML tags have end tag?


No. There are some HTML tags that don't need a closing tag. For example: <image> tag, <br> tag.

28. How do you keep list elements straight in an HTML file?


You can keep the list elements straight by using indents.

29. Does a hyperlink only apply to text?


No, you can use hyperlinks on text and images both.

30. What is a style sheet?


A style sheet is used to build a consistent, transportable, and well designed style template. You can add these templat
es on several different web pages.

31. Can you create a multi colored text on a web page?


Yes. To create a multicolor text on a web page you can use <font color ="color"> </font> for the specific texts you
want to color.

32. What is a marquee?


Marquee is used to put the scrolling text on a web page. You should put the text which you want to scroll within the
<marquee>......</marquee> tag.

33. What are XML Namespaces?


XML namespaces are used to avoid element name conflicts, and it can be avoided by using prefix before the name.

34. What is XSL?


XSL is a language used with XML for expressing style sheets as like CSS. It describes how to display an XML docu
ment for a given type.

35. What is difference between GenericServlet and HttpServlet?


The GenericServlet is protocol independent whereas HttpServlet is HTTP protocol specific. HttpServlet provides ad
ditional functionalities such as state management etc.

36) What are the important methods of XMLHttpRequest?


• open()
• send()
• setRequestHeader()

37) What is JSON in AJAX?


JSON stands for JavaScript Object Notation. It is easy to understand and data exchange is fast than XML. It supports
array.

38) What are the types of post back in AJAX?


There are two types of post back in AJAX.
• Synchronous Postback
• Asynchronous Postback

39) What is stateful session bean?


Stateful session bean is a business object that maintains conversational state with the client.

Downloaded by yojitha k ([email protected])


lOMoARcPSD|39272817

40) What is singleton session bean?


Singleton session bean is instantiated only once for the application. It exists for the life cycle of the application.

41) What is Entity Bean?


Entity Bean is a server side component that represents the persistent data. Since EJB 3.x, it is replaced by JPA.

42) What are controllers in AngularJS?


Controllers are JavaScript functions that are used to provide data and logic to HTML UI. It acts as an interface betwe
en Server and HTML UI.

43. What is JSP?


Java Server Pages technology (JSP) is used to create dynamic web page. It is an extension to the servlet technology.
A JSP page is internally converted into servlet.

44. Is jQuery a W3C standard?


Ans: No. jQuery is not a W3C standard.

45. What is the basic need to start with jQuery?


Ans: To start with jQuery, one need to make reference of it's library.

46. Which is the starting point of code execution in jQuery?


Ans: The starting point of jQuery code execution is $(document).ready() function which is executed when DOM is l
oaded.

47. What are the JavaScript data types?


There are two types of data types in JavaScript:
1. Primitive Data Types
2. Non-primitive Data Types

48. What is the use of window object?


The window object is automatically created by the browser that represents a window of a browser.

49. What is DOM? What is the use of document object?


DOM stands for Document Object Model. A document object represent the html document.

50. What is JavaScript?


JavaScript is a scripting language. It is different from Java language. It is object-based, lightweight and cross platfor
m. It is widely used for client side validation

Downloaded by yojitha k ([email protected])

You might also like