1. Explain JavaScript functions.
Functions in JavaScript are reusable blocks of code designed to perform a specific task. They are
defined using the 'function' keyword. Example: function add(a,b){ return a+b; }
2. Discuss about the various operators in JavaScript with examples.
JavaScript operators include Arithmetic (+, -, *), Comparison (==, ===, >), Logical (&&, ||, !), and
Assignment (=, +=). Example: let x = 10; x += 5;
3. Explain about Mouse events in JavaScript.
Mouse events are actions performed by the user using a mouse, such as onclick, onmouseover,
onmouseout, and ondblclick. Example: <button onclick='alert("Clicked!")'>Click Me</button>
4. What is DOM? Explain about various DOM methods.
The DOM (Document Object Model) represents the structure of a web page. DOM methods include
getElementById(), getElementsByClassName(), querySelector(), and createElement().
5. Explain different Strings in JavaScript.
Strings are sequences of characters enclosed in quotes. Example: let text = 'Hello'; Methods
include length, toUpperCase(), toLowerCase(), and concat().
6. What is array? Discuss about Arrays in JavaScript.
An array stores multiple values in a single variable. Example: let fruits = ['apple', 'banana', 'mango'];
Methods include push(), pop(), and length.
7. Write about the JavaScript Closures.
A closure is a function that remembers its outer variables even after the outer function has finished
executing. Example: function outer(){ let x=5; return function(){return x;} }
8. Explain about JSON.
JSON (JavaScript Object Notation) is a format used to store and exchange data. Example:
{'name':'John', 'age':30}. It is easy to read and used in APIs.
1. Explain different style sheets.
There are three types of style sheets: Inline (inside HTML elements), Internal (within style tags),
and External (in separate .css files).
2. Discuss about CSS Lists with examples.
CSS can style lists using properties like list-style-type, list-style-image. Example: ul { list-style-type:
square; }
3. Explain about CSS Styles.
CSS styles define how HTML elements appear. It includes properties like color, font-size,
background, and margin.
4. What are the benefits of using CSS?
CSS separates content from design, improves website speed, consistency, and simplifies
maintenance.
5. Explain about CSS selectors.
Selectors target HTML elements for styling. Example: p { color: blue; } — selects all p elements.
6. Explain about CSS Box Model with an example.
The box model includes content, padding, border, and margin. Example: div { margin:10px;
border:1px solid; padding:5px; }
1. Explain about Viewports.
Viewport is the visible area of a webpage. The meta viewport tag helps control layout on mobile
browsers. Example: <meta name='viewport' content='width=device-width, initial-scale=1.0'>
2. Discuss about the creation of Responsive Websites.
Responsive websites adjust layout using flexible grids, media queries, and fluid images to fit
various screen sizes.
3. What are Responsive texts? Explain.
Responsive texts automatically resize depending on screen size using units like vw or media
queries.
4. Explain different types of Media Types.
Media types specify device categories: screen (monitors), print (printers), speech (screen readers).
Example: @media screen and (max-width:600px) { ... }
5. Discuss different device breakpoints.
Breakpoints define screen widths where layout changes occur. Example: 480px (mobile), 768px
(tablet), 1024px (desktop).
6. Explain about grid-row and grid-column.
In CSS Grid, grid-row and grid-column define where elements are placed. Example: grid-row: 1/3;
grid-column: 2/4;