Internet Technology Lab Viva 1

Description

Internet Technology Lab Viva 1
Rejin Rajan
Quiz by Rejin Rajan, updated more than 1 year ago
Rejin Rajan
Created by Rejin Rajan about 6 years ago
102
4

Resource summary

Question 1

Question
Inside which HTML element do we put the JavaScript?
Answer
  • <javascript>
  • <scripting>
  • <script>
  • <js>

Question 2

Question
What is the correct JavaScript syntax to change the content of the HTML element below? <p id="demo">This is a demonstration.</p>
Answer
  • #demo.innerHTML = "Hello World!";
  • document.getElement("p").innerHTML = "Hello World!";
  • document.getElementByName("p").innerHTML = "Hello World!";
  • document.getElementById("demo").innerHTML = "Hello World!";

Question 3

Question
How do you write "Hello World" in an alert box?
Answer
  • msgBox("Hello World");
  • alertBox("Hello World");
  • alert("Hello World");
  • msg("Hello World");

Question 4

Question
How do you call a function named "myFunction"?
Answer
  • myFunction()
  • call myFunction()
  • call function myFunction()

Question 5

Question
How to write an IF statement for executing some code if "i" is NOT equal to 5?
Answer
  • if (i != 5)
  • if (i <> 5)
  • if i =! 5 then
  • if i <> 5

Question 6

Question
How does a FOR loop start?
Answer
  • for (i <= 5; i++)
  • for (i = 0; i <= 5)
  • for i = 1 to 5
  • for (i = 0; i <= 5; i++)

Question 7

Question
How can you add a comment in a JavaScript?
Answer
  • //This is a comment
  • 'This is a comment
  • <!--This is a comment-->

Question 8

Question
How do you round the number 7.25, to the nearest integer?
Answer
  • round(7.25)
  • Math.rnd(7.25)
  • rnd(7.25)
  • Math.round(7.25)

Question 9

Question
JavaScript is the same as Java.
Answer
  • True
  • False

Question 10

Question
Which event occurs when the user clicks on an HTML element?
Answer
  • onclick
  • onchange
  • onmouseover
  • onmouseclick

Question 11

Question
Who is making the Web standards?
Answer
  • Microsoft
  • The World Wide Web Consortium
  • Mozilla
  • Google

Question 12

Question
Choose the correct HTML element for the largest heading:
Answer
  • <h6>
  • <head>
  • <h1>
  • <heading>

Question 13

Question
Choose the correct HTML element to define emphasized text
Answer
  • <i>
  • <em>
  • <italic>

Question 14

Question
What is the correct HTML for creating a hyperlink?
Answer
  • <a url="http://www.w3schools.com">W3Schools.com</a>
  • <a href="http://www.w3schools.com">W3Schools</a>
  • <a>http://www.w3schools.com</a>
  • <a name="http://www.w3schools.com">W3Schools.com</a>

Question 15

Question
How can you make a numbered list?
Answer
  • <ol>
  • <ul>
  • <list>
  • <dl>

Question 16

Question
What is the correct HTML for making a checkbox?
Answer
  • <input type="check">
  • <input type="checkbox">
  • <check>
  • <checkbox>

Question 17

Question
What is the correct HTML for making a drop-down list?
Answer
  • <list>
  • <input type="list">
  • <select>
  • <input type="dropdown">

Question 18

Question
What is the correct HTML for inserting an image?
Answer
  • <img href="image.gif" alt="MyImage">
  • <img alt="MyImage">image.gif</img>
  • <img src="image.gif" alt="MyImage">
  • <image src="image.gif" alt="MyImage">

Question 19

Question
HTML comments start with <!-- and end with -->
Answer
  • True
  • False

Question 20

Question
Which HTML element defines the title of a document?
Answer
  • <meta>
  • <head>
  • <title>

Question 21

Question
Which HTML element is used to specify a footer for a document or section?
Answer
  • <section>
  • <footer>
  • <bottom>

Question 22

Question
In HTML, onblur and onfocus are:
Answer
  • HTML elements
  • Event attributes
  • Style attributes

Question 23

Question
Which HTML element defines navigation links?
Answer
  • <navigate>
  • <nav>
  • <navigation>

Question 24

Question
What does CSS stand for?
Answer
  • Colorful Style Sheets
  • Cascading Style Sheets
  • Computer Style Sheets
  • Creative Style Sheets

Question 25

Question
What is the correct HTML for referring to an external style sheet?
Answer
  • <link rel="stylesheet" type="text/css" href="mystyle.css">
  • <style src="mystyle.css">
  • <stylesheet>mystyle.css</stylesheet>

Question 26

Question
Which HTML attribute is used to define inline styles?
Answer
  • style
  • class
  • styles
  • font

Question 27

Question
How do you insert a comment in a CSS file?
Answer
  • /* this is a comment */
  • // this is a comment
  • ' this is a comment
  • // this is a comment //

Question 28

Question
Which CSS property is used to change the text color of an element?
Answer
  • color
  • fgcolor
  • text-color

Question 29

Question
What is the correct CSS syntax for making all the <p> elements bold?
Answer
  • p {text-size:bold;}
  • <p style="text-size:bold;">
  • <p style="font-size:bold;">
  • p {font-weight:bold;}

Question 30

Question
How do you display hyperlinks without an underline?
Answer
  • a {text-decoration:no-underline;}
  • a {text-decoration:none;}
  • a {decoration:no-underline;}
  • a {underline:none;}

Question 31

Question
How 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?
Answer
  • border-width:10px 1px 5px 20px;
  • border-width:10px 5px 20px 1px;
  • border-width:10px 20px 5px 1px;
  • border-width:5px 20px 10px 1px;

Question 32

Question
When using the padding property; are you allowed to use negative values?
Answer
  • True
  • False

Question 33

Question
How do you select an element with id "demo"?
Answer
  • #demo
  • .demo
  • demo
  • *demo

Question 34

Question
How do you select all p elements inside a div element?
Answer
  • div.p
  • div + p
  • div p

Question 35

Question
What is the default value of the position property?
Answer
  • fixed
  • static
  • relative
  • absolute

Question 36

Question
Where is the correct place to insert a JavaScript?
Answer
  • The <head> section
  • The <body> section
  • Both the <head> section and the <body> section are correct

Question 37

Question
How can you make an e-mail link?
Answer
  • <mail href +"xxx@y.com">
  • <a href ="mailto: xxx@y.com">
  • <a = "xxx@y.com">
  • Both (b) and (c)

Question 38

Question
Main container for <TR>, <TD> and <TH> is
Answer
  • <TABLE>
  • <GROUP>
  • <DATA>
  • All of these

Question 39

Question
The latest HTML standard is
Answer
  • XML
  • SGML
  • HTML 4.0
  • HTML 5.0

Question 40

Question
The attribute of <form> tag
Answer
  • Method
  • Action
  • Both (a)&(b)
  • None of these

Question 41

Question
HTML is platform independent.
Answer
  • True
  • False

Question 42

Question
HTML is considered as _________ language.
Answer
  • Higher Level Language
  • Markup Language
  • OOP Language
  • Programming Language

Question 43

Question
How do you declare a JavaScript variable?
Answer
  • var carName;
  • v carName;
  • variable carName;

Question 44

Question
How do you find the number with the highest value of x and y?
Answer
  • top(x, y)
  • Math.max(x, y)
  • ceil(x, y)
  • Math.ceil(x, y)

Question 45

Question
Which is the correct CSS syntax?
Answer
  • {body:color=black;}
  • {body;color:black;}
  • body {color: black;}
  • body:color=black;

Question 46

Question
How do you add a background color for all <h1> elements?
Answer
  • all.h1 {background-color:#FFFFFF;}
  • h1.all {background-color:#FFFFFF;}
  • h1 {background-color:#FFFFFF;}
  • All of the above

Question 47

Question
Which property is used to change the font of an element?
Answer
  • font-family
  • font
  • Both font-family and font can be used

Question 48

Question
How to insert a comment that has more than one line in CSS?
Answer
  • /*This comment has more than one line*/
  • //This comment has more than one line//
  • <!--This comment has more than one line-->

Question 49

Question
What is the correct way to write a JavaScript array?
Answer
  • var colors = "red", "green", "blue"
  • var colors = (1:"red", 2:"green", 3:"blue")
  • var colors = 1 = ("red"), 2 = ("green"), 3 = ("blue")
  • var colors = ["red", "green", "blue"]

Question 50

Question
What is the correct HTML for inserting a background image?
Answer
  • <body style="background-image:url(background.gif)">
  • <background img="background.gif">
  • <body bg="background.gif">
Show full summary Hide full summary

Similar

Photosynthesis
ecarleton622
Advantages and Disadvantages of Parliamentary Law making
Sinead Gapp
Aparatos y sistemas del cuerpo humano
Mai Sin Más
1984 - Good quotes to memorise
jenniferlg
Geography AQA Revison topics Migration, Population Change, Youthful Populations and more
dburns8731
Key Biology Definitions/Terms
jane zulu
Urbanisation
Jess Molyneux
AQA A2 Biology Unit 5 Chapter 11: Muscle Contraction
Charlotte Lloyd
ENZYMES AND THE DIGESTIVE SYSTEM
ashiana121
Ratios
Sharon Yates
W.B. Yeats
Éimear Buggy