wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Mwd theory practice

Total questions: 32

Worksheet time: 16mins

Name
Class
Date
1.

What is jQuery UI ?

a)

Jquery UI is responsive to web pages

b)

Jquery is a collection of javascript codes that uses javascript library

c)

Jquery UI is a collection of user interface interactions, effects, widgets, and themes built on top of the jQuery core library.

d)

Jquery UI is visually appealing beautiful designed in Javascript

2.

What does the following ¡Query statements do?

$(document).ready(function/{

$("'button").click(function@{

$("#div1").fadeToggle (3000);});

});

a)

On clicking a button, a div with id = "div1" will

fade in at a speed of 3 sec.

b)

On clicking a button, a div with id = "div1" will

fade out at a speed of 3 sec.

c)

On clicking a button, a div with id = "div1" will

switch between fading in and fading out at a speed of 3 sec.

d)

On clicking a button, a div with id = "divl" will

switch between fading in and fading out at a speed of 3000 sec.

3.

Responsive web design enables web page layouts to adapt to a variety of screen sizes.

Which one of the following items are used to achieve this responsive capability?

a)

Use fixed, fluid and elastic layout.

b)

Use fluid grid layout.

c)

Use Fix layout

d)

Use elastic layout

4.

Which one of the following options in jQuery mobile will allow pages to be available instantly when users visit them?

a)

Data-prefetch

b)

data-rel="dialog"

c)

data-role="page"

d)

data-role="content"

5.

There are two functions used in the jQuery scripts below. What do you call the second function?

$("button").click(function(){ $("p").toggle("slow", function(){

alert("The toggle effect has completed."); }); });

a)

Calling function

b)

Call toggle function

c)

Call toggle Effect

d)

Callback function

6.

In jQuery basic effects such as hide(), show(), etc, how would the targeted element move when easing is set to “swing”?

a)

The element will move slower at the beginning, faster in the middle and slower at the end.

b)

The element will move faster at the beginning ,Faster at the middle and slower at the end

c)

The element will move slower at the beginning, slower at the middle and faster at the end

d)

The element will move at a constant fast speed

7.

A bee image with width of 200px and height of 200px is animated with the jQuery scripts below. What will be the effect on the bee image when a button is clicked?

a)

The image with id = “bee” will grow to double its original size in 2000msec.

b)

The image with id = “bee” will shrink to half its original size in 2000msec.

c)

The image with id = “bee” will remain its original size in 2000msec

d)

The image with id = “bee” will shrink to thumbnail size in 2000msec

8.

What are the various speed (or duration) options for jQuery effects such as show() and hide()?

a)

Use “slow” or “fast” or number in milliseconds.

b)

Use “faster” or “slower”

c)

Use “faster”

d)

Use “slower”

9.

In the following jQuery script, if the fadeIn effect is not slow enough, what is the most appropriate method to slow down the effect?

a)

Use a number in hours for the speed.

b)

Use a number in seconds for the speed.

c)

Use a number in milliseconds for the speed.

d)

Use a number in minutes for the speed.

10.

$('#masterList'). find('li') width(500).addClass('selecte d');

What do you called the phenomena occuring in the above codes?

a)

Event bubbling

b)

Ajax

c)

Animating

d)

Chaining

11.

Which one of the following variable is local?

a)

myBoolean

b)

myArray

c)

myname

d)

Mystring

12.

How do you fetch the first span on the page, which has the class 'green'?

a)

$("span:first, green")

b)

$("'span.green:second")

c)

$("'span.green:first")

d)

$("'span:green:first")

13.

In responsive design, which one of the following screen sizes should you start with in planning your design?

a)

Small mobile phone size

b)

Big mobile phone size

c)

Medium mobile phone size

d)

X-Large mobile phone size

14.

Which one of the following scripts must be used to link your web page to the Query library file from Google CDN

(Content Delivery Network)?

a)

<script src="https://ajax.googleapis.c

om/ajax/libs/jquery/3.0.0/jquer y.min.js"></script>

b)

<script src=“js.js”></script>

c)

<Link rel=“stylesheet” href=“css.css”>

d)

<script src="https://ajax.com/ajax/libs/jquery/3.0.0/jquer y.min.js"></script>

15.

What do you called the following responsive web design pattern?

a)

Layout-Shifter

b)

Responsive Layout

c)

Fixed Layout

d)

Fluid Layout

16.

What is a viewport?

a)

It is the user visible area of webpage on Computer webpage

b)

A display of a browser in the mobile device

c)

It is the user's visible area of a web page on any display device.

d)

It is what the user sees on mobile phone

17.

What is/are the unit/s of grids in fixed layouts?

a)

Pixels

b)

Percentage

c)

Em

d)

Milliseconds

18.

What does $(“p#intro”) select?

a)

All class elements of p = “intro” tag

b)

All elements inside p with intro tag

c)

All id elements with p =“intro”

d)

All p elements with id = “intro”.

19.

How many set of swatches does jQuery Mobile support?

a)

16

b)

20

c)

15

d)

26

20.

A page in jQuery Mobile consists of <DIV> sections. Name all the data roles that make up one page?

a)

title, header, content, footer

b)

Page,header,content,footer

c)

Footer,content,header,title

d)

Content,Footer,Article

21.

Which one of the following doctypes is used in jQuery Mobile Web Apps?

a)

XHTML 5.0

b)

Jquery

c)

HTML 5

d)

CSS

22.

Which one of the following types of testing requires each mobile device to be tested against the guidelines set by different mobile platforms?

a)

Performance testing

b)

Memory-leakage testing

c)

Usability testing

d)

Certification testing

23.

For the following iQuery statement, which one of the options is a method parameter value?

$("'span").fadeln (100);

a)

100

b)

Span

c)

$

d)

fadein

24.

What is the style of this curly brackets?

if (Jquery decides){}

a)

K&R style

b)

HTML

c)

ANSI

d)

Js

25.

How many images and thus breakpoints does the Data Image Delivery or Data Img plugin allows user to specify?

a)

1

b)

2

c)

3

d)

4

26.

In responsive web design, what is one of the popular options to resize image proportionately?

a)

Adjust the CSS max-width of image.

b)

Adjust the CSS min-width of image.

c)

Adjust the CSS max-length of image.

d)

Adjust the CSS min-height of image

27.

What is call stack tracing in Firebug?

a)

It traces or debugging for typo error in the codes

b)

it reveals the line of sequence in source code page

c)

it reveals the sequence of function calls

d)

it traces the error in the webpage

28.

What is a classic method of testing client-side JavaScript code?

a)

use "confirm" Method

b)

use "prompt" Method

c)

use "echo" Method

d)

use "alert" Method

29.

What is the purpose of the CSS tab or panel in Firebug?

a)

it is a css tab editor

b)

it is a JavaScript or jQuery command line panel

c)

it displays PHP codes of the webpage

d)

it displays HTML codes of web page

30.

Which one of the following is used to stop default behaviours in event handlers?

a)

stopDefault();

b)

preventDefault();

c)

runDefault();

d)

event.preventDefault();

31.

Refer to the html codes above, which one of the following jQuery selector is used to select the paragraph “This is the last paragraph in a div”?

a)

$("div p").last();

b)

$("div > p").first();

c)

$("div.p").last();

d)

$("div #p").last();

32.

Refer to the HTML codes above, which one of the following jQuery selectors is used to select the paragraph with “Hello!” and colour it blue?

a)

$("div:has(p)").css("color", "blue");

b)

$("div:is(p)").css("color", "blue");

c)

$("div.has(p)").css("color", "blue");

d)

$("div.is(p)").css("color", "blue");