Quiz
Internet Technology Lab Viva 2
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)
1Where is the correct place to insert a JavaScript?
- AThe <head> section
- BThe <body> section
- CBoth the <head> section and the <body> section are correct
2What is the correct syntax for referring to an external script called "xxx.js"?
- A<script src="xxx.js">
- B<script href="xxx.js">
- C<script name="xxx.js">
3How do you create a function in JavaScript?
- Afunction myFunction()
- Bfunction:myFunction()
- Cfunction = myFunction()
4How to write an IF statement in JavaScript?
- Aif i = 5
- Bif (i == 5)
- Cif i = 5 then
- Dif i == 5 then
5How does a WHILE loop start?
- Awhile (i <= 10)
- Bwhile (i <= 10; i++)
- Cwhile i = 1 to 10
6How 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
7What 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"]
8How 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)
9How do you declare a JavaScript variable?
- Avar carName;
- Bv carName;
- Cvariable carName;
10Is JavaScript case-sensitive?
- ATrue
- BFalse
11What does HTML stand for?
- AHyper Text Markup Language
- BHome Tool Markup Language
- CHyperlinks and Text Markup Language
12What is the correct HTML element for inserting a line break?
- A<br>
- B<lb>
- C<break>
13Which of these elements are all <table> elements?
- A<table><head><tfoot>
- B<table><tr><td>
- C<thead><body><tr>
- D<table><tr><tt>
14How can you make a bulleted list?
- A<ol>
- B<dl>
- C<list>
- D<ul>
15What is the correct HTML for making a text input field?
- A<textinput type="text">
- B<input type="textfield">
- C<textfield>
- D<input type="text">
16What is the correct HTML for making a text area?
- A<input type="textbox">
- B<textarea>
- C<input type="textarea">
17What 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">
18Which HTML attribute specifies an alternate text for an image, if the image cannot be displayed?
- Aalt
- Bsrc
- Ctitle
- Dlongdesc
19In HTML, which attribute is used to specify that an input field must be filled out?
- Arequired
- Bformvalidate
- Cvalidate
- Dplaceholder
20Where in an HTML document is the correct place to refer to an external style sheet?
- AAt the end of the document
- BIn the <body> section
- CIn the <head> section
21Which HTML tag is used to define an internal style sheet?
- A<style>
- B<script>
- C<css>
22Which is the correct CSS syntax?
- A{body:color=black;}
- B{body;color:black;}
- Cbody {color: black;}
- Dbody:color=black;
23Which property is used to change the background color?
- Acolor
- Bbgcolor
- Cbackground-color
24How do you add a background color for all <h1> elements?
- Aall.h1 {background-color:#FFFFFF;}
- Bh1.all {background-color:#FFFFFF;}
- Ch1 {background-color:#FFFFFF;}
25Which CSS property controls the text size?
- Afont-style
- Btext-style
- Cfont-size
- Dtext-size
26Which property is used to change the font of an element?
- Afont-family
- Bfont
- CBoth font-family and font can be used
27How do you make the text bold?
- Astyle:bold;
- Bfont:bold;
- Cfont-weight:bold;
28Which property is used to change the left margin of an element?
- Aindent
- Bpadding-left
- Cmargin-left
- Dleft-margin
29How do you make a list that lists its items with squares?
- Alist-style-type: square;
- Blist: square;
- Clist-type: square;
30HTML is considered as _________ language.
- AHigher Level Language
- BMarkup Language
- COOP Language
- DProgramming Language
31HTML is platform independent.
- ATrue
- BFalse
32 The attribute of <form> tag
- AMethod
- BAction
- CBoth (a)&(b)
- DNone of these
33The latest HTML standard is
- AXML
- BSGML
- CHTML 4.0
- DHTML 5.0
34JavaScript is designed for following purpose -
- ATo Style HTML Pages
- BTo add interactivity to HTML Pages.
- CTo Perform Server Side Scripting Opertion
- DTo Execute Query Related to DB on Server
35To insert a JavaScript into an HTML page, which tag is used?
- A< script=’java’>
- B< javascript>
- C< script>
- D< js>
36Which of the following is correct to write “Hello World” on the web page?
- ASystem.out.println(“Hello World”)
- Bprint(“Hello World”)
- Cdocument.write(“Hello World”)
- Dresponse.write(“Hello World”)
37 HTML is based on which language
- AXHTML
- BXML
- CSGML
- DDTD
38The __________ is an instruction to the web browser about what version of HTML the page is written in
- A< !DOCTYPE>
- B< DOCTYPE>
- C< TYPE>
- D< !TYPE>
39What is W3C?
- AWorld Wide Web Consortium
- Bworld wide web corporation
- Cworld wide web company
- Dworld wide web controlling
40If background image is smaller than the screen, what will happen?
- AIt’ll be stretched
- BIt’ll be repeated
- CIt’ll leave blank space at the bottom of page
- DNone of these
41How can you created rounded corners using CSS3?
- Aborder[round]: 30px;
- Bcorner-effect: round;
- Cborder-radius: 30px;
- Dalpha-effect: round-corner;
42Which of the following is not a valid JavaScript variable name?
- A2java
- B_java_and_ java _names
- Cjavaandjava
- DNone of the above
43What language defines the behavior of a web page?
- AHTML
- BCSS
- CXML
- DJava Script
44What is the alternate name for Java script?
- ALimeScript
- BBoth a and d
- CECMScript
- DECMAScript
45JavaScript is an ________ language.
- Acompiled
- Binterpreted
46JavaScript Code is written inside file having extension __________.
- A.jvs
- B.javascript
- C.js
- D.jsc
47Choose appropriate Option(s) : JavaScript is also called as _____________.
- AServer Side Scripting Language
- BClient Side Scripting Language
- CBrowser Side Scripting Language
- DNone of these
48We use _______ style comment to prevent showing Java Script as Content in the web browsers.
- AJS
- BCSS
- CHTML
- DC
49HTML and XHTML stands for
- AHyper Text Markup Language and EXtensible HyperText Markup Language
- BHyper Text Markup Language and EXtensible HyperText Marking Language
- CHyper Text Marking Language and EXtensible HyperText Marking Language
- DNone of the mentioned
50Which was the first browser to support JavaScript ?
- AMozilla Firefox
- BB
Google Chrome - CIE
- DNetscape
Information
- Description
- Quiz on Internet Technology Lab Viva 2, created by Rejin Rajan on 18/03/2018.
- Author
- Rejin Rajan
- Language
- English
- Views
- 2
- Rating
- No ratings yet Rate this quiz
More on HTML, CSS and JavaScript