1 How do you
generate random numbers in Java Script?
a) Using math.random() c) Using getrandom()
b) Using random() d)Using
generate random()
2 How do you
create a multiline string in JavaScript?
a) Using double quotes b) Using backticks
c) Using parentheses d) Using single quotes
3 What are the let const, and class keywords
introduced in ES6? How do they differ
from their ES5 counterparts?
a) let for block-scoped variables, const for constants, class for classes
b) Jet for global variables,
const for constants, class for functions
c) let for functions, const for
block-scoped variables, class for arrays
d) let for objects, const for
global variables, class for constants
4 What is
jQuery and what is its main purpose in web development?
A) A CSS framework
B) A
JavaScript library for simplifying HTML DOM manipulation, event handling, and animation
C) A backend framework
D) A database management system
5 What is the
purpose of the "alt" attribute in HTML image tags?
a) It specifies the alignment
of the image.
b) It defines the size of the
image.
c) It provides
alternative text for the image for accessibility.
d) It controls the animation of
the image.
6 What is
Bootstrap and what role does it play in web
design?
A) A JavaScript framework
B) A CSS
framework for building responsive and mobile-first websites
C) A database management system
D) A server-side scripting language
7 Which CSS
property is used to control the spacing between lines of text?
a) text-spacing c) letter-spacing
b) line-spacing d) line-height
8 What does
the "float" property in CSS do?
a) It controls the alignment of
text within an element.
b) It removes
an element from the normal flow of the document
and positions it to the left or right
of its containing element.
c) It makes an element visible
or hidden.
d) It rotates an element
clockwise or counterclockwise.
9 What does
the "z-index" property in CSS control?
a) It controls the size of an element.
b) It controls
the position of an element in the stacking order.
c) It controls the opacity of
an element.
d) It controls the rotation of
an element.
10 Which
HTML tag is used to define a table row?
a) <tr> c) <th>
b) <td> d) <table>
11 Which
keyword is used to declare a variable in JavaScript?
a) var c)
v
b) variable d) let
12 Which
operator is used for strict equality comparison in JavaScript?
a) == c) ===
b) != d) !=
13 Which
function is used to output data to the console in JavaScript?
a)
print() c) display()
b) log() d) console.log()
14 Which
built-in method is used to convert a string to an integer in JavaScript?
a) parseInt ()
c) convert
Toint()
d) string Tolnt() b) toInteger()
15 What
does the method querySelector() do in JavaScript?
a) at selects multiple elements
based on a class name.
b) It selects
the first element based on a CSS selector.
c) It selects an element based
on its ID.
d) It selects all elements of a
specific tag name.
16 How
do VPNs (Virtual Private Networks) enhance intranet security and connectivity?
VPNs encrypt data, making it
secure during transmission. They allow remote access to intranet resources by
creating a
secure, private connection over
the internet.
17 How
does an interactive website differ from static and dynamic websites?
Static websites are fixed and show the same content to all
users.
Dynamic websites fetch content
dynamically from a database based on user interactions.
Interactive
websites provide richer engagement, allowing user input and interactive
elements like forms, animations,
and real-time updates
18 Which
code editor do you prefer for web design and development projects, and why?
Examples
include VS Code for its flexibility, extensions, and debugging tools, or
Sublime Text for its lightweight performance.
19 Can
you explain the basic purpose of FTP (File Transfer Protocol) software in web development?
FTP is used to transfer files
between a local computer and a web server, making it essential for uploading
and managing
website content.
20 How
do you create HTML login form with submit button?
<form action="/submit-login"
method="POST">
<label
for="username">Username:</label>
<input type="text" id="username"
name="username">
<label
for="password">Password:</label>
<input type="password"
id="password" name="password">
<button
type="submit">Login</button>
</form>
21 When
should I consider using SVG images?
Use SVGs for scalable graphics
like icons and logos because they maintain quality at any resolution and are
lightweight.
22 What
is an ID selector in CSS?
An ID selector targets a specific element using its unique
ID, prefixed with # in CSS.
23 How
do you apply multiple CSS classes to a single HTML element?
<div class="class1
class2"></div>
24 How
do you create functions in JavaScript?
function
greet(name) { return `Hello, ${name}!`;
}
25 Can
you explain the difference between function declarations and function expressions?
Function
Declaration: Defined with function keyword and hoisted Function Expression:
Stored in a variable and not hoisted.
26 What
are arrays and objects in JavaScript?
Array:
Ordered collection of elements. Example: [1, 2, 3]
Object: Key-value pairs.
Example: { name:
"Alice", age: 25 }
27. What are arrays and objects in JavaScript? Array:
Ordered collection of elements. Example: [1, 2, 3]
Object: Key-value pairs.
Example: { name: "Alice", age: 25 }
28 Can
you explain the difference for loop, while loop and do while loop?
For loop:
Executes a set number of times While loop: Runs while a condition is true.
Do-while loop: Executes at least once, then checks the condition.
29 How
do you handle conditional statement in java
script?
Using if-else, switch, or ternary operators.
30 How
do you create new Google Sheet is your Google
Drive
Open Google Drive.
Click New > Google Sheets.
Name and customize your sheet.