Quiz
Internet Technology Lab Viva 1
Create a free account to finish this quiz
Save your progress and see your final score.
Already have an account? Sign in
Questions in this quiz (50)
1Inside which HTML element do we put the JavaScript?
- A<javascript>
- B<scripting>
- C<script>
- D<js>
2What is the correct JavaScript syntax to change the content of the HTML element below?
<p id="demo">This is a demonstration.</p>- A#demo.innerHTML = "Hello World!";
- Bdocument.getElement("p").innerHTML = "Hello World!";
- Cdocument.getElementByName("p").innerHTML = "Hello World!";
- Ddocument.getElementById("demo").innerHTML = "Hello World!";
3How do you write "Hello World" in an alert box?
- AmsgBox("Hello World");
- BalertBox("Hello World");
- Calert("Hello World");
- Dmsg("Hello World");
4How do you call a function named "myFunction"?
- AmyFunction()
- Bcall myFunction()
- Ccall function myFunction()
5How to write an IF statement for executing some code if "i" is NOT equal to 5?
- Aif (i != 5)
- Bif (i <> 5)
- Cif i =! 5 then
- Dif i <> 5
6How does a FOR loop start?
- Afor (i <= 5; i++)
- Bfor (i = 0; i <= 5)
- Cfor i = 1 to 5
- Dfor (i = 0; i <= 5; i++)
7How can you add a comment in a JavaScript?
- A//This is a comment
- B'This is a comment
- C<!--This is a comment-->
8How do you round the number 7.25, to the nearest integer?
- Around(7.25)
- BMath.rnd(7.25)
- Crnd(7.25)
- DMath.round(7.25)
9JavaScript is the same as Java.
- ATrue
- BFalse
10Which event occurs when the user clicks on an HTML element?
- Aonclick
- Bonchange
- Conmouseover
- Donmouseclick
11Who is making the Web standards?
- AMicrosoft
- BThe World Wide Web Consortium
- CMozilla
- DGoogle
12Choose the correct HTML element for the largest heading:
- A<h6>
- B<head>
- C<h1>
- D<heading>
13Choose the correct HTML element to define emphasized text
- A<i>
- B<em>
- C<italic>
14What is the correct HTML for creating a hyperlink?
- A<a url="http://www.w3schools.com">W3Schools.com</a>
- B<a href="http://www.w3schools.com">W3Schools</a>
- C<a>http://www.w3schools.com</a>
- D<a name="http://www.w3schools.com">W3Schools.com</a>
15How can you make a numbered list?
- A<ol>
- B<ul>
- C<list>
- D<dl>
16What is the correct HTML for making a checkbox?
- A<input type="check">
- B<input type="checkbox">
- C<check>
- D<checkbox>
17What is the correct HTML for making a drop-down list?
- A<list>
- B<input type="list">
- C<select>
- D<input type="dropdown">
18What is the correct HTML for inserting an image?
- A<img href="image.gif" alt="MyImage">
- B<img alt="MyImage">image.gif</img>
- C<img src="image.gif" alt="MyImage">
- D<image src="image.gif" alt="MyImage">
19HTML comments start with <!-- and end with -->
- ATrue
- BFalse
20Which HTML element defines the title of a document?
- A<meta>
- B<head>
- C<title>
21Which HTML element is used to specify a footer for a document or section?
- A<section>
- B<footer>
- C<bottom>
22In HTML, onblur and onfocus are:
- AHTML elements
- BEvent attributes
- CStyle attributes
23Which HTML element defines navigation links?
- A<navigate>
- B<nav>
- C<navigation>
24What does CSS stand for?
- AColorful Style Sheets
- BCascading Style Sheets
- CComputer Style Sheets
- DCreative Style Sheets
25What is the correct HTML for referring to an external style sheet?
- A<link rel="stylesheet" type="text/css" href="mystyle.css">
- B<style src="mystyle.css">
- C<stylesheet>mystyle.css</stylesheet>
26Which HTML attribute is used to define inline styles?
- Astyle
- Bclass
- Cstyles
- Dfont
27How do you insert a comment in a CSS file?
- A/* this is a comment */
- B// this is a comment
- C' this is a comment
- D// this is a comment //
28Which CSS property is used to change the text color of an element?
- Acolor
- Bfgcolor
- Ctext-color
29What is the correct CSS syntax for making all the <p> elements bold?
- Ap {text-size:bold;}
- B<p style="text-size:bold;">
- C<p style="font-size:bold;">
- Dp {font-weight:bold;}
30How do you display hyperlinks without an underline?
- Aa {text-decoration:no-underline;}
- Ba {text-decoration:none;}
- Ca {decoration:no-underline;}
- Da {underline:none;}
31How do you display a border like this:
The top border = 10 pixels
The bottom border = 5 pixels
The left border = 20 pixels
The right border = 1pixel?- Aborder-width:10px 1px 5px 20px;
- Bborder-width:10px 5px 20px 1px;
- Cborder-width:10px 20px 5px 1px;
- Dborder-width:5px 20px 10px 1px;
32When using the padding property; are you allowed to use negative values?
- ATrue
- BFalse
33How do you select an element with id "demo"?
- A#demo
- B.demo
- Cdemo
- D*demo
34How do you select all p elements inside a div element?
- Adiv.p
- Bdiv + p
- Cdiv p
35What is the default value of the position property?
- Afixed
- Bstatic
- Crelative
- Dabsolute
36Where is the correct place to insert a JavaScript?
- AThe <head> section
- BThe <body> section
- CBoth the <head> section and the <body> section are correct
37How can you make an e-mail link?
- A<mail href +"xxx@y.com">
- B<a href ="mailto: xxx@y.com">
- C<a = "xxx@y.com">
- DBoth (b) and (c)
38Main container for <TR>, <TD> and <TH> is
- A<TABLE>
- B<GROUP>
- C<DATA>
- DAll of these
39The latest HTML standard is
- AXML
- BSGML
- CHTML 4.0
- DHTML 5.0
40 The attribute of <form> tag
- AMethod
- BAction
- CBoth (a)&(b)
- DNone of these
41HTML is platform independent.
- ATrue
- BFalse
42 HTML is considered as _________ language.
- AHigher Level Language
- BMarkup Language
- COOP Language
- DProgramming Language
43How do you declare a JavaScript variable?
- Avar carName;
- Bv carName;
- Cvariable carName;
44How do you find the number with the highest value of x and y?
- Atop(x, y)
- BMath.max(x, y)
- Cceil(x, y)
- DMath.ceil(x, y)
45Which is the correct CSS syntax?
- A{body:color=black;}
- B{body;color:black;}
- Cbody {color: black;}
- Dbody:color=black;
46How do you add a background color for all <h1> elements?
- Aall.h1 {background-color:#FFFFFF;}
- Bh1.all {background-color:#FFFFFF;}
- Ch1 {background-color:#FFFFFF;}
- DAll of the above
47Which property is used to change the font of an element?
- Afont-family
- Bfont
- CBoth font-family and font can be used
48How to insert a comment that has more than one line in CSS?
- A/*This comment has
more than one line*/ - B//This comment has
more than one line// - C<!--This comment has
more than one line-->
- A/*This comment has
49What is the correct way to write a JavaScript array?
- Avar colors = "red", "green", "blue"
- Bvar colors = (1:"red", 2:"green", 3:"blue")
- Cvar colors = 1 = ("red"), 2 = ("green"), 3 = ("blue")
- Dvar colors = ["red", "green", "blue"]
50What is the correct HTML for inserting a background image?
- A<body style="background-image:url(background.gif)">
- B<background img="background.gif">
- C<body bg="background.gif">
Information
- Description
- Internet Technology Lab Viva 1
- Author
- Rejin Rajan
- Language
- English
- Views
- 126
- Rating
- 4.5 out of 5 · 2 ratings Rate this quiz