Sample Paper - CS202 - Final
Sample Paper - CS202 - Final
FINALTERM EXAMINATION
Fall 2022
CS202 – Fundamental of Front End Development
Time: 90 min
Marks: 60
1) Custom
2) Big
3) Fast
4) 2d
Question No: 2 (Marks: 01) - Please choose the correct option
1) ASAX
2) AJSX
3) AJAX
4) AJava
Question No: 3 (Marks: 01) - Please choose the correct option
To get the response from a___________, use the responseText or responseXML property
of the XMLHttpRequest object.
1) Client
2) PC
3) Laptop
4) server
1) mouse
2) an event handler
3) double click
4) an event click
1) element
2) document
3) browser
4) function
jQuery provide easy to use methods for creating animation effects using jQuery _______
methods.
1) Animate
2) Effects
3) 2d
4) Graphic
1) fadeIn()
2) fade()
3) fades()
4) fadeout()
1) HTML
2) jQuery
3) CSS
4) C
Question No: 10 (Marks: 01) - Please choose the correct option
1) big
2) hidden
3) random
4) visible
1) end()
2) stop()
3) finished()
4) die()
1) BOM
2) DOM
3) MOD
4) SSC
Question No: 13 (Marks: 01) - Please choose the correct option
____________ HTML5 tag is used to format a section of text in different direction from
the remaining text.
1) <aside>
2) <canvas>
3) <dialog>
4) <bdi>
_________ HTML5 tag is used to define a region in a document to run a script (using
javaScript) for changing graphics on the fly.
1) <aside>
2) <dialog>
3) <canvas>
4) <bdi>
1) <picture>
2) <dialog>
3) <canvas>
4) <bdi>
1) <bdi>
2) <nav>
3) <rt>
4) <rp>
Question No: 17 (Marks: 01) - Please choose the correct option
1) <bdi>
2) <rt>
3) <wbr>
4) <rp>
____________ is a HTML5 form control attribute to define pre-defined controls for input
controls.
1) <bdi>
2) <datalist>
3) <wbr>
4) <rp>
___________ is an audio property to check whether audio should play again when
finished.
1) loop
2) ended
3) duration
4) seeked
1) border-radius
2) border-diagmeter
3) border-corner
4) border-edge
__________ method is used to return users’ updated current position as the user moves.
1) getCurrentPosition(showPosition);
2) watchPosition();
3) clearWatch();
4) getCurrentPosition(showPosition, showError);
1) getCurrentPosition(showPosition)
2) watchPosition();
3) clearWatch();
4) getPosition();
1) kind
2) manifest
3) meter
4) form
Which background property value is used to scale background image so that the content
area would become completely covered?
1) Background-size: contain
2) Background-size: cover
3) Background-origin: border-box
4) Background-origin: padding-box
_____________ adds one or more classes to the selected elements in jQuery CSS
manipulation.
1) addClass()
2) removeClass()
3) toggleClass()
4) css()
___________ Removes one or more classes from the selected elements in jQuery CSS
manipulation.
1) addClass()
2) removeClass()
3) toggleClass()
4) css()
1) addClass()
2) removeClass()
3) toggleClass()
4) css()
1) width()
2) height()
3) innerWidth()
4) innerHeight()
1) width()
2) height()
3) innerWidth()
4) innerHeight()
1) parent()
2) parents()
3) parentsUntil()
4) Non of the given
The _______________ method of traversing the DOM returns all ancestor elements
between two given arguments.
1) parent()
2) parents()
3) parentsUntil()
4) Non of the given
1) Post
2) Get
3) load()
4) statusTxt
1) Post
2) Get
3) load()
4) statusTxt
1) HTML
2) jQuery
3) XML
4) http
1) Definition to definition
2) Document Type Definition
3) Document transmits definition
4) All of the given
1) curly braces
2) Square brackets
3) Parenthesis
4) Semi-quotes
1) curly braces
2) Square brackets
3) Parenthesis
4) Semi-quotes
1) Alvin Alexander
2) Rasmus Lerdorf
3) Douglas Crockford
4) Jesse James Garrett
QNo1: What are events? Write any two form events that are provided by jQuery.
Answer
QNo2: What is the purpose of the blur() method in jQuery? Also, Write its syntax.
Answer
Question No: 43 (Marks: 03)
Write JavaScript code which will display below given student info in HTML element <p
id= “info”>, when user will click on “Display” button.
Name: Ali
Gender: Male
City: Islamabad
Answer
Write JavaScript code which will change background color of a webpage when user will
move cursor on “Display” button.
Answer
There are several methods in jQuery Dimension. What is the difference between
“innerWidth()” and “outerWidth()”.
Answer
Question No: 46 (Marks: 03)
Explain the methods “children()” and “find()” of jQuery methods for traversing down the
DOM tree.
Answer
Answer
Answer
Question No: 49 (Marks: 05)
Write any four ways which can be used to specify background-image property using
CSS3.
Answer
jQuery has several methods for CSS manipulation, Write the names of four methods and
explain the purpose of any two of them.
Answer