12th SCIENCE IMP Questions
12th SCIENCE IMP Questions
1. The Hypertext Mark-up Language (HTML) is an evolving language, with different versions supporting different
features
2. HTML5 is currently used because it supports mobile technology
3. The major browsers are Google Chrome, MozillaFirefox, Microsoft Edge, Safari, Opera and Apple support the
features of HTML5
4. HTML5 has introduced additional form controls which can also be used for validation purpose.
5. HTML5 introduces new input types.
<input type="color"> Defines a color picker
<input type="number"> Defines a field for entering a numbe
<input type="url"> Defines a field for entering a URL.
<input type="image"> Defines an image as a submit button.
<input type="date"> Defines a date picker with the year, month and day
<input type="email"> Defines a field for an e-mail address
<input type="month"> Defines a month and year control in format is "YYYY-MM"
<input type="range"> Define a range control. Default range is 0 to 100.
<input type="datetime-local"> Defines a date picker that includes the year, month, day and time
<input type="time"> Defines a control for entering a time.
<input type="week"> Defines a week and year control
<input type="search"> Defines a text field for entering a search string like site search or Google search.
<input type="file"> Defines a file-select field and a "Browse" button for file uploads.
<input type="tel"> Used to define input fields that should contain a telephone number
6. input restrictions is given below, which can be used for validation purpose
disabled Specifies that an input field should be disabled.
max Specifies the maximum value for an input field.
min Specifies the minimum value for an input field.
Pattern Specifies a regular expression to check the input values.
read only Specifies that an input field is read only (cannot be changed).
1
AAFREEN SHAIKH (CSJC JALGAON )
AAFREEN SHAIKH
placeholder This acts as a temporary label showing the purpose of a text field without requiring a label
tag.
required Specifies that an input field is required (must be filled out).
autocomplete Specifies whether a form or input field should have autocomplete On or Off.
autofocus Specifies that the input field should automatically get focus when the page loads.
height and width Specifies the height and width of an <input type="image">
multiple Specifies that the user is allowed to enter more than one value in the <input> element. This
works with input types like email and file.
7. id used to identify the html element uniquely through the document object model
8. class used to apply CSS style to the individual input element.
9. The meta tag is a tag in html that describes some aspects of contents of a webpage.
10. The HTML <meta> tag is used by search engines to search information that is provided with the webpage
11. Meta is empty tag (singular tag) which carries information within its attributes.
12. The <meta> tag is placed between the <head>and </head> tags.
13. Metadata will not be displayed on the webpage
14. Attribute of <meta> tag are
Name attribute Specifies the Name of the metadata e.g. <meta name = "author" >
Content It can have any textual matter related to the name
Charset Specifies the character encoding used by the document, This is called a character encoding
declaration.
15. UTF-8 For Indian characters
16. Big5 – for Chinese characters
17. http-equiv Used for http response message headers
18. CSS stands for Cascading Style Sheets
19. CSS describes how HTML elements are to be displayed on screen, paper, or in other media
20. CSS allows you to control the look and feel of several pages by changing a single source.
21. A CSS rule set contains selector and declaration block
22. Selector indicates the HTML element you want to style.
23. The declaration block can contain one or more declarations separated by a semicolon
24. Property is a type of attribute of HTML element
25. Values are assigned to CSS properties
26. Types of CSS i) Inline CSS ii) Embedded style sheet or Internal CSS iii) External CSS
27. Inline stylesheet uses the style attribute in the HTML start tag.
2
AAFREEN SHAIKH (CSJC JALGAON )
AAFREEN SHAIKH
3
AAFREEN SHAIKH (CSJC JALGAON )
AAFREEN SHAIKH
48. The <OL> tag defines an ordered list. An ordered list can be numerical or alphabetical
49. Attributes of <ol> tag are
• Type ( 1 is default value)
• Reversed
• Start
4
AAFREEN SHAIKH (CSJC JALGAON )
AAFREEN SHAIKH
57. List within another list either order list or unordered list is called nested list
58. HTML5 features include native audio and video support without the need for Flash
59. Common Audio Formats
• mp3 : MPEG(Moving / Motion Pictures Experts Group)
• aac : Advanced Audio Coding, standard format on Iphone, youtube etc
• ogg : An Open container and free audio format.
60. The <audio> element enables you to embed(or add) audio files on Webpages.
61. Autoplay, controls, muted are attributes without any values
62. Attributes of <Audio> tag are
• Autoplay
• Controls (i.e. play/pause button etc.)
• Loop
• Muted
• Src - Specifies the URL of the audio file
63. The controls attribute is used to add audio controls such as play, pause, and volume
64. The"source"element is used to specify the audio files which the browser may use.
65. The <source> tag is used to specify multiple media resources for media elements
66. The HTML <video> tag is used to embed video into your web page, it has several video sources.
67. Video formats that supported by web browsers – .mp4, .Ogg and .WebM
68. Attributes of <Video> tag are
• Src
• autoplay,
• controls - Specifies that video controls should be displayed (such as a play/pause button etc).
• height, width
• poster - Specifies an image to be shown while the video is downloading, or until the user hits the play
button
• muted - the video should be muted
• loop- Specifies that the video will start over again
• preload- Specifies if and how the author thinks the video should be loaded when the webpage loads
5
AAFREEN SHAIKH (CSJC JALGAON )
AAFREEN SHAIKH
72. Image Maps are of two types; Client Side and Server Side.
73. <Img> tag is used to insert an image on a web page
74. To create a client side image map usemap attribute of <img> tag is used with value which is preceded
with a # symbol.
75. The usemap attribute acts as a pointer which indicates that the image is a client side image map
76. .<map> : specifies name of the image used for client side image map.
77. <area> - It defines specific clickable regions.
78. A given <map> element can contain multiple <area> element within it.
79. <area> is singular tag
80. <map> is paired. Tag.
81. Attributes of <area> tag
• Href - Defines the URL to which the clickable region within the image-map navigates.
• Shape -It can value rect, circle or poly.
• Cords- Specifies co-ordinates of the clickable regions on the image-map
• alt - Specifies extra information about clickable area. It is the alternative text to the clickable region
86. Website Hosting is the service of providing storage space for website made available on the Internet
87. The companies that provides web hosting services are called web hosts.
88. Types of Web hosting :
• Shared hosting (cost effective)
• Free hosting (limited period of time.),
• Dedicated hosting (paid hosting servers for large websites)
89. Html5 has introduced new types in <Input> like number, date, Tel, email, search, URL, range, month, week, color
6
AAFREEN SHAIKH (CSJC JALGAON )
AAFREEN SHAIKH
90. CSS- Cascading Style Sheet describes how HTML elements are to be displayed on screen, paper, or in other
media.
91. CSS syntax Selector{Property1: value1; Property2: value2}
Exercise
Q 1. Fill in the blanks
1. The........... element is a staring element in an HTML, it indicates that document type definition being used by
the document
Ans: <!DOCTYPE html>
2. . The................ is a tag in html that describe some aspects of contents of a webpage.
Ans: <meta>
3. The <ol> tag defines an……………
Ans: Ordered list
4. ............. tag is used to specify video on an HTML document.
Ans:Video
5. The................... element creates an inline frame.
Ans:<iframe>
6. ..................tag is used to specify video on an HTML document.
<video>
7. If a web developer wants to add the description to an image he must use .......... attribute of <img>tag.
Ans:alt
8. The..................property is used to set position for an element.
Ans:Position
9. The float property defines the................... of content.
Ans: Flow
10 .................... is used with elements that overlap with each other
Ans:
7
AAFREEN SHAIKH (CSJC JALGAON )
AAFREEN SHAIKH
a) % b) $ c) @ d) #
1. List within another list either………list or ........ list is called nested list.
a) multilevel b) order c) unordered d) general e) cascading
2. Image maps are of two types ……...........and …………..........
a) Network side b) Client Side c) Computer side d) Server Side e) n-compting
3. A CSS rule set contains……….. and……………………...............
a) Set b) selector c) post d) declaration e) block
4. Client-side image map can be created using two elements …………… and………...
a) <area> b) <image> c) <usemap> d) <map> e) <server>
8
AAFREEN SHAIKH (CSJC JALGAON )
AAFREEN SHAIKH
Q.7. Programs
<html>
<head>
<title>College Information</title>
<style>
h1 {background-color:Green ;color:Red; font-family:Comic Sans MS}
p {color:blue}
</style>
</head>
<body>
9
AAFREEN SHAIKH (CSJC JALGAON )
AAFREEN SHAIKH
<h1 >SkyNet</h1>
<p>
This is My company</p>
</body>
</html>
<html>
<head>
<title>User Registration Form</title>
<style>
h1 {background-color:orange;font-style:oblique}
</style>
</head>
<body>
<h1 align='center'>User Registration </h1>
<form>
Name<input type="text" name="t1">
Age <input type="number" name="t2">
Email <input type="email" name="t3">
<input type="submit" name="btn" value='Submit">
</form>
</body>
</html>
10
AAFREEN SHAIKH (CSJC JALGAON )
AAFREEN SHAIKH
<html>
<head><title>Touries places</title>
<style>
ul{float:left}
ol{float:right}
</style>
</head>
<body>
<OL>
<li>Pune</li>
<li>Mumbai</li>
<li>Jammu</li>
<li>Kashmir</li>
</OL>
<ul>
<li>Japan</li>
<li>China</Ii>
<li>Shrilanka</li>
<li>Singapore</li>
</ul>
</body>
</html>
11
AAFREEN SHAIKH (CSJC JALGAON )
AAFREEN SHAIKH
6. On-page SEO includes Provision of good content, good keywords selection, putting keywords on correct
places, giving appropriate title to every page etc.
7. Off-Page SEO includes link building, increasing link popularity by submitting open directories, search
engines, link exchange etc.
8. Techniques of SEO
White Hat SEO : Techniques that search engines recommends as apart of good design.
Black Hat SEO : Techniques that search engines do not approve. The techniques used for optimizing the
website are manipulative.
9. white hat strategies are
• Relevant content
• Well-labeled image
• Relevant links and references.
• Complete sentences with good spelling and grammar
• Standard-compliant HTML
• Unique and relevant page title
12
AAFREEN SHAIKH (CSJC JALGAON )
AAFREEN SHAIKH
13
AAFREEN SHAIKH (CSJC JALGAON )
AAFREEN SHAIKH
26. Backlinks are links on one website that, when clicked, take the user to another site.
27. Robots.txt file tells search engine which pages you want to exclude from indexing.
28. An SEO Audit helps to find out what could be done to improve ranking on search engines,
29. SEO audit tool analyses the websites health
30. Audit Results of SEOPtimizer will have following details
• Overall Ranking of the site
• Recommendations for improvements
• Usability of the website
• Performance of website
• Social links
• Security parameters
• Links(Number of backlinks ,Broken links,Friendly links, On page links)
• Header content recommendations(Title and Meta description)
31. Website Security parameters are
• SSL Enabled
• HTTPS Redirect
• Email Privacy
32. • Header content recommendations are
• Title
• Meta description
33. SEO audit Links report contain
• Number of backlinks
• Broken links
• Friendly links
• On page links
34. Crawling is a process by which search engines crawler/ spiders/bots scan a website and collect details about
each page
35. Organic search results are the listings on a search engine results page (SERP) that appear because of factors
such as relevance to the search term and valid search engine optimization (SEO) efforts
36. Search Engine is an online program or software that helps users to search for information on world wide
web.
37. Examples of Search Engine include Google, Yahoo and Bing
14
AAFREEN SHAIKH (CSJC JALGAON )
AAFREEN SHAIKH
Exercise
Q.1 Fill in the blank.
1. The full form of SEO is Search Engine Optimization
2. Back links are links on one website that, when clicked, take the user to another site
3. One of the optimization factor to improve images is by using alt attribute.
4. An SEO Audit tool helps to find out what you can be done to improve ranking on search engines, so that
consumers can find the website with greater ease.
5. The robot.txt files tells search engine which pages you want to exclude from indexing.
• On-Page SEO
• Off-Page SEO.
15
AAFREEN SHAIKH (CSJC JALGAON )
AAFREEN SHAIKH
16
AAFREEN SHAIKH (CSJC JALGAON )
AAFREEN SHAIKH
17
AAFREEN SHAIKH (CSJC JALGAON )
AAFREEN SHAIKH
18
AAFREEN SHAIKH (CSJC JALGAON )
AAFREEN SHAIKH
19. m-commerce enables users to access online shopping platforms without needing to use a desktop computer
20. application of M-Commerce are
• mobile banking,
• ticket booking
• E-bill payment,
• online auctions,
• stock market trading.
21. Social commerce is the use of networking websites such as …….,…………, ................... as vehicles to promote and
sell products and services
• Facebook,
• Instagram
• Twitter.
22. The success of a social commerce campaign is measured by the degree to which consumers interact with the
company's marketing through retweets, likes and shares
23. Electronic commerce draws on technologies such as
• mobile commerce,
• electronic funds transfer,
• supply chain management,
19
AAFREEN SHAIKH (CSJC JALGAON )
AAFREEN SHAIKH
• Internet marketing,
• online transaction processing,
• electronic data interchange (EDI),
• inventory management systems
• automated data collection systems.
24. EDI is the electronic interchange of business information using a standardized format
25. EDI is the process which allows one company to send information to another company electronically rather
than on paper.
26. Many business documents can be exchanged using EDI
27. two most common documents are purchase orders and invoices.
28. EDI is computer-to-computer interchange of strictly formatted documents via telecommunications or physically
transported on electronic storage media
29. e-governance is to simplify processes for …….,……..& .................... at National, State and local levels
• government,
• citizens,
• businesses etc.
20
AAFREEN SHAIKH (CSJC JALGAON )
AAFREEN SHAIKH
• Government-to-Citizen (G2C)
• Government-to-Business (G2B)
• Government-to-Government (G2G)
• Government-to-Employee (G2E)
34. license renewals and paying tax are Examples of Government-to-Citizen (G2C)
35. The G2B also consists services exchanged between business sectors and government.
36. G2B aims at eliminating paper work, saving time, cost and establish transparency
37. G2G refers to the interaction between different government departments, organizations and agencies
38. G2G services can be at the local level or the international level
39. G2G provides safe and secure inter-relationship between domestic or foreign government
40. Government-to-Employee is the internal part of G2G sector
41. G2E aims to bring employees together and improvise knowledge sharing.
42. applying for leave, reviewing salary record and checking the balance of holiday are examples of G2E
43. examples of E-Governance projects are
• e-Mitra project (Rajasthan),
• e-Seva project (Andhra Pradesh),
• CET (Common Entrance Test)
44. Digital India was launched by the Prime Minister of India Narendra Modi on 1 July 2015
45. UMANG (Unified Mobile Application for New-age Governance)
46. Security Measures in E-Commerce
• Encryption
• Digital Signature :
• Digital Certificate
47. Encryption is used to protect user information being sent between a browser and a server
48. Encryption is of two types
• Symmetric (Shared Secret Encryption )
• Asymmetric (Public-Key Encryption)
49. Encryption converts Plain text into Cipher Text
50. Decryption converts Cipher text into Plain tex
51. Plain text is readable form of data
52. Cipher Text is coded form of data
21
AAFREEN SHAIKH (CSJC JALGAON )
AAFREEN SHAIKH
Exercise
Q.1 Fill in the blanks
1. E-Commerce’s scope is Global
2. A customer can do shopping 24x7 online using type of E-Commerce.
3. The execution phase consist of Order and Delivery.
4. E-wallet is a type of pre-paid account in which a user can store his/her money for any future online
transaction.
5. EDI is paperless exchange of information.
6. The Government to citizen (G2C ) type of e-governance refers to the government services which enable
citizens to get access to wide variety of public services
7. The e-governance which provides safe and secure inter-relationship between domestic or foreign
government is Government to government(G2G)
22
AAFREEN SHAIKH (CSJC JALGAON )
AAFREEN SHAIKH
2. The lack of a personal touch can be a disadvantage for many types of services and products in E-
commerce ------ True
3. Checking the balance of holiday is an example of G2C -- false
4. E-commerce provides more options to compare and select the cheaper and better options—True
5. M-commerce can be used through desktop computer.—False
2. Social commerce is a subset of electronic commerce that involves social media like … … … … … & …………………..
a) Facebook b) Instagram c) gmail d) whatsapp e) softwar
23
AAFREEN SHAIKH (CSJC JALGAON )
AAFREEN SHAIKH
1. Pre-Sales : It consist of two steps like Search and Negotiate. Customer search for required website for product to
be purchased. In Negotiate step customer find a supplier who offers good quality product at cheaper price and
then customer agrees the terms forwarded by supplier.
2. Execution : This phase consist of Order and Delivery. Customer sends an order for the selected product and after
processing the order, customer receives delivery of the product.
3. Settlement : This phase consist of Invoice (if any) and Payment. Invoice means customer will receive a bill for
purchased product and after confirmation of received product, customer will pay for the same.
4. After-Sales : This phase consists of warranty and After Sale Services. In warranty period, customer will get all
maintenance services for free or at minimum cost. After sale services means customer will do complaints (if any)
about the performance of product and get maintenance service from the supplier.
2. Explain M-Commerce.
Ans:
M-commerce (Mobile commerce) : is the buying and selling of goods and services through wireless handheld
devices such as smartphones and tablets. As a form of e-commerce, m-commerce enables users to access online
shopping platforms without needing to use a desktop computer. Some of application of M-Commerce are
mobile banking, ticket booking, E-bill payment, online auctions, stock market trading
4. What is E-governance.
ANs:
It signifies the implementation of information technology in the government processes and functions so as to
cause simple, moral, accountable and transparent governance. The basic purpose of e-governance is to simplify
24
AAFREEN SHAIKH (CSJC JALGAON )
AAFREEN SHAIKH
processes for all, i.e. government, citizens, businesses etc. at National, State and local levels. Hence, E-
governance delivers SMART government. (S- Simple, M-Moral, A-Accessible, R-Responsive, T-Transparent
Government)
25
AAFREEN SHAIKH (CSJC JALGAON )
AAFREEN SHAIKH
• Reduced corruption
• High transparency
• Increased convenience
• Direct participation of constituents
• Reduction in overall cost.
• Expanded reach of government
26
AAFREEN SHAIKH (CSJC JALGAON )
AAFREEN SHAIKH
CH 3. Advanced Javascript
1. scripting languages used to develop dynamic websites
2. javaScript is an interpreted scripting language
3. An interpreted language is a type of programming language that executes its instructions directly and freely
without compiling machine language
4. JavaScript was initially created to "make webpages alive
5. Declare a function in JavaScript using function keyword.
6. Features of JavaScript
• light weight
• it does not support all features of object oriented programming languages.
• No need of special software to run
• JavaScript is object oriented scripting language
• it supports event based programming facility.
• input validation
• handle date and time very effectively
• platform independent
• free(Open source)
8. Client-side script resides on client computer (browser) and that can run on the client.
9. Server-side Scripting : In this type, the script resides on web server.
10. clientside scripting is used at the frontend which users can see from the browser.
11. Server-side scripting is more secure than client-side scripting.
12. client-side scripting does not need any server interaction
13. client-side scripting language involves
• HTML5,
• JavaScript
27
AAFREEN SHAIKH (CSJC JALGAON )
AAFREEN SHAIKH
• PHP,
• ASP.net,
• Ruby,
• ColdFusion,
• Python,
• C#
15. Server-side scripting is useful in customizing the web pages and implements the dynamic changes in the
websites
16. Client side scripting use for validation purpose and effectively minimize the load to the server.
17. client side scripts requires web browser as an interface
18. Special software (web server software) is required to execute server-side script e.g Wamp server
19. popular framework / libraries.
• Angular JS
• Vue JS
• React
28
AAFREEN SHAIKH (CSJC JALGAON )
AAFREEN SHAIKH
33. Properties and methods of object's are accessed with . (dot) operator.
34. JavaScript supports 2 types of objects
• built-in objects
• user defined objects
35. Built in objects such as Math, String, Array, Date etc
36. The ‘new’ keyword is used to create new object in JavaScript
37. DOM stands for Document Object Model
38. When HTML document is loaded into a web browser, it becomes a document object.
39. DOM defines logical structure of document
40. The way in which HTML document content is accessed and modified is called as Document Object Mode
41. XML stands for Extensible Markup Language
42. The standardization of DOM was founded by W3C (World Wide Web Consortium)
43. The W3C Document Object Model (DOM) is a platform and languageneutral interface
44. predefined methods and properties for DOM object are
• head - Returns the element of the document
• title - Sets or returns title of the document.
• URL - Returns full URL of the HTML document
• body, img -Returns <body>, <img> elements respectively
• write() - Writes HTML expressions or JavaScript code to a document
• writeln() -Same as write(), but adds a newline character after each statement
• getElementById() -There are many ways of accessing form elements, of which the easiest is by
getElementById() method.
45. At the very top of the object hierarchy is the window object.
46. Window object is parent object of all other objects
47. properties for window object.
• Name - Sets or returns the name of a window
• location -Returns the Location object for the window.
• Document- Returns the Document object for the window
• Status- Sets or returns the text in the status bar of a window.
• closed - Returns a Boolean value indicating whether a window has been closed or not
48. methods for window object.
• alert() Displays the alert box containing message with ok button.
• confirm() Displays the confirm dialog box containing message with ok and cancel button
• prompt() Displays a dialog box to get input from the user.
29
AAFREEN SHAIKH (CSJC JALGAON )
AAFREEN SHAIKH
49. Events are actions done by the user or an application that occurs on the webpage.
50. Input and other object Events:
• Onblur It occurs when user leaves field or losses focus of an element.
• Onfocus It occurs when an element gets focus
• Onchange It occurs when user changes content of an element or selects dropdown value. E.g. for
textbox, password, select box, textarea etc
• Onselect It occurs when user selects some text of an element.
• onsubmit It occurs when user clicks submit button.
• Onreset It occurs when user clicks reset button.
• onload It occurs when page/image has been loaded
• onunload It occurs when document/page has been unloaded or closes
51. String is used to store zero or more characters of text within single or double quotes.
52. String object is used to store and manipulate text
53. String length Returns the number of characters in a string .
54. Method of string object
• charAt() Returns the character at the specified position (in Number)
• indexOf() Returns the index of the first occurence of specified character in given string, or -1 if it
never occurs, so with that index you can determine if the string contains the specified character
• lastIndexOf() Returns the index of the last occurence of specified character in given string.
• substr() Returns the characters you specified:
• substring() Returns the characters you specified
• trim() The trim() method removes whitespace from both sides of a string
• toLowerCase() Converts a string to lower case
• toUpperCase() Converts a string to upper case
30
AAFREEN SHAIKH (CSJC JALGAON )
AAFREEN SHAIKH
Exercise
Q.1 Fill in the blanks.
1. Server side script resides on server computer
2. Break statement is used to jump out of loop.
3. DOM defines logical structure of document
4. Closed property of window object returns Boolean value indicating whether window is closed or not
5. Onblur event occurs when an element looses its focus.
31
AAFREEN SHAIKH (CSJC JALGAON )
AAFREEN SHAIKH
32
AAFREEN SHAIKH (CSJC JALGAON )
AAFREEN SHAIKH
• The client-side scripting language involves languages such as HTML5, JavaScript etc. In contrast,
programming languages such as PHP, ASP.net, Ruby, ColdFusion, Python, C# etc. are server side scripting
languages
• Server-side scripting is useful in customizing the web pages and implements the dynamic changes in the
websites. Conversely, the clientside scripts are generally used for validation purpose and effectively
minimize the load to the server.
• Special software (web server software) is required to execute server-side script, whereas client side
scripts requires web browser as an interface.
2. Briefly explain features of JavaScript.
• light weight
• it does not support all features of object oriented programming languages.
• No need of special software to run
• JavaScript is object oriented scripting language
• it supports event based programming facility.
• input validation
• handle date and time very effectively
• platform independent
• free(Open source)
Ans:
JavaScript has a built–in multiway decision statement known as Switch. The switch statement test the value of
given expression against a list of case values and when match is found, a block of statement associated with that
case is executed.
Eg:
<!DOCTYPE html>
<head><title>Javascript Program
</title></head>
<body>
<h1> use of switch case </h1>
<script type="text/javascript">
var day=6;
switch(day)
33
AAFREEN SHAIKH (CSJC JALGAON )
AAFREEN SHAIKH
{
case 1: alert("Monday"); break;
case 2: alert("Tuesday"); break;
case 3: alert("Wednesday"); break;
case 4:alert("Thursday"); break;
case 5: alert("Friday"); break;
case 6: alert("Saturday"); break;
case 7: alert("Sunday"); break;
default: alert("Invalid day");
}
</script></body></html>
<!DOCTYPE html>
<head>
<title>Q8 B sesction </title>
<script>
function addn()
{
var a,b;
a=parseInt(f1.t1.value);
b=parseInt(f1.t2.value);
document.write(a+b);
}
function mult()
{
var a,b;
a=parseInt(f1.t1.value);
b=parseInt(f1.t2.value);
document.write(a*b);
}
function div()
{
var a,b;
34
AAFREEN SHAIKH (CSJC JALGAON )
AAFREEN SHAIKH
a=parseInt(f1.t1.value);
b=parseInt(f1.t2.value);
document.write(a/b);
}
function rem()
{
var a,b;
a=parseInt(f1.t1.value);
b=parseInt(f1.t2.value);
document.write(a%b);
}
</script>
</head>
<body>
<form name="f1">
enter 1st number <input type="text" name="t1">
enter 2nd number <input type="text" name="t2">
<input type="button" value="+" onclick="addn()">
<input type="button" value="*" onclick="mult()">
<input type="button" value="/" onclick="div()">
<input type="button" value="%" onclick="rem()">
</form>
</body>
</html>
<!DOCTYPE html>
<head>
<title>second method</title>
<script>
var a=parseInt(prompt("enter 1st number"));
var b=parseInt(prompt("enter 2st number"));
document.write("addition:"+ a+b);
document.write("multiplication:"+ a*b);
document.write("diviion:"+ a/b);
document.write("rem is :"+ a%b);
</script>
</head>
35
AAFREEN SHAIKH (CSJC JALGAON )
AAFREEN SHAIKH
<body>
</body>
</html>
2. Display number sequence from 100 to 150 in following format. (100 101 102 .............. 150)
Ans:( Event driven)
<!Doctype html>
<head>
<script>
function f1()
{
var a=100;
while(a<=150)
{document.writeln(a);
a++;
}
}
</script>
</head>
<body>
<form>
<input type="button" value="print numbers" onclick="f1()">
</form>
</body>
</html>
<!Doctype html>
<head>
<script>
var a=100;
while(a<=150)
{document.writeln(a);
a++;
}
</script>
</head>
<body>
</body>
36
AAFREEN SHAIKH (CSJC JALGAON )
AAFREEN SHAIKH
</html>
<!Doctype html>
<head>
<script>
function f1()
{fact=1;
var a=parseInt(prompt("enter number"));
while(a>=1)
{
fact=fact*a;
a=a-1;
}
document.write(fact);
}
</script>
</head>
<body>
<form>
<input type="button" value="print numbers" onclick="f1()">
</form>
</body>
</html>
<!Doctype html>
<head>
<script>
fact=1;
var a=parseInt(prompt("enter number"));
while(a>=1)
{
fact=fact*a;
a=a-1;
}
document.write(fact);
</script>
</head>
<body>
37
AAFREEN SHAIKH (CSJC JALGAON )
AAFREEN SHAIKH
</body>
</html>
4. Accept any string from user and count and display number of vowels occurs in it
<!Doctype html>
<head>
<title></title>
<script>
function f1()
{var i,ch,c,a;
c=0;
a=prompt("enter string to count wowel");
for(i=0;i<=a.length;i++)
{
ch=a.charAt(i);
if(ch=="A" || ch=="a" || ch=="E" || ch=="e" || ch=="i" || ch=="I" || ch=="o" || ch=="O" || ch=="U"
||ch=="u" )
{c=c+1;}
}
document.write(c);
}
</script>
</head>
<form>
<input type="button" value="iske uuper mouse leke jao" onclick="f1()">
</form>
<body>
</body>
</html>
<!Doctype html>
<head>
<title></title>
<script>
var i,ch,c,a;
c=0;
a=prompt("enter string to count wowel");
for(i=0;i<=a.length;i++)
38
AAFREEN SHAIKH (CSJC JALGAON )
AAFREEN SHAIKH
{
ch=a.charAt(i);
if(ch=="A" || ch=="a" || ch=="E" || ch=="e" || ch=="i" || ch=="I" || ch=="o" || ch=="O" || ch=="U"
||ch=="u" )
{c=c+1;}
}
document.write(c);
</script>
</head>
<body>
</body>
</html>
39
AAFREEN SHAIKH (CSJC JALGAON )
AAFREEN SHAIKH
4. IOT Disadvantages
• Privacy
• Complexity
5. Applications of IoT
• Smart lighting
• Smart thermostats
• Smart locks
• Smart security cameras
• Smart traffic signals
6. Cloud computing is a model for enabling, convenient on-demand network access to a shared pool of computing
resources like network, servers, storage, applications and services released with service provider interaction.
7. Models of Cloud computing
• Infrastructure as a Service (IaaS)
• Platform as a Service (PaaS)
• Software as a Service (SaaS)
8. IaaS gives users access to storage, networking, servers and other computing resources via the cloud.
9. Examples :of Iaas :
• Amazon web services (AWS) ec2,
• Microsoft Azure VM,
• Google Compute Engine (GCE)
10. instead of purchasing hardware outright, users pay for IaaS on demand
11. Using Iaas Enterprises saves the costs of buying and maintaining their own hardware.
12. Platform as a service (PaaS) A service provider offers access to a cloud-based environment in which users can
develop, manage and deliver applications.
13. PaaS provides a platform with tools to test, develop and host applications in the same environment.
40
AAFREEN SHAIKH (CSJC JALGAON )
AAFREEN SHAIKH
14. Using PaaS Providers manage security, operating systems, server software and backups
15. Software as a service (SaaS) A service provider delivers software and applications through the internet
16. SaaS vendors provide users with software and applications via a subscription model
17. Examples of SaaS
• Google's G suite,
• GitHub, SAP,
• Slack,
• Dropbox
18. cloud computing type are
• Public,
• Private
• Hybrid
19. Public cloud are more efficient and inexpensive than private and hybrid cloud solutions.
20. Examples of public cloud service provider
• Amazon AWS,
• Microsoft Azure,
• Google Cloud Platform
21. Private cloud solutions are preferred for enhanced security and privacy by the users.
22. Hybrid cloud environments combines both Public and Private cloud elements.
23. Hybrid cloud allows greater flexibility as compared to that of public and private cloud solutions.
24. Benefits of Cloud Computing
• Cost saving
• Reliable
• Mobility
41
AAFREEN SHAIKH (CSJC JALGAON )
AAFREEN SHAIKH
35. Applications of 5G
1) Online 5G Games. 2) Automated Vehicles. 3) Virtual Classrooms.
Exercise
Q.1 Fill in the blanks.
1. PaaS provides a platform with tools to test, develop and host applications in the same Environment.
True
2. Cloud computing means to store and access data and programs over the internet
True
Ans:
• Smart lighting - Illumination of light is controlled on the basis of day light.
• Smart thermostats - Allows users to schedule, monitor and remotely control home temperatures.
• Smart locks and garage-door openers - Password based or facial recognition based doors and locks.
• Smart security cameras – Security cameras that can identify known and unknown person and raise alarm, in
case of security threat.
• Smart traffic signals – Signal that can adjust their timing to accommodate commutes and holiday traffic and
keep cars moving.
Ans: Cloud computing is a model for enabling, convenient on-demand network access to a shared pool of computing
resources like network, servers, storage, applications and services released with service provider interaction.
There are three primary service models of cloud computing that are
42
AAFREEN SHAIKH (CSJC JALGAON )
AAFREEN SHAIKH
Ans:
• Infrastructure as a service (IaaS) IaaS gives users access to storage, networking, servers and other computing
resources via the cloud.
• Platform as a service (PaaS) A service provider offers access to a cloud-based environment in which users can
develop, manage and deliver applications. In addition to storage and other computing resources, users are able
to use a suite of prebuilt tools to develop, customize and test their own applications
• Software as a service (SaaS) A service provider delivers software and applications through the internet. Users
do not install applications on their local devices
43
AAFREEN SHAIKH (CSJC JALGAON )
AAFREEN SHAIKH
44
AAFREEN SHAIKH (CSJC JALGAON )
AAFREEN SHAIKH
45
AAFREEN SHAIKH (CSJC JALGAON )
AAFREEN SHAIKH
Exercise
Q1 Fill in the blanks.
1. PHP is Server side scripting language
2. PHP is Interpreted language i.e. there is no need for compilation
3. A variable starts with $ sign followed by variable name
4. An ARRAY is a variable, which can hold more than one value at a time.
46
AAFREEN SHAIKH (CSJC JALGAON )
AAFREEN SHAIKH
Simple : It is very simple and easy to use, as compared to other scripting languages.
Interpreted : It is an interpreted language, i.e. there is no need for compilation. F
aster : It is faster than other scripting language e.g. JSP and ASP.
47
AAFREEN SHAIKH (CSJC JALGAON )
AAFREEN SHAIKH
Open Source : Open source means you need not pay for use of PHP. You can freely download and use.
Platform Independent : PHP code will be run on every platform, Linux, Unix, Mac OS X, Windows.
Case Sensitive :
A server is a computer system that serves as a central repository of data and programs and is shared by the clients. The
server-side environment that runs a scripting language is termed web server.
1) String
2) Integer
3) Float
4) Boolean
5) Array
6) NULL
48
AAFREEN SHAIKH (CSJC JALGAON )