It 2024-25
It 2024-25
1) <meta http-equiv= refresh”>, the page will get refresh after every five seconds.
2) The Height attribute sets the height of the video player.
3) HTML program should start with <! DOCTYPE html>
4) <img> tag with alt attribute also contribute to optimization.
5) The Pattern attribute of <input> tag specifies a regular expression to check the input values.
6) CSS stands for Cascading Style Sheet.
7) HTML stands for Hyper Text Markup Language.
8) <input type=”color”> defines a color picker
9) Metadata will not be displayed on the web page
10) The Position Property is used to set position for an element
11) The Float Property defines the ..of content.
12) The <form> </form> is used to create a form.
13) <input type=”Number”> defines a field of entering number.
14) <input type=”Image”> defines an image as a submit button.
15) <input type=”Email”> defines a field for an email address
16) <input type=”Range”> defines the range control.
17) <input type=”Datetime-Local”> defines a date picker that includes the year, month dat and time.
18) <input type=”Files”> defines a field select field and a ‘Browser’ button for file uploads.
19) <input type=”tel”> defines a field input fields that should contain a telephone number.
20) The max attribute of <input> tag specifies the maximum value for an input field.
21) The Pattern attribute of <input> tag specifies a regular expression to check the input fields.
22) The read only attribute of <input> tag specifies that the input filed is read only
23) The Autofocus attribute of <input> tag specifies that the input field should automatically get focus when the page
loaded.
24) The Width attribute of <input> tag specifies the width of an <input type=”image”>
25) The Class attribute of <input> tag is used tp apply CSS style to the individual input element.
26) The Name attribute of <input> tag specifies the name of the meta data
27) The <meta> tag is used by search engine to search information that is provided with the webpage.
28) <meta http-equiv=”set cookies”>, browser sends the cookies back to the server.
29)The Declaration block can contain one or more declaration seperated by a semicolon
30) Inline CSS is used to apply CSS on a single line of element
31) The External style sheet facilitates to change the look of the entire web site bu changing just one file.
32) The External style sheet is used when you want to make changes on multiple pages.
33) External style sheet uses <link> on every page
34) External style sheet can be written in text editor and must be saved with .CSS extension.
35) The Background -color property is used to set background color in your webpage.
36) The Text-Decoration property is used to add strike through marks, underline, overline etc.
37) The Text-Align property is used to control the horizontol alignment of any block level text.
38) The Font-size property allows you to control the size of the font.
39) The Background-image property is used to set an image as the background of webpage.
40) The ID selector select the id attribute of an HTML element to select a specific element.
41) The Class Selector is used to with Period charcater followed by class Name
42) There are four types of Possitioning in CSS.
43) The static position is defauld position for HTML element.
44) Float:Left keeps the element float on left side of the container.
45) Float:Right keeps the element float on Right side of the container.
46) The Reversed attribute of <ol> tag specifies that the items of the list are specified in the reverse order.
47) Unordered list is also called as bulleted list.
48) Ordered list can be numerical or alphabetical.
49) To Define a defination list <dl> tag is used.
50) The <dd> is used to define term’s defination.
51) The loop attribute of audio tag is sets the audio will start over again, evey time it is finished.
52) An image with multiple hyperlinks is called as Hotspots.
53) To Create a Client side image map Usemap attribute of <img> tag is used
A Answer
1) <input type=”color”> Define the Color Picker
2) <input type=”email”> Define the field for email address
3) http-equiv Used for http response message headers
4) Property It is a type of attribute of HTML document
5) Text-align This is property is used to control horizontal alignment of text.
6) Class Selector
.
Written with period ( )character
7) Static Positioning This property is default position for HTML elements
8) <ul> Create an Unorder list
9) <Dt> Tag used to define term
10) Src Specifies URL of audio/video file.
11) Coords Specifies coordinates of the clickable regions
12) Web host Owns and Manages web servers
A Answer
(1) Name ____ Specifies the name of meta data
(2) Value ____ These are assigned to CSS properties
(3) Color ____ Changes the color of the text
(4) ID Selector ____ Written with has(#) character
(5) CSS property ____ Text-decoration
(6) Webpage optimization factor ____ Order of tags
(7) Array ____ Variable which can hold more than one
variable
(8) Affects all element of the page ____ Internal stylesheet
(9) <ol> ____ Defines ordered list
(10) Type ____ Defines values for the list
(11) <audio> ____ This element enables you to add audio files
on webpages
(12) Alt ____ Specifies extra information about clickable
area
(13) Dedicated Hosting ____ These are paid hosting servers for large
websites
(14) Color ____
1) Deffine SEO.
Answer : -
i) SEO srands for Search Engine Optimization SEO is a technique used for designing and developing a
website results. It is a subset of search engine marketing.
ii) SEO is useful in incresing the number of vistors to a website.
iii) There are two types of optimization:-
iv) On-Page SEO :- This includes Provision of good content, good keywords selection, putting keywords on
correct places, giving appropriate tittle to every page.
v) Off-Page SEO :- It includes link building, increasing link popularity by submitting open directories, link
exchange etc.
A B
(1) Switch case (A) Combines initialization, condition and loop iteration
(2) For Loop (B) Skip statement block and take the control at the
beginning for next iteration
(3) Break (C) Server-side script
(4) Continue (D) Used to jump out of loop
(E) Decision statement
Ans. (1)-(E), (2)-(A), (3)-(D), (4)-(B)
A B
(1) Window (A) Displays dialog box containing message with ok and
object cancel button
(2) Alert() (B) Opens the new window
(3) Confirm() (C) Displays dialog box to get input from the user
(4) Prompt() (D) Parent object of all other objects
(5) Open() (E) Displays box with ok button
Ans. (1)-(D), (2)-(E), (3)-(A), (4)-(C), (5)-(B)
A B
(1) Substring() (A) Returns the characters you
specificed
(2) Trim() (B) Converts a string into lower case
(3) ToLowerCase() (C) Returns length of string
(4) ToUpperCase() (D) Converts the string into Upper case
(E) Removes white spaces from both
sides of a string
• IaaS provides automated and scaleable environment that provide a high degree of control
and flexibility for the user.
• Instead of Purchase Hardwar, user pay for IaaS on demand.
• Examples : Amazon web service (AWS), Microsoft Azure VM, Google Computer Engine
(GCE)
iv) Platform as a service (PaaS)
• A service provides offers access to a cloud-based environment in which can develop, manage and
deliver applications.
• PaaS provides a platform with tools to test, develop and host applications in the same
environment.
• Example: Google App Engine
v) Software as a service (SaaS)
• A service provider devlivers software and applications through the internet or an APL.
• There are three basic types of deployment of cloud computing that are Public Private and Hybrid.
• Public Cloud : In Public Cloud, all the services and supporting infrastructure are managed off site
over the internet and shared across multiple user.
• Public Cloud : These are more efficient and inexpensive than private and hybrid cloud solutions.
• Private Cloud :- As the name suggests private cloud provided I.T service through the internet or a
private network to selected users rather than to gerneral public
• In Private cloud data is protected behind the firwall.
• Private cloud solutions are preferred for enhanced security and privacy by the users.
• Hybrid Cloud : Hybrid Cloud environment combines both public and private cloud elements.
• Communicaiton in hybrid cloud is done over an a encrypted connection and allow for the protability
of data and applications.
• Hybrid cloud allows greater flexibility as compared to that of public and private cloud solutions.
6) Explain some benefits of Cloud Computing.
Answer:-
Benefits of Cloud Computing are as follows :
i) Cost Saving : Cloud computing solutions are inexpensive than physical infrastructure.
ii) Reliable : Cloud computing solutions are more reliable than In-house I.T infrastructure.
iii) Mobility : Cloud computing solutions are more portable because user can access data anytime,
anywhere as required.
iv) Scalability : Cloud computing is more scalable than physical storage.
v) Automatic update : Date on cloud gets updated automatically
7) Give Brief idea about AI.
Answer:-
i) Artificaial Intelligent is the study of making intelligent machine’s that can perform operation like
human being.
ii) AI is different from robotics, but related to some extent, in which machines sense their
environment, perform calculations and do physical tasks either by themselves.
Different fields of AI are as follows:
iii) Machine Learning is the study of computer algorithms that improve automatically through
experience.
iv) Neural networks limited the brains array of interconnected neurons, and relay information
between various units to find connections and drive meaning from data.
v) Deep learning utilizes really big netural networks and a lot of computiing power to find complex
pattern in data, for application such as image and speech recognition.
vi) Natural Language : processing involves analyzing and understanding human language and
responding to it.
TRUE OR FALSE
1 .PHP runs on client side: - False
2. PHP is very difficult to use: - False
3. PHP is faster than other scripting language: - True
4. PHP files are saved with .html extension: - False
5. Variables are used to store values: - True
6. A variable name can contain only alpha-numeric characters and underscores: - True
7. A variable declared outside a function has a GLOBAL SCOPE: - True
8. A variable declared within a function has a LOCAL SCOPE: - True
9. To check data type of variable var_ put () method is used: - False
10. Comments are the non executable statement in PHP code:- True
11. For each loop works only on arrays:- True
12. Strrev() function reverses a string:- True
13. Strpos() Function reverses a string:- True
14. Substr () function returns a part of string :- True
15. Strlwer () function converts a string to lower case:- False
16. Ucwords() function converts the first characters of each word in a string to uppercase:- True
17. A string is series of characters:- True
18. In PHP, array() function is used to create a array:- True
19. Multi-dimensional arrays are the arrays with named keys:- False
20. A function name cannot start with a number:- True
21. Arguments are specified after the function name, inside the parentheses:- True
22. Return statement is used to return a value of a function :- True
23. The PHP superglobals $_GET and $_POST are used to collect form data:- True
24. $ _ POST is an array of variables passed via the HTTP POST method:- True
25. Information sent form a form with GET method is not visible to everyone:- False
26. GET has limits on the amount of information to send:- True
27. isset ()method in php is used to check whether variable has value or not:- True
28. Cookies store visited page on browser to optimize search:- True
29. PHP data object helps us to connect php code in uniform method of access in multiple databases:- True
Q.3 Multiple Choice Question (Single Correct)
1. The program file of PHP have____________extension.
(A) .asp (B) .PHP (C) .Js (D) .txt
2. A variable declared_____________ a function has global scope.
(A) Outside (B) anywhere (C) inside (D)none
8. _________ is an array of variables passed via URL parameters and__________ is an array of variables passed via
HTTP POST method.
(A) $GET (B) $_GET (C) $_POST (D) $POST
Q.5 Multiple Choice Question (Three Correct)
1. PHP runs on following platforms_________
(A) Systems (B) Words (C) Linux (D) Excel
(E) Unix (F) Windows
2. Programming languages for server side programming are
(A) PHP (B) Windows (C) Linux (D) Python
(E) Unix (F) Java and JSP
3. Features of PHP are_________
(A) Difficult (B) Simple (C) Error Creating
(D) Platform Dependent (E) Error Reporting (F) Platform Dependent
4. Variables are used for storing values such as ________,___________, and __________
(A) Character (B) Numeric (C) Objects (D) Methods
(E) Functions (F) Memory addresses
1.
A B
(1) Traditional Commerce (a) Scope is Global
(2) E-Commerce (b) Sells products to an intermediate buyer
(3) B2C (c) Helps consumer to sell their assets by publishing
information on website
(4) B2B (d) Scope is local
(5) C2C (e) Consumers have products or services of value
that can be consumed by business
(6) C2B (f) Sells products directly to a customer
Ans:- (1) – (d), (2) – (a), (3) – (f), (4) – (b), (5) – (c), (6) – (e)
2.
A B
(1) Credit cards (a) Money sent from one bank to another
(2) Mobile payments (b) Type of prepaid account in which user can store
money
(3) Bank transfer (c) Cards used by customers
(4) E-Wallets (d) Forms of E-Commerce
(e) Offers quick solution for customers to purchase
on e-commerce websites
Ans:- (1) – (c), (2) – (e), (3) – (a), (4) – (b)
3.
A B
ADVANCED JAVASCRIPT
<html>
<head>
<title>JS program to multiply two numbers</title>
</head>
<body>
<script>
var n1, n2, prod;
n1=parseInt(prompt("Enter first number:"));
n2=parseInt(prompt("Enter second number:"));
prod=n1*n2;
alert("Product - " + prod);
</script></body> </html>
<html>
<head>
<title>JS program to divide two numbers</title>
</head><body>
<script>
var n1, n2, q;
n1=parseInt(prompt("Enter first number:"));
n2=parseInt(prompt("Enter second number:"));
q=n1/n2;
alert("Division - " + q);
</script></body></html>
<html>
<head>
<title>JS program to calculate area of circle</title>
</head>
<body>
<script>
var r, area;
r=parseInt(prompt("Enter radius of the circle:"));
area=3.14*r*r;
alert("Area - " + area);
</script>
</body>
</html>
<html>
<head>
<title>JS program to check number is odd or even</title>
</head><body>
<script>
var n;
n=parseInt(prompt("Enter a number:"));
if(n%2==0)
alert("Number is even");
else
alert("Number is odd");
</script>
</body>
</html>
10. Write JavaScript code to enter two values and display the largest.
<html>
<head>
<title>JS program to find largest number</title>
</head>
<body>
<script>
var n1, n2;
n1=parseInt(prompt("Enter first number:"));
n2=parseInt(prompt("Enter second number:"));
if(n1>n2)
alert("Larger number - " + n1);
else
alert("Larger number - " + n2);
</script>
</body>
</html>
Suresh V. Malusare
SIR EINSTEIN ACADEMY
13.Write JavaScript code to print numbers from 1 to 10.
<html>
<head>
<title>JS program to print numbers from 1 to 10</title>
</head>
<body>
<script>
var i;
document.write("Numbers from 1 to 10");
for(i=1;i<=10;i++)
{
document.write("<br>"+i);
}
</script>
</body>
</html>
<html>
<head>
<title>JS program to print sum of 50 natural numbers.</title>
</head>
<body>
<script>
var i, sum=0;
document.write("Sum of numbers from 1 to 50");
for(i=1;i<=50;i++)
{
document.write("<br>"+i);
sum=sum+i;
}
document.write("<br>Sum - "+sum);
</script>
</body>
</html>
17.Write JavaScript code when user click on button, it will display sum of even
numbers from 1 to 10.
<html>
<head>
<title>JS program to print sum of even numbers.</title>
<script>
function display_sum() {
var i, sum=0;
for(i=1;i<=10;i++)
{
if(i%2==0)
sum=sum+i;
}
document.getElementById("disp").innerHTML = "Sum of even numbers from 1to10 - " + sum;
}
</script>
</head>
<body>
<input type="button" name="disp_sum" value="Display Sum" onclick="display_sum()">
<br>
<p id="disp"> </p>
</body>
</html>
Suresh V. Malusare
SIR EINSTEIN ACADEMY
18.Write JavaScript code to print all odd numbers from 50 to 100.
<html>
<head>
<title>JS program </title>
</head>
<body>
<h1>JS program to print odd numbers from 50 to 100</h1>
<script>
var i;
document.write("Odd Numbers from 50 to 100");
for(i=50;i<=100;i++)
{
if(i%2!=0)
document.write("<br>"+i);
}
</script></body> </html>
<html>
<head>
<title>JS program to display square of a number</title>
</head>
<body>
<script>
var n, r;
n=parseInt(prompt("Enter a number:"));
r=n*n
alert("Square - " + r);
</script>
</body>
</html>
21.Write JavaScript code to count length of accepted string after click on the button.
<html>
<head>
<title>JS program</title>
<script>
function display_length() {
var str, len;
str = form1.str_box.value;
len = str.length;
document.getElementById("disp").innerHTML = "Length of String - " + len;
}
</script>
</head>
<body>
<h1>JS program to print length of string</h1>
<form name="form1">
<input type="text" name="str_box" size=50>
<input type="button" name="disp_strlen" value="Display Length" onclick="display_length()">
</form>
<br>
<p id="disp"> </p>
</body>
</html>
<body>
<h1>JS program to display difference between dates</h1>
<form name="form1">
<input type="date" name="date1">
<br> <br>
<input type="date" name="date2">
<br> <br>
<input type="button" name="disp_diff" value="Display Difference" onclick="display_diff()">
</form>
<br>
<p id="disp"> </p>
</body>
</html>
23.Write JavaScript code to take a input of string and reverse the string in output.
<html>
<head>
<title>JS program - revverse of string</title>
<script>
function display_reverse(str) {
var newstr;
newstr = str.split("").reverse().join("")
document.write("Reverse of String - " + newstr);
}
</script>
</head>
<body>
<h1>JS program to reverse a string</h1>
<script>
var s;
s = prompt("Input a string");
display_reverse(s)
</script>
</body>
</html>
Suresh V. Malusare
SIR EINSTEIN ACADEMY
22.Write JavaScript code to accept two dates and find the difference in those dates.
<html>
<head>
<title>JS program</title>
<script>
function display_diff() {
var d1, d2, diff;
d1 = new Date(form1.date1.value);
d2 = new Date(form1.date2.value);
diff = (d2 - d1) / (1000 * 3600 * 24);
document.getElementById("disp").innerHTML = "Difference of dates in days - " + diff;
}
</script></head><body>
<h1>JS program to display difference between dates</h1>
<form name="form1">
<input type="date" name="date1">
<br> <br>
<input type="date" name="date2">
<br> <br>
<input type="button" name="disp_diff" value="Display Difference" onclick="display_diff()">
</form>
<br>
<p id="disp"> </p>
</body></html>
23.Write JavaScript code to take a input of string and reverse the string in output.
<html>
<head>
<title>JS program - revverse of string</title>
<script>
function display_reverse(str) {
var newstr;
newstr = str.split("").reverse().join("")
document.write("Reverse of String - " + newstr);
}
</script>
</head>
<body>
<h1>JS program to reverse a string</h1>
<script>
var s;
s = prompt("Input a string");
display_reverse(s)
</script>
</body>
</html>
Suresh V. Malusare
SIR EINSTEIN ACADEMY
ADVANCED WEB DESIGNING
<!doctype html>
<html>
<head><title> Employee Data </title>
</head><body>
<h1> Employee Information Form</h1>
<form name="emp form" method="post" action="process.php">
Name of the Employee :
<input type="text" name="emp_name" REQUIRED>
<br> <br>
Email ID :
<input type="email" name="emp_email" min=1>
<br> <br>
Salary :
<input type="number" name="emp_sal" min=1 max=50000>
<br> <br>
<input type="submit" value="SUBMIT">
<input type="reset" value="RESET"></form></body>
</html>
9.B. Write html program to accept student name, Date of birth and
attendance percentage in number format. Send the data to the server.
<!doctype html>
<html>
<head>
<title> Student Data </title>
</head>
<body>
<h1> Student Attendance Percentage </h1>
<form name="studform" method="post" action="process.php">
Student Name :
<input type="text" name="stud_name">
<br> <br>
Date of Birth:
<input type="date" name="stud_dob">
<br> <br>
Attendance Percentage :
<input type="number" name="stud_attd" min=0 max=100>
<br> <br>
<input type="submit" value="SUBMIT">
<input type="reset" value="RESET">
</form></body>
</html>
<!doctype html>
<html>
<head>
<title> MS Board </title>
<style>
body { background-color : yellow; }
p { font-size ; 40px; }
</style>
</head>
<body>
<p> Maharashtra State Board</p>
</body>
</html>
13. Write a html program to display "Web designing" in italic format and
having underline using internal CSS. Add any two sentences about web
designing in green color.
<!doctype html>
<html>
<head>
<title> Web Designing </title>
<style>
h1 {
font-style : italic;
text-decoraton : underline;
}
p { color : green; }
</style>
</head>
<body>
<h1> Web Designing</h1>
<p> Web designing is the art of planning and arranging content on a website so
that it can be shared and accessed online with the world. </p>
<p> Web design encompasses many different skills and disciplines in the production
and maintenance of websites. </p>
</body>
</html>
<!doctype html>
<html>
<head>
<title> Inline Frame example </title>
</head>
<body>
<h1> Inline Frame</h1>
<iframe src="xyz.html" height=100 width=100>
</body>
</html>
15. Write html program to insert inline frame on web page. Use xyz html file
as a source for inline frame. Size of inline frame should be 300 x 300 pixels.
<!doctype html>
<html><head>
<title> Inline Frame example </title>
</head><body>
<h1> Inline Frame</h1>
<iframe src="xyz.html" height=300 width=300>
</body></html>
16. Write html program to create an ordered list of 3 languages used for
speaking and unordered list having 2 computer languages.
<!doctype html>
<html>
<head>
<title> Languages </title>
</head>
<body>
<h2> Languages used for Speaking</h2>
<OL>
<LI> English </LI>
<LI> Hindi </LI>
<LI> Marathi </LI>
</OL>
<h2> Computer Languages</h2>
<UL>
<LI> Java </LI>
<LI> Python </LI>
</UL>
</body>
</html>
Suresh V. Malusare
SIR EINSTEIN ACADEMY
17. Write html program to display names of two friends in ordered list and
also display their hobbies under their name in unordered list.
<!doctype html>
<html>
<head>
<title> Friends and their Hobbies </title>
</head>
<body>
<h2> Friends and their Hobbies</h2>
<OL>
<LI> Vedika </LI>
<UL>
<LI> Singing </LI>
<LI> Dance </LI>
</UL>
<LI> Riya </LI>
<UL>
<LI> Reading Books </LI>
<LI> Travelling to Historical Places </LI>
</UL>
</OL>
</body>
</html>
18. Write html program to create an unordered list having names of two
students. Add ordered list of subjects they selected:
<!doctype html>
<html>
<head>
<title> Students subjects</title>
</head>
<body>
<h2> Student List with subjects</h2>
<UL>
<LI> Sanika</LI>
<OL>
<LI> IT</LI>
<LI> Maths</LI>
</OL>
<LI> Sachin</LI>
<OL>
<LI> English </LI>
<LI> PT </LI>
</OL>
</UL>
</body>
</html>
Suresh V. Malusare
SIR EINSTEIN ACADEMY