0% found this document useful (0 votes)
38 views

Web Technologies - Quiz - QA

Uploaded by

2005 DEVI.T
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
38 views

Web Technologies - Quiz - QA

Uploaded by

2005 DEVI.T
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Web Technologies

HTML
1. Which of the following is/are the new feature(s) of HTML5? Performs Client-Side validation, Supports offline Storage
2. HTML stands for __________ Hyper Text Markup Language
3. An application that lets you search and see material on the internet is Browser
4. Which element is a container for all the head elements, and may include the document title, scripts, styles, meta information,
and more? <head></head>

5. Consider the below webpage:


mm/ dd/ yyyy ^
01/26/2017 Republic Day
05/01/2017 May Day
08/15/2017 Independence Day
Other…..
Which of the following is used to do this ?
<input type="date" id="date" name="date" list="holidays">
<datalist id="holidays">
<option label="Republic Day">2017-01-26</option>
<option label="May Day">2017-05-01</option>
<option label="Independence Day">2017-08-15</option>
</datalist>
6. Ram has designed a portal that fetches the citizens' feedback regarding the voting process in India. The portal allows the end
user to choose either 'like' image or 'unlike' image, so that it gets redirected to a page : "thanks.html".
<form action="thanks.html">
<input type="image" src="like.jpg" alt="submit"/>
<input type="image" src="unlike.jpg" alt="submit"/>
</form>
7. If the phone number should accept only 10 digit numbers, which of the following options will suit?
<input type="text" pattern="[0-9]{10}"/>
8. Choose the relavant HTML input type attributes.
Loan tenure → range, Webaddress → URL, Marital Status → radio, Email-id → email, PANNO → text, MobileNo → tel
9. In the web page, we have a field called phoneno and inside this textbox field, the text : "Only numbers are allowed" must
appear. This should get disappeared automatically once we type the phoneno into it. Which of the below options will suit the
given scenario?
<input type="text" placeholder="Only numbers are allowed">, <input type="tel" placeholder="Only numbers are
allowed">

JAVASCRIPT
10. Sita wishes to greet the user when the user clicks on "Greet Me" button. In which event does she need to write the JavaScript
code for greeting the user? onclick
11. Which of the below java script code helps to change the content of the paragraph tag dynamically?
<p id="pid1">Aim Higher.. Sky is your limit document.getElementById("pid1").innerHTML = "Never give up!!";
12. Which of the below statements are used to comment a line in JavaScript file? // this is a comment
13. When a user views a page containing a JavaScript program, which machine actually executes the script?
The User's machine running a Web browser
14. David, a beginner in web development trying to perform one particular operation using client side JavaScript. Choose the
correct option that he can't be done with client-side JavaScript? Store the form's contents to a database file on the server
15. When you want to enclose; some JavaScript statements to an HTML file, which is the correct tag you have to use?
<SCRIPT>

16. What is the output of the below code snippet 5555


<script type="text/javascript">
amt=55+"55";
document.write(amt);
</script>
17. Choose the correct JavaScript statement which helps you to write "World of JavaScript" in a web page?
document.write("World of JavaScript")
18. The parseInt() method converts the string to a integer. Before applying this function, Ram wants to know the type of the
argument that is passed to the function. Which operator in javascript would support this ? typeof
19. Predict the output of the following JavaScript code: p,a,s,s, ,%, ,f,a,i,l, ,%
<html>
<head>
<script>
var txt= "pass 70% fail 30%";
var pattern = /\D/g;
var res= txt.match(pattern);
document.write(res);
</script>
</head>
</html>
20. Which of the below is the correct syntax for exectuing some code if "amt" is equal to 5000? if (amt == 5000)
21. Ram is the developer of Allen Software company. He is designing the website for the banking application. There is a button
called 'check interest rates'. When that button is clicked, the user has to be redirected to a seperate page to show the domestic
interest rates. Help Ram in accomplishing this task using the javascript. window.location
22. Polson is allocated with the task of email validation in java script. He needs to extract character by character and check for
email validation like looking for @ . etc. Which method is best suited to extract every character from the text? charAt()

JQUERY
23. Which of the following is most appropriate tag in html 5 to divide the document into logical document groups?
<section></section>
24. wing is/are true about HTML? Some of the tags are self closing while some of the tags must be explicitly closed
in HTML5, Browser does not throw any error even if we have mistaken in the HTML syntax
25. If you want to change the color of a link to red when moving mouse pointer on top of it, which CSS property you need to
change? a:hover{ color: red; }
26. When referencing an HTML element using jQuery preceded by a ‘ # ‘ , what JavaScript function is this equivalent to?
getElementById
27. The following elements are newly added elements in HTML5: <section> <article> <aside>
28. These elements are called _____________ Semantic elements
29. jQuery is a JavaScript Object Notation library False
30. Some people don’t want animation to interfere with their web page experience. What do I do if I want to let a user turn off
the animation? Use the jquery method:stop()
31. Rhita wants to replace a jQuery code '$(document).ready(fun)' using another equivalent method. Help her to find the correct
method from the given options. $(fun)
32. $("#name").remove(); This will remove the text field when you click on the button. True
33. John wants to animate (moving effect) an element in the webpage he designed. For this, he set its CSS position property to
its default value and applied the animations. If there is no syntax error in the code, what would be output he gets?
Animation failed because the CSS position property set to default value, Animation failed because the CSS position
property set to static
34. Raju wants to remove an event handler that was attached with on() function.Help him to select the correct option. off()
35. Kiran wants to remove all the child nodes from the given div element. Help him to select the correct option to remove all the
child node from the div element.
<body>
<div>
This is some text
<h2>Good morning</h2>
<p>This is a paragraph inside the div.</p>
</div>
<p>This is a paragraph outside the div.</p>
</body>
empty()
Bind an event handler to the "blur" JavaScript event on an element.
blur()

You might also like