Internet Technology Lab Viva 1

Descrição

Internet Technology Lab Viva 1
Rejin Rajan
Quiz por Rejin Rajan, atualizado more than 1 year ago
Rejin Rajan
Criado por Rejin Rajan mais de 6 anos atrás
102
4

Resumo de Recurso

Questão 1

Questão
Inside which HTML element do we put the JavaScript?
Responda
  • <javascript>
  • <scripting>
  • <script>
  • <js>

Questão 2

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

Questão 3

Questão
How do you write "Hello World" in an alert box?
Responda
  • msgBox("Hello World");
  • alertBox("Hello World");
  • alert("Hello World");
  • msg("Hello World");

Questão 4

Questão
How do you call a function named "myFunction"?
Responda
  • myFunction()
  • call myFunction()
  • call function myFunction()

Questão 5

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

Questão 6

Questão
How does a FOR loop start?
Responda
  • for (i <= 5; i++)
  • for (i = 0; i <= 5)
  • for i = 1 to 5
  • for (i = 0; i <= 5; i++)

Questão 7

Questão
How can you add a comment in a JavaScript?
Responda
  • //This is a comment
  • 'This is a comment
  • <!--This is a comment-->

Questão 8

Questão
How do you round the number 7.25, to the nearest integer?
Responda
  • round(7.25)
  • Math.rnd(7.25)
  • rnd(7.25)
  • Math.round(7.25)

Questão 9

Questão
JavaScript is the same as Java.
Responda
  • True
  • False

Questão 10

Questão
Which event occurs when the user clicks on an HTML element?
Responda
  • onclick
  • onchange
  • onmouseover
  • onmouseclick

Questão 11

Questão
Who is making the Web standards?
Responda
  • Microsoft
  • The World Wide Web Consortium
  • Mozilla
  • Google

Questão 12

Questão
Choose the correct HTML element for the largest heading:
Responda
  • <h6>
  • <head>
  • <h1>
  • <heading>

Questão 13

Questão
Choose the correct HTML element to define emphasized text
Responda
  • <i>
  • <em>
  • <italic>

Questão 14

Questão
What is the correct HTML for creating a hyperlink?
Responda
  • <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>

Questão 15

Questão
How can you make a numbered list?
Responda
  • <ol>
  • <ul>
  • <list>
  • <dl>

Questão 16

Questão
What is the correct HTML for making a checkbox?
Responda
  • <input type="check">
  • <input type="checkbox">
  • <check>
  • <checkbox>

Questão 17

Questão
What is the correct HTML for making a drop-down list?
Responda
  • <list>
  • <input type="list">
  • <select>
  • <input type="dropdown">

Questão 18

Questão
What is the correct HTML for inserting an image?
Responda
  • <img href="image.gif" alt="MyImage">
  • <img alt="MyImage">image.gif</img>
  • <img src="image.gif" alt="MyImage">
  • <image src="image.gif" alt="MyImage">

Questão 19

Questão
HTML comments start with <!-- and end with -->
Responda
  • True
  • False

Questão 20

Questão
Which HTML element defines the title of a document?
Responda
  • <meta>
  • <head>
  • <title>

Questão 21

Questão
Which HTML element is used to specify a footer for a document or section?
Responda
  • <section>
  • <footer>
  • <bottom>

Questão 22

Questão
In HTML, onblur and onfocus are:
Responda
  • HTML elements
  • Event attributes
  • Style attributes

Questão 23

Questão
Which HTML element defines navigation links?
Responda
  • <navigate>
  • <nav>
  • <navigation>

Questão 24

Questão
What does CSS stand for?
Responda
  • Colorful Style Sheets
  • Cascading Style Sheets
  • Computer Style Sheets
  • Creative Style Sheets

Questão 25

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

Questão 26

Questão
Which HTML attribute is used to define inline styles?
Responda
  • style
  • class
  • styles
  • font

Questão 27

Questão
How do you insert a comment in a CSS file?
Responda
  • /* this is a comment */
  • // this is a comment
  • ' this is a comment
  • // this is a comment //

Questão 28

Questão
Which CSS property is used to change the text color of an element?
Responda
  • color
  • fgcolor
  • text-color

Questão 29

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

Questão 30

Questão
How do you display hyperlinks without an underline?
Responda
  • a {text-decoration:no-underline;}
  • a {text-decoration:none;}
  • a {decoration:no-underline;}
  • a {underline:none;}

Questão 31

Questão
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?
Responda
  • border-width:10px 1px 5px 20px;
  • border-width:10px 5px 20px 1px;
  • border-width:10px 20px 5px 1px;
  • border-width:5px 20px 10px 1px;

Questão 32

Questão
When using the padding property; are you allowed to use negative values?
Responda
  • True
  • False

Questão 33

Questão
How do you select an element with id "demo"?
Responda
  • #demo
  • .demo
  • demo
  • *demo

Questão 34

Questão
How do you select all p elements inside a div element?
Responda
  • div.p
  • div + p
  • div p

Questão 35

Questão
What is the default value of the position property?
Responda
  • fixed
  • static
  • relative
  • absolute

Questão 36

Questão
Where is the correct place to insert a JavaScript?
Responda
  • The <head> section
  • The <body> section
  • Both the <head> section and the <body> section are correct

Questão 37

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

Questão 38

Questão
Main container for <TR>, <TD> and <TH> is
Responda
  • <TABLE>
  • <GROUP>
  • <DATA>
  • All of these

Questão 39

Questão
The latest HTML standard is
Responda
  • XML
  • SGML
  • HTML 4.0
  • HTML 5.0

Questão 40

Questão
The attribute of <form> tag
Responda
  • Method
  • Action
  • Both (a)&(b)
  • None of these

Questão 41

Questão
HTML is platform independent.
Responda
  • True
  • False

Questão 42

Questão
HTML is considered as _________ language.
Responda
  • Higher Level Language
  • Markup Language
  • OOP Language
  • Programming Language

Questão 43

Questão
How do you declare a JavaScript variable?
Responda
  • var carName;
  • v carName;
  • variable carName;

Questão 44

Questão
How do you find the number with the highest value of x and y?
Responda
  • top(x, y)
  • Math.max(x, y)
  • ceil(x, y)
  • Math.ceil(x, y)

Questão 45

Questão
Which is the correct CSS syntax?
Responda
  • {body:color=black;}
  • {body;color:black;}
  • body {color: black;}
  • body:color=black;

Questão 46

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

Questão 47

Questão
Which property is used to change the font of an element?
Responda
  • font-family
  • font
  • Both font-family and font can be used

Questão 48

Questão
How to insert a comment that has more than one line in CSS?
Responda
  • /*This comment has more than one line*/
  • //This comment has more than one line//
  • <!--This comment has more than one line-->

Questão 49

Questão
What is the correct way to write a JavaScript array?
Responda
  • 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"]

Questão 50

Questão
What is the correct HTML for inserting a background image?
Responda
  • <body style="background-image:url(background.gif)">
  • <background img="background.gif">
  • <body bg="background.gif">

Semelhante

Inglês para Concursos Públicos
Alessandra S.
Phrasal Verbs - Inglês #1
Eduardo .
Provas anteriores de Vestibular - Fuvest 1
GoConqr suporte .
Guia Completo - Como usar GoConqr
GoConqr suporte .
Planejamento de Aulas para Vestibular: 4 Dicas de organização para Professores
GoConqr suporte .
Mapas Mentais em Sala de Aula
Alice Sousa
Simbolismo
joycecarvalhosan
Quinhentismo
Isadora Borges
Patologia Geral - Hipertensão Arterial (Geral)
BrienneC
BENS PÚBLICOS I
Mateus de Souza
Liderança Militar - Exercício 2
Ibsen Rodrigues Maciel