WDD Viva Questions

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

WDD Viva Questions and Answers

1) How many types of heading does an HTML contain?

The HTML contains six types of headings which are defined with the <h1> to <h6> tags. Each
type of heading tag displays different text size from another. So, <h1> is the largest heading tag
and <h6> is the smallest one

2) How to create a hyperlink in HTML?

The HTML provides an anchor tag to create a hyperlink that links one page to another page.
These tags can appear in any of the following ways:

o Unvisited link - It is displayed, underlined and blue.


o Visited link - It is displayed, underlined and purple.
o Active link - It is displayed, underlined and red.

3) What are some common lists that are used when designing a page?

There are many common lists which are used to design a page. You can choose any or a
combination of the following list types:

o Ordered list - The ordered list displays elements in numbered format. It is represented by
<ol> tag.
o Unordered list - The unordered list displays elements in bulleted format. It is represented
by <ul> tag.
o Definition list - The definition list displays elements in definition form like in dictionary.
The <dl>, <dt> and <dd> tags are used to define description list.

4)Does a hyperlink only apply to text?

No, you can use hyperlinks on text and images both. The HTML anchor tag defines a hyperlink
that links one page to another page. The "href" attribute is the most important attribute of the
HTML anchor tag.
Syntax
<a href = "..........."> Link Text </a>

5)What is a style sheet? A style sheet is used to build a consistent, transportable, and well-
designed style template. You can add these templates on several different web pages. It
describes the look and formatting of a document written in markup language.
6)Is it possible to change the color of the bullet?

The color of the bullet is always the color of the first text of the list. So, if you want to change
the color of the bullet, you must change the color of the text

7)How to make a picture of a background image of a web page?

To make a picture a background image on a web page, you should put the following tag code
after the </head> tag.

<body background = "image.gif">

8)What is the use of an iframe tag?

An iframe is used to display a web page within a web page.

9)Which type of video formats are supported by HTML5?

HTML 5 supports three types of video format:

o mp4
o WebM
o Ogg

10)How can you integrate CSS on a web page?

There are three methods to integrate CSS on web pages.

1. Inline method - It is used to insert style sheets in HTML document


2. Embedded/Internal method - It is used to add a unique style to a single document
3. Linked/Imported/External method - It is used when you want to make changes on
multiple pages.

11) What is a CSS selector?

It is a string that identifies the elements to which a particular declaration apply. It is also referred
as a link between the HTML document and the style sheet. It is equivalent of HTML elements.
There are several different types of selectors in CSS: -
o CSS Element Selector
o CSS Id Selector
o CSS Class Selector
o CSS Universal Selector
o CSS Group Selector

12)Name some CSS style components.

Some CSS Style components are:

o Selector
o Property
o Value

13)Name the property used to specify the background color of an element.

The background-color property is used to specify the background color of the element.

14)What is the difference between class selectors and id selectors?

An overall block is given to class selector while id selectors take only a single element differing
from other elements.

15)What is the difference between inline, embedded and external style sheets?

Inline: Inline Style Sheet is used to style only a small piece of code.
Embedded: Embedded style sheets are put between the <head>...</head> tags.
External: This is used to apply the style to all the pages within your website by changing just
one style sheet.
16)What is JavaScript?

JavaScript is a scripting language. It is different from Java language. It is object-based,


lightweight, cross-platform translated language. It is widely used for client-side validation. The
JavaScript Translator (embedded in the browser) is responsible for translating the JavaScript
code for the web browser. 

17)Define a named function in JavaScript.

The function which has named at the time of definition is called a named function. 
18)If we want to return the character from a specific index which method is used?

The JavaScript string charAt() method is used to find out a char value present at the specified
index. The index number starts from 0 and goes to n-1, where n is the length of the string. The
index value can't be a negative, greater than or equal to the length of the string.

19)Is JavaScript case sensitive language?

Yes, JavaScript is a case sensitive language. 

20)How to write a comment in JavaScript?

There are two types of comments in JavaScript.


1. Single Line Comment: It is represented by // (double forward slash)
2. Multi-Line Comment: Slash represents it with asterisk symbol as /* write comment here
*/

21)How to create a function in JavaScript?

To create a function in JavaScript, follow the following syntax.


function function_name()
{  
//function body  
}  

22)What are the different data types present in JavaScript?

There are two types of data types in JavaScript:

o Primitive data types


o Non- Primitive data types

23)What is the difference between == and ===?

The == operator checks equality only whereas === checks equality, and data type, i.e., a value
must be of the same type.

24)How to create an array in JavaScript?

There are 3 ways to create an array in JavaScript.


1. By array literal
2. By creating an instance of Array
3. By using an Array constructor
4.

25)What is the difference between undefined value and null value?

Undefined value: A value that is not defined and has no keyword is known as undefined value. 

Null: The Null data type is used to represent a non-existent, null, or a invalid value i.e. no value
at all.

26)Are Java and JavaScript same?

No, Java and JavaScript are the two different languages. Java is a robust, secured and object-
oriented programming language whereas JavaScript is a client-side scripting language with some
limitations.

27)What are the pop-up boxes available in JavaScript?

o Alert Box
o Confirm Box
o Prompt Box

28)What is Bootstrap?

Bootstrap is a platform for web development based on a front-end framework. It is used to create
exceptional responsive designs using HTML, and CSS. These templates are used for forms,
tables, buttons, typography, models, tables, navigation, carousels and images. Bootstrap also has
Javascript plugins, which are optional. Bootstrap is mostly preferred for developing mobile web
applications

29)What is Bootstrap Grid System?

Bootstrap includes a responsive, mobile-first fluid grid system that appropriately scales up to 12
columns as the device or viewport size increases. It includes predefined classes for easy layout
options, as well as powerful mixins for generating more semantic layouts

30)What is a Bootstrap Container?

A bootstrap container is a class which is useful and creates a central area within the page where
our site content can be put within. The advantage of the bootstrap .container is that it is
responsive and will place all our other HTML code.

You might also like