wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Web Development and Programming

Total questions: 20

Worksheet time: 11mins

Name
Class
Date
1.

Which one is correct HTML page structure ?

a)

<!DOCTYPE html>

<html>

<head>

<title></title>

</head>

<body>

</body>

</html>

b)

<!DOCTYPE html>

<html>

<body>

<head>

<title></title>

</head>

</body>

</html>

c)

<!DOCTYPE html>

<html>

<head>

<body>

</body>

<title></title>

</head>

</html>

d)

<head>

<title></title>

</head>

<body>

</body>

2.

Which HTML header tag is bigger ?

a)

<h4>

b)

<h6>

c)

<h1>

d)

<h+1>

3.

Which tag break the line line in html?

a)

<be>

b)

<hr>

c)

<br>

d)

<h2>

4.

To Draw the horizontal line in html, Which tag is use ?

a)

<hr>

b)

<h2>

c)

<hc>

d)

<br>

5.

Which one is Preserve Formatting Tag ?

a)

<pft>

b)

<pre>

c)

<br>

d)

<hr>

6.

Which tag is used for bulleted list ?

a)

<ul>

b)

<li>

c)

<ol>

d)

<u>

7.

Which tag is used numbered list ?

a)

<ul>

b)

<li>

c)

<ol>

d)

<u>

8.

Which is the correct form for html style attributes?

a)

value="property:style"

b)

style="value:property"

c)

style="property:value"

d)

None of the above

9.

Which one is the type of CSS ?

a)

inline CSS

b)

Internal CSS

c)

External CSS

d)

All of the above

10.

Which one is the universal selector in CSS ?

a)

*

b)

#

c)

.

d)

all of the above

11.

Which one is the ID selector in CSS ?

a)

*

b)

#

c)

.

d)

all of the above

12.

Which one is the Class selector in CSS ?

a)

*

b)

#

c)

.

d)

all of the above

13.

Which one is the right main method in java ?

a)

public static void main ()

b)

public static void main (String [] args)

c)

main (String [] args)

d)

None of the above

14.

Correct printing statement in Java?

a)

System.out.println(Hello World)

b)

out.println(“Hello World”);

c)

System.println(“Hello World”);

d)

System.out.println(“Hello World”);

15.

Which command is used for compiling java file?

a)

javac filename.java

b)

java filename.java

c)

java filename

d)

all of the above

16.

Which command is used to run the java file?

a)

javac filename.java

b)

java filename

c)

java filename.java

d)

all of the above

17.

Which data type represent True and False?

a)

Boolean

b)

Number

c)

Character

d)

date

18.

Is this code segment is correct?

if(quizScore == 10)

System.out.println("Perfect score");

a)

Yes

b)

No

19.

for is ______________ statement in java.

a)

branching

b)

iteration or looping

c)

decision-making

d)

all

20.

What will happen when you compile and run the following code?

public static void main(String[] args)

{ int i = 0; for(i = 100; i >= 0; i -= 10 )

{ System.out.print(i + ", "); } }

a)

100, 90, 80, 70, 60, 50, 40, 30, 20, 10, 0,

b)

100, 90, 80, 70, 60, 50, 40, 30, 20, 10,

c)

90, 80, 70, 60, 50, 40, 30, 20, 10, 0,

d)

None of the above