wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

CIE 3 BCA section B WEB Design

Total questions: 26

Worksheet time: 9mins

Name
Class
Date
1.

Which tag is used for Internal CSS?

a)

<css>

b)

<script>

c)

<style>

d)

<design>

2.

Which selector uses # symbol?

a)


id selector

b)

class selector

c)


universal selector

d)


group selector

3.
Which is correct CSS syntax? 
a)
{ body; color=black;}
b)
body: color= black
c)
body {color:black;}
d)
(body color is black) 
4.
Select the code below that uses CSS to configure a background color of #000000 for a web page.
a)
body { background-color: #000000; }
b)
body { bgcolor: #000000; }
c)
document { background­-page: #000000; }
d)
None of these
5.
What unit of measurement does CSS use for size?
a)
px
b)
em
c)
%
d)
All work
6.
What property changes the border for an image/table?
a)
border:
b)
border-size:
c)
border-color:
7.
Which is the correct way to format a Font Family for a paragraph? (Hint: make sure you have more than one backup font!)
a)
p { font-face: Arial, Verdana, San-Serif; }
b)
p { font-family: Arial, Verdana, San-Serif; }
c)
p { family-font: Arial, Verdana, San-Serif; }
d)
p { font: Arial, Verdana, San-Serif; }
8.

Which rule set would change the font size to 24?

a)

font-size: 24

b)

size: 24;

c)

font-size: 24;

d)

font size: 24;

9.

Which is a more efficient JavaScript code ?
Code 1 :

for(var num=10;num>=1;num--) { document.writeln(num); }

Code 2 :

var num=10; while(num>=1) { document.writeln(num); num++; }

a)

Code 1

b)

Code 2

c)

Both Code 1 and Code 2

d)

Cannot Compare

10.

What will this rule set create?


h1 {

text-decoration: underline overline dotted red;

}

a)

red waves under the heading

b)

red dots over and under the heading

c)

red waves over and under the heading

d)

red dots over the heading

11.
Which line of code correctly places a gif image named "tiger" into a webpage?
a)
<img src="tiger" alt="BengalTiger" />
b)
<img gif=tiger alt="BengalTiger">
c)
<image source="tiger.gif" alt=BengalTiger" />
d)
<img src="tiger.gif" alt="BengalTiger" />
12.
Which is the value in this CSS?
p {color: red;}
a)
p
b)
color
c)
red
13.
What is the difference between HTML and CSS?
a)
CSS is one type of HTML
b)
HTML gives a webpage structure. CSS provides styling.
c)
CSS structures a webpage. HTML strictly provides styling.
d)
There is no difference.
14.

If "padding: 10px 5px 20px 0px" is given. What does this represent?

a)

left:10px , top:5px , right:20px , bottom:0px

b)

top:10px , right:5px , bottom:20px , left:0px

c)

right:10px , bottom:5px , left:20px , top:0px

d)

bottom:10px , left:5px , top:20px , right:0px

15.

What does the === operator do in JavaScript?

a)

Compares for loose equality

b)

Compares for strict equality

c)

Assigns a value

d)

None of the above

16.

Which of the following is correct about features of JavaScript?

a)

It can not Handling dates and time.

b)

JavaScript is a object-based scripting language.

c)

JavaScript is not interpreter based scripting language.

d)

All of the above

17.

What will be the output of the following Javascript code?

let string1 = "WadJava";

let intvalue = 30;

alert( string1 + intvalue );

a)

WadJava 30

b)

30

c)

WadJava30

d)

Exception

18.

Find output of below code

var a = '20';

var b = a = 30;

document.write(a+b);

a)

Error in Script

b)

'20'30

c)

2030

d)

50

19.

What is the correct way to write "Hello World" on the web page using JavaScript?

a)

alert("Hello World");

b)

document.write("Hello World");

c)

console.log("Hello World");

d)

print("Hello World");

20.

var x = 10;

x=x+5;


{

let x = 2;

x=x-1;

document.write(x)

}

a)

10

b)

1

c)

2

d)

15

21.

console.log("1"+"2")

a)

3

b)

4

c)

12

d)

2

22.

document.write("1"===1)

a)

true

b)

false

c)

null

d)

error

23.

What is divide by 0 in Javascript? var a = 10;

var b = 0;

document.write(a/b);

a)

Nothing is printed

b)

0 is printed

c)

Infinity is printed

d)

Some Garbage Value

24.

Which of the following CSS style property is used to specify an italic text?

a)

style

b)

font

c)

font-style

d)

font-face

25.

Which of the following is the correct syntax to link an external style sheet in the HTML file?

a)

<link rel=”stylesheet” href=”style.css” />

b)

<link rel=”stylesheet” src=”style.css” />

c)

<style rel=”stylesheet” src=”style.css” />

d)

<style rel=”stylesheet” link=”style.css” />

26.

What will be the output of the following code?
var x = 5;
var y = '5';
document.write(x == y);

a)

undefined

b)

error

c)

false

d)

true