Internet Technology Lab Viva 1

Descripción

Internet Technology Lab Viva 1
Rejin Rajan
Test por Rejin Rajan, actualizado hace más de 1 año
Rejin Rajan
Creado por Rejin Rajan hace alrededor de 6 años
102
4

Resumen del Recurso

Pregunta 1

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

Pregunta 2

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

Pregunta 3

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

Pregunta 4

Pregunta
How do you call a function named "myFunction"?
Respuesta
  • myFunction()
  • call myFunction()
  • call function myFunction()

Pregunta 5

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

Pregunta 6

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

Pregunta 7

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

Pregunta 8

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

Pregunta 9

Pregunta
JavaScript is the same as Java.
Respuesta
  • True
  • False

Pregunta 10

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

Pregunta 11

Pregunta
Who is making the Web standards?
Respuesta
  • Microsoft
  • The World Wide Web Consortium
  • Mozilla
  • Google

Pregunta 12

Pregunta
Choose the correct HTML element for the largest heading:
Respuesta
  • <h6>
  • <head>
  • <h1>
  • <heading>

Pregunta 13

Pregunta
Choose the correct HTML element to define emphasized text
Respuesta
  • <i>
  • <em>
  • <italic>

Pregunta 14

Pregunta
What is the correct HTML for creating a hyperlink?
Respuesta
  • <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>

Pregunta 15

Pregunta
How can you make a numbered list?
Respuesta
  • <ol>
  • <ul>
  • <list>
  • <dl>

Pregunta 16

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

Pregunta 17

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

Pregunta 18

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

Pregunta 19

Pregunta
HTML comments start with <!-- and end with -->
Respuesta
  • True
  • False

Pregunta 20

Pregunta
Which HTML element defines the title of a document?
Respuesta
  • <meta>
  • <head>
  • <title>

Pregunta 21

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

Pregunta 22

Pregunta
In HTML, onblur and onfocus are:
Respuesta
  • HTML elements
  • Event attributes
  • Style attributes

Pregunta 23

Pregunta
Which HTML element defines navigation links?
Respuesta
  • <navigate>
  • <nav>
  • <navigation>

Pregunta 24

Pregunta
What does CSS stand for?
Respuesta
  • Colorful Style Sheets
  • Cascading Style Sheets
  • Computer Style Sheets
  • Creative Style Sheets

Pregunta 25

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

Pregunta 26

Pregunta
Which HTML attribute is used to define inline styles?
Respuesta
  • style
  • class
  • styles
  • font

Pregunta 27

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

Pregunta 28

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

Pregunta 29

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

Pregunta 30

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

Pregunta 31

Pregunta
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?
Respuesta
  • border-width:10px 1px 5px 20px;
  • border-width:10px 5px 20px 1px;
  • border-width:10px 20px 5px 1px;
  • border-width:5px 20px 10px 1px;

Pregunta 32

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

Pregunta 33

Pregunta
How do you select an element with id "demo"?
Respuesta
  • #demo
  • .demo
  • demo
  • *demo

Pregunta 34

Pregunta
How do you select all p elements inside a div element?
Respuesta
  • div.p
  • div + p
  • div p

Pregunta 35

Pregunta
What is the default value of the position property?
Respuesta
  • fixed
  • static
  • relative
  • absolute

Pregunta 36

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

Pregunta 37

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

Pregunta 38

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

Pregunta 39

Pregunta
The latest HTML standard is
Respuesta
  • XML
  • SGML
  • HTML 4.0
  • HTML 5.0

Pregunta 40

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

Pregunta 41

Pregunta
HTML is platform independent.
Respuesta
  • True
  • False

Pregunta 42

Pregunta
HTML is considered as _________ language.
Respuesta
  • Higher Level Language
  • Markup Language
  • OOP Language
  • Programming Language

Pregunta 43

Pregunta
How do you declare a JavaScript variable?
Respuesta
  • var carName;
  • v carName;
  • variable carName;

Pregunta 44

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

Pregunta 45

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

Pregunta 46

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

Pregunta 47

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

Pregunta 48

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

Pregunta 49

Pregunta
What is the correct way to write a JavaScript array?
Respuesta
  • 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"]

Pregunta 50

Pregunta
What is the correct HTML for inserting a background image?
Respuesta
  • <body style="background-image:url(background.gif)">
  • <background img="background.gif">
  • <body bg="background.gif">
Mostrar resumen completo Ocultar resumen completo

Similar

Inglés - Vocabulario Básico
maya velasquez
Fichas de Inglés - Vocabulario Intermedio
maya velasquez
Latín - Vocabulario Básico
maya velasquez
First Certificate - Use of English Parte 3
Diego Santos
Guerra Civil Española: Fechas Clave
maya velasquez
CLASIFICACIÓN DE LOS MEDICAMENTOS
nanis342009
Trastrono de Estrés Postraumático
Beatriz de Carmen Rosales López
TRIÁNGULOS y CUADRILÁTEROS
Ulises Yo
Tejidos animales
Enrique Bravo
APUNTES DE LATÍN
Cintia González Manzanares
Verb to be - Present simple test
Migueli Adán Cantarero