Page 323 - Web Applications (803) Class 12
P. 323
Communication
Viva Voce Questions
1. What is the difference between an alert box and a confirmation box?
Ans.
Alert Box Confirmation Box
Displays only one button—OK button Displays two buttons—OK and Cancel.
2. Name the data type of variables in JavaScript.
Ans. Variables are object data types
3. Name the statement in JavaScript used to display text on screen.
Ans. document.write( )
4. What is an add-in? Name the two add-ins.
Ans. An add-in is a software component that increases the functionality of larger programs. Pickit Free Images and
Web Video Player are the two examples of add-ins.
5. What is a snippet?
Ans. A “snippet” is a small, reusable piece of code that can be integrated into a larger code base.
6. Define dynamic web template.
Ans. An HTML-based dynamic web template is a master copy of a web page that you can construct to include settings,
formatting, and page elements including text, graphics, page layout, styles, and areas of a webpage that can be
changed.
7. How does SEO work?
Ans. To raise the ranking and the visibility of any website, SEO works by optimising the content of a website, performing
keyword research, and obtaining inbound links.
8. Explain the prompt() method.
Ans. The prompt( ) method asks the user to enter a value. It has two buttons, one for ‘Ok’ and one for ‘Cancel’.
9. Define confirm() method.
Ans. The confirm( ) method is used to obtain confirmation from the user about an action.
10. What is a block in JavaScript?
Ans. A block is a collection of statements that are joined together with braces to form a single statement.
11. What is the use of switch statement in JavaScript?
Ans. The switch statement is used to pick one of many code blocks to be performed.
12. Name few movie making/editing tools.
Ans. VirtualDub, Wax, Blender
13. What is the difference between var, and const keywords?
Ans. The var keyword is used to declare a variable. The const keyword is used to declare a constant. Constants cannot
be reassigned once they have been declared.
14. What are the different data types in JavaScript?
Ans. The different data types in JavaScript are:
• Primitive data types: These are the basic data types in JavaScript. Examples: number, string, boolean, null, and
undefined.
• Non-primitive data types: These are more complex data types in JavaScript. Examples: object, array, function,
and symbol.
Viva Voce Questions 321

