NEW
Font size
WorksheetsWeb Development and Programming
Total questions: 20
Worksheet time: 11mins
Which one is correct HTML page structure ?
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
</body>
</html>
<!DOCTYPE html>
<html>
<body>
<head>
<title></title>
</head>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<body>
</body>
<title></title>
</head>
</html>
<head>
<title></title>
</head>
<body>
</body>
Which HTML header tag is bigger ?
<h4>
<h6>
<h1>
<h+1>
Which tag break the line line in html?
<be>
<hr>
<br>
<h2>
To Draw the horizontal line in html, Which tag is use ?
<hr>
<h2>
<hc>
<br>
Which one is Preserve Formatting Tag ?
<pft>
<pre>
<br>
<hr>
Which tag is used for bulleted list ?
<ul>
<li>
<ol>
<u>
Which tag is used numbered list ?
<ul>
<li>
<ol>
<u>
Which is the correct form for html style attributes?
value="property:style"
style="value:property"
style="property:value"
None of the above
Which one is the type of CSS ?
inline CSS
Internal CSS
External CSS
All of the above
Which one is the universal selector in CSS ?
*
#
.
all of the above
Which one is the ID selector in CSS ?
*
#
.
all of the above
Which one is the Class selector in CSS ?
*
#
.
all of the above
Which one is the right main method in java ?
public static void main ()
public static void main (String [] args)
main (String [] args)
None of the above
Correct printing statement in Java?
System.out.println(Hello World)
out.println(“Hello World”);
System.println(“Hello World”);
System.out.println(“Hello World”);
Which command is used for compiling java file?
javac filename.java
java filename.java
java filename
all of the above
Which command is used to run the java file?
javac filename.java
java filename
java filename.java
all of the above
Which data type represent True and False?
Boolean
Number
Character
date
Is this code segment is correct?
if(quizScore == 10)
System.out.println("Perfect score");
Yes
No
for is ______________ statement in java.
branching
iteration or looping
decision-making
all
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 + ", "); } }
100, 90, 80, 70, 60, 50, 40, 30, 20, 10, 0,
100, 90, 80, 70, 60, 50, 40, 30, 20, 10,
90, 80, 70, 60, 50, 40, 30, 20, 10, 0,
None of the above
