Internet Technology Lab Viva 1

Beschreibung

Internet Technology Lab Viva 1
Rejin Rajan
Quiz von Rejin Rajan, aktualisiert more than 1 year ago
Rejin Rajan
Erstellt von Rejin Rajan vor mehr als 6 Jahre
104
4

Zusammenfassung der Ressource

Frage 1

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

Frage 2

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

Frage 3

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

Frage 4

Frage
How do you call a function named "myFunction"?
Antworten
  • myFunction()
  • call myFunction()
  • call function myFunction()

Frage 5

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

Frage 6

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

Frage 7

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

Frage 8

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

Frage 9

Frage
JavaScript is the same as Java.
Antworten
  • True
  • False

Frage 10

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

Frage 11

Frage
Who is making the Web standards?
Antworten
  • Microsoft
  • The World Wide Web Consortium
  • Mozilla
  • Google

Frage 12

Frage
Choose the correct HTML element for the largest heading:
Antworten
  • <h6>
  • <head>
  • <h1>
  • <heading>

Frage 13

Frage
Choose the correct HTML element to define emphasized text
Antworten
  • <i>
  • <em>
  • <italic>

Frage 14

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

Frage 15

Frage
How can you make a numbered list?
Antworten
  • <ol>
  • <ul>
  • <list>
  • <dl>

Frage 16

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

Frage 17

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

Frage 18

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

Frage 19

Frage
HTML comments start with <!-- and end with -->
Antworten
  • True
  • False

Frage 20

Frage
Which HTML element defines the title of a document?
Antworten
  • <meta>
  • <head>
  • <title>

Frage 21

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

Frage 22

Frage
In HTML, onblur and onfocus are:
Antworten
  • HTML elements
  • Event attributes
  • Style attributes

Frage 23

Frage
Which HTML element defines navigation links?
Antworten
  • <navigate>
  • <nav>
  • <navigation>

Frage 24

Frage
What does CSS stand for?
Antworten
  • Colorful Style Sheets
  • Cascading Style Sheets
  • Computer Style Sheets
  • Creative Style Sheets

Frage 25

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

Frage 26

Frage
Which HTML attribute is used to define inline styles?
Antworten
  • style
  • class
  • styles
  • font

Frage 27

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

Frage 28

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

Frage 29

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

Frage 30

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

Frage 31

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

Frage 32

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

Frage 33

Frage
How do you select an element with id "demo"?
Antworten
  • #demo
  • .demo
  • demo
  • *demo

Frage 34

Frage
How do you select all p elements inside a div element?
Antworten
  • div.p
  • div + p
  • div p

Frage 35

Frage
What is the default value of the position property?
Antworten
  • fixed
  • static
  • relative
  • absolute

Frage 36

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

Frage 37

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

Frage 38

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

Frage 39

Frage
The latest HTML standard is
Antworten
  • XML
  • SGML
  • HTML 4.0
  • HTML 5.0

Frage 40

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

Frage 41

Frage
HTML is platform independent.
Antworten
  • True
  • False

Frage 42

Frage
HTML is considered as _________ language.
Antworten
  • Higher Level Language
  • Markup Language
  • OOP Language
  • Programming Language

Frage 43

Frage
How do you declare a JavaScript variable?
Antworten
  • var carName;
  • v carName;
  • variable carName;

Frage 44

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

Frage 45

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

Frage 46

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

Frage 47

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

Frage 48

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

Frage 49

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

Frage 50

Frage
What is the correct HTML for inserting a background image?
Antworten
  • <body style="background-image:url(background.gif)">
  • <background img="background.gif">
  • <body bg="background.gif">
Zusammenfassung anzeigen Zusammenfassung ausblenden

ähnlicher Inhalt

Quiz-Allgemeinwissen
AntonS
IKA-Theoriefragen Serie 03 (15 Fragen)
IKA ON ICT GmbH
KORRE VO - Fragenkatalog überarbeitet
Jennifer Riegler
Vetie - Tierzucht & Genetik - S V
Fioras Hu
Vetie Mibi Altfragen 2016
Ina Qu
Vetie-KPrim Fragen 2017 Innere
Ju Pi
Vetie Para 2019
Lea AvS
Vetie Geflügelkrankheiten Altfragen
Tropsi B