NEW
Font size
WorksheetsCIE 3 BCA section B WEB Design
Total questions: 26
Worksheet time: 9mins
Which tag is used for Internal CSS?
<css>
<script>
<style>
<design>
Which selector uses # symbol?
id selector
class selector
universal selector
group selector
Which rule set would change the font size to 24?
font-size: 24
size: 24;
font-size: 24;
font size: 24;
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++; }
Code 1
Code 2
Both Code 1 and Code 2
Cannot Compare
What will this rule set create?
h1 {
text-decoration: underline overline dotted red;
}
red waves under the heading
red dots over and under the heading
red waves over and under the heading
red dots over the heading
p {color: red;}
If "padding: 10px 5px 20px 0px" is given. What does this represent?
left:10px , top:5px , right:20px , bottom:0px
top:10px , right:5px , bottom:20px , left:0px
right:10px , bottom:5px , left:20px , top:0px
bottom:10px , left:5px , top:20px , right:0px
What does the === operator do in JavaScript?
Compares for loose equality
Compares for strict equality
Assigns a value
None of the above
Which of the following is correct about features of JavaScript?
It can not Handling dates and time.
JavaScript is a object-based scripting language.
JavaScript is not interpreter based scripting language.
All of the above
What will be the output of the following Javascript code?
let string1 = "WadJava";
let intvalue = 30;
alert( string1 + intvalue );
WadJava 30
30
WadJava30
Exception
Find output of below code
var a = '20';
var b = a = 30;
document.write(a+b);
Error in Script
'20'30
2030
50
What is the correct way to write "Hello World" on the web page using JavaScript?
alert("Hello World");
document.write("Hello World");
console.log("Hello World");
print("Hello World");
var x = 10;
x=x+5;
{
let x = 2;
x=x-1;
document.write(x)
}
10
1
2
15
console.log("1"+"2")
3
4
12
2
document.write("1"===1)
true
false
null
error
What is divide by 0 in Javascript? var a = 10;
var b = 0;
document.write(a/b);
Nothing is printed
0 is printed
Infinity is printed
Some Garbage Value
Which of the following CSS style property is used to specify an italic text?
style
font
font-style
font-face
Which of the following is the correct syntax to link an external style sheet in the HTML file?
<link rel=”stylesheet” href=”style.css” />
<link rel=”stylesheet” src=”style.css” />
<style rel=”stylesheet” src=”style.css” />
<style rel=”stylesheet” link=”style.css” />
What will be the output of the following code?
var x = 5;
var y = '5';
document.write(x == y);
undefined
error
false
true
