Professional Documents
Culture Documents
Question Bank
Prepared By: -MRS RIDHDHI NAIK
1
What is HTTP? Explain HTTP Header with example. Jan 2021 7
15.
What is CORS? Write code to implement simple cross-origin Jan 2021 3
16. resource sharing and wildcards
Explain following terms (Any Three) 1. JSON 2. DOM 3. SOAP 4. Jan 2021 3
17. GET vs POST
Discuss how display resolution affects web site design Jan 2021 3
18.
HTML
What do you mean by meta tags? Show their meaning and use May 2018 7
with example. Also show how can following be achieved with Nov 2017
the help of Metadata?
a. Stop the page from being listed. May 2017
19. b. Set an expiration date May 2016
c. Stop the browser from caching a page.
d. Give a context for date so that it can take format DD- Oct 2016
MM-YYYY Oct 2020
What is an HTML form tag? Discuss the different form May 2017 7
attributes and design a simple form to register for new user May 2016
20.
including user_name, password, email, mobile number, gender and
hobbies.
What is the different between HTML and XHTML? Explain May 2017 7
21. ordered and unordered list with example.
May 2017
Oct 2020
Nov 2018
What is HTML table? Explain table element rowspan and May 2017 7
colspan with necessary attributes. Write HTML code for Nov 2017
following table.
22.
30. Write HTML code for creating following table. Nov 2018 7
31. How to display ordered list and unordered list using HTML? Give Nov 2018 4
Example. Dec 2019
32. Design Login Page HTML. Page must have fields in page Username, Nov 2018 7
Password, Remember Me and Login Button
33. Design Registration page in HTML Nov 2018 4
34. Explain following HTML tags with example (i) <select> (ii) <pre> Dec 2019 3
35. What do you mean by Meta Tags? List and Explain any three meta Dec 2019 7
tags with example
CSS - StyleSheet
What do you mean by “class” and “id” in CSS? Explain with May 2017 7
Example.
Nov 2017
OR
36. Explain types of selectors with example. May 2016
Oct 2016
What is CSS? Explain the different types of CSS. May 2018 7
37. Nov 2017
Jan 2017
Oct 2020
What is positioning in CSS? Also explain margin and padding Jun 2015 7
38. with example.
Jan 2015
3
Write HTML and CSS code for the following: May 2018 7
(i) set the background color for the active link states to
39. "yellow". Nov – 2017
(ii) Set the list style for unordered lists to "square". Dec 2019
(ii) Set "paper.gif" as the background image of the page.
40. What is Cascading Style Sheet? Compare inline, embedded and external May 2019 7
style sheet with example.
41. Write an HTML snippet with CSS for following effects Oct 2020 7
1. link: after visited red color and before visited blue color
2. table with odd rows blue and even rows green color.
3. Text color-green, Text case-uppercase
42. Differentiate between “ID” and “Class” using suitable example. Nov 2018 4
43. List and Explain types of CSS with Example. Nov 2018 4
44. What does the floating and positioning element do in CSS explain Jan 2021 4
with example.
Java Script
Write a JavaScript that handles following events. Nov 2017 7
(i) Gives the key code for the key pressed.
(ii) The script should give message that "vowel is pressed" if
45.
vowel keys are pressed.
(iii) Background color should change to red after releasing the
pressed key.
Write JavaScript code to know which mouse button was Nov 2017 7
46. clicked,number of elements in form, and write hello world on the
document.
Show the use of JavaScript events for the following Nov 2017 7
(i) Trap the exiting of the user from a page.
47. (ii) Show the heading. When the mouse is over the heading the
background color should be red and when the mouse goes out of
the heading,color should change to blue.
Design a login form using HTML & JavaScript with following May 2018 7
validations on username and password fields. May 2016
1. Password length must be 6 to 12 characters
48. Oct 2016
2. Username should not start with _, @ or number.
3. Phone number must be 10 digit start with 6/7/8/9 Oct 2020
4. All fields should not be blank.
Write a JavaScript program which read number and check whether May 2017 7
49. that number is prime or not? May 2016
May 2019
4
Design a form using HTML and JavaScript that asks the user to enter May 2018 7
his date of birth and on clicking the Calculate Button it calls the
50.
function that calculates how many days are left in your
birthday?
Design a form using html and JavaScript to collect the details from Nov 2017 7
the user such as name, gender (Radio Button), address, state, city.
51.
Create a dynamic drop down list for state and based
on state another drop down list contains list of cities for state.
What do you mean by event in JavaScript? Give at least two May 2019 4
52. examples of events with their handling.
Define the following with reference to XSL: May 2019 4
53. 1) value-of 2) for-each 3) sort Oct 2020
Develop XML File for book record and also write a DTD and XSL for May 2019 4
54. it.
Write a Java Script to read data from XML File and print it in tabular May 2019 4
55. manner.
Write JavaScript code to print following pattern. Oct 2020 7
56. 1
01
101
0101
10101
Explain DOM structure of HTML. Write JavaScript code to Oct 2020 7
57. know which mouse button was clicked and number of elements
in form
Difference between XSD Simple element and XSD Complex Oct 2020 4
58. element.
Compare and contrast between HTML and XML Oct 2020 4
59.
Write a JavaScript program to validate an Email address. Oct 2020 4
60.
Write a JavaScript that handles following events. Oct 2020 7
61. (i) Gives the key code for the key pressed.
(ii) The script should give message that "vowel is
pressed" if vowel keys are pressed.
(iii) Background color should change to red after
releasing the pressed key
Write an HTML and JavaScript program which accepts N as Oct 2020 7
62. input and print first N odd numbers.
Show the use of events for the following with example. Oct 2020 7
63. (i) Trap the exiting of the user from a page.
(ii) Show the heading. When the mouse is over the
Heading the background color should be yellow and
when the mouse goes out of the heading, color should
change to black
Explain pop-up boxes in JavaScript with example. Nov 2018 4
64.
5
Write Java Script to validate Mobile Number. Nov 2018 7
65. 1) Entered value must be numeric
2) 10 digit length
Write the difference between Client Side Scripting and Server Side Nov 2018 4
66. Scripting
Explain any two types of events in Java Script with Example Nov 2018 4
67.
Write Java Script for find first 10 prime numbers. Nov 2018 7
68.
Explain DTD (Document Type Definition). Nov 2018 3
69.
Explain following XSL Elements with suitable example. Nov 2018 3
70. 1) value-of Dec 2019
2) sort
Write Well formed XML file to store student information. Nov 2018 4
71.
Explain the Document Object Model with example Nov 2018 4
72.
Give full form of following acronym (i) DTD (ii) DOM (iii) XSL Dec 2019 4
73.
Differentiate client side scripting and server side scripting. Dec 2019 4
74.
Design a login form with username and password option using Dec 2019 7
75. HTML and JavaScript. Perform following validations.
(i) Username field: minimum length 6 characters, it should not
have any special character or digits other than _
(ii) Password field: minimum length 8 characters and maximum
length 12 characters, it must contain at least one digit and at
least one special character from the set {*,#,_}
State true or false and justify your answer : “Java Script is untyped Dec 2019 4
76. language”
What is external style sheet? Give example. Give advantages of Dec 2019 4
77. external style sheet
Write a JavaScript that handles following events. Dec 2019 7
78. (i) If the mouse is over heading, change font color to “red” and if
the mouse goes out of the heading change it to “black”
(ii) If key pressed is „a‟,‟e‟,‟i‟,‟o‟,‟u‟, the message should be
displayed on pop up box that “vowel is pressed”
(iii)If “Date and Time” button is clicked it displays current date
and time information.
What is XML? Give purpose and list its features Dec 2019 4
79.
Using HTML and Java script design a web page that takes one Dec 2019 7
80. integer as input and display total N prime numbers starting from 1 in
HTML table on web page
Write XML file to store information about Music_Album having Dec 2019 7
81. fields of Title, Singer, Music_Composer, Actor, Language, Country
and Release_Year. Also write corresponding external DTD file
6
Write JavaScript code that display the text “Gujarat Technological Jan 2021 7
82. University” with increasing font size in interval of 50ms in blue
color. When font size reaches to 50px it should stop
Demonstrate onChange event handler in java script code when input Jan 2021 7
83. focus exits after the user modifies its text.
Explain Callback function in JavaScript with example Jan 2021 4
84.
Explain following terms 1. Difference between for and forEach Jan 2021 4
85. method in JavaScript 2. Write a code to validate user input using
jQuery