Rejin Rajan
Quiz von , erstellt am more than 1 year ago

Internet Technology Lab Viva 1

102
4
0
Keine Merkmale angegeben
Rejin Rajan
Erstellt von Rejin Rajan vor mehr als 6 Jahre
Schließen

Internet Technology Lab Viva 1

Frage 1 von 50

1

Inside which HTML element do we put the JavaScript?

Wähle eine der folgenden:

  • <javascript>

  • <scripting>

  • <script>

  • <js>

Erklärung

Frage 2 von 50

1

What is the correct JavaScript syntax to change the content of the HTML element below?

<p id="demo">This is a demonstration.</p>

Wähle eine der folgenden:

  • #demo.innerHTML = "Hello World!";

  • document.getElement("p").innerHTML = "Hello World!";

  • document.getElementByName("p").innerHTML = "Hello World!";

  • document.getElementById("demo").innerHTML = "Hello World!";

Erklärung

Frage 3 von 50

1

How do you write "Hello World" in an alert box?

Wähle eine der folgenden:

  • msgBox("Hello World");

  • alertBox("Hello World");

  • alert("Hello World");

  • msg("Hello World");

Erklärung

Frage 4 von 50

1

How do you call a function named "myFunction"?

Wähle eine der folgenden:

  • myFunction()

  • call myFunction()

  • call function myFunction()

Erklärung

Frage 5 von 50

1

How to write an IF statement for executing some code if "i" is NOT equal to 5?

Wähle eine der folgenden:

  • if (i != 5)

  • if (i <> 5)

  • if i =! 5 then

  • if i <> 5

Erklärung

Frage 6 von 50

1

How does a FOR loop start?

Wähle eine der folgenden:

  • for (i <= 5; i++)

  • for (i = 0; i <= 5)

  • for i = 1 to 5

  • for (i = 0; i <= 5; i++)

Erklärung

Frage 7 von 50

1

How can you add a comment in a JavaScript?

Wähle eine der folgenden:

  • //This is a comment

  • 'This is a comment

  • <!--This is a comment-->

Erklärung

Frage 8 von 50

1

How do you round the number 7.25, to the nearest integer?

Wähle eine der folgenden:

  • round(7.25)

  • Math.rnd(7.25)

  • rnd(7.25)

  • Math.round(7.25)

Erklärung

Frage 9 von 50

1

JavaScript is the same as Java.

Wähle eins der folgenden:

  • WAHR
  • FALSCH

Erklärung

Frage 10 von 50

1

Which event occurs when the user clicks on an HTML element?

Wähle eine der folgenden:

  • onclick

  • onchange

  • onmouseover

  • onmouseclick

Erklärung

Frage 11 von 50

1

Who is making the Web standards?

Wähle eine der folgenden:

  • Microsoft

  • The World Wide Web Consortium

  • Mozilla

  • Google

Erklärung

Frage 12 von 50

1

Choose the correct HTML element for the largest heading:

Wähle eine der folgenden:

  • <h6>

  • <head>

  • <h1>

  • <heading>

Erklärung

Frage 13 von 50

1

Choose the correct HTML element to define emphasized text

Wähle eine der folgenden:

  • <i>

  • <em>

  • <italic>

Erklärung

Frage 14 von 50

1

What is the correct HTML for creating a hyperlink?

Wähle eine der folgenden:

  • <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>

Erklärung

Frage 15 von 50

1

How can you make a numbered list?

Wähle eine der folgenden:

  • <ol>

  • <ul>

  • <list>

  • <dl>

Erklärung

Frage 16 von 50

1

What is the correct HTML for making a checkbox?

Wähle eine der folgenden:

  • <input type="check">

  • <input type="checkbox">

  • <check>

  • <checkbox>

Erklärung

Frage 17 von 50

1

What is the correct HTML for making a drop-down list?

Wähle eine der folgenden:

  • <list>

  • <input type="list">

  • <select>

  • <input type="dropdown">

Erklärung

Frage 18 von 50

1

What is the correct HTML for inserting an image?

Wähle eine der folgenden:

  • <img href="image.gif" alt="MyImage">

  • <img alt="MyImage">image.gif</img>

  • <img src="image.gif" alt="MyImage">

  • <image src="image.gif" alt="MyImage">

Erklärung

Frage 19 von 50

1

HTML comments start with <!-- and end with -->

Wähle eins der folgenden:

  • WAHR
  • FALSCH

Erklärung

Frage 20 von 50

1

Which HTML element defines the title of a document?

Wähle eine der folgenden:

  • <meta>

  • <head>

  • <title>

Erklärung

Frage 21 von 50

1

Which HTML element is used to specify a footer for a document or section?

Wähle eine der folgenden:

  • <section>

  • <footer>

  • <bottom>

Erklärung

Frage 22 von 50

1

In HTML, onblur and onfocus are:

Wähle eine der folgenden:

  • HTML elements

  • Event attributes

  • Style attributes

Erklärung

Frage 23 von 50

1

Which HTML element defines navigation links?

Wähle eine der folgenden:

  • <navigate>

  • <nav>

  • <navigation>

Erklärung

Frage 24 von 50

1

What does CSS stand for?

Wähle eine der folgenden:

  • Colorful Style Sheets

  • Cascading Style Sheets

  • Computer Style Sheets

  • Creative Style Sheets

Erklärung

Frage 25 von 50

1

What is the correct HTML for referring to an external style sheet?

Wähle eine der folgenden:

  • <link rel="stylesheet" type="text/css" href="mystyle.css">

  • <style src="mystyle.css">

  • <stylesheet>mystyle.css</stylesheet>

Erklärung

Frage 26 von 50

1

Which HTML attribute is used to define inline styles?

Wähle eine der folgenden:

  • style

  • class

  • styles

  • font

Erklärung

Frage 27 von 50

1

How do you insert a comment in a CSS file?

Wähle eine der folgenden:

  • /* this is a comment */

  • // this is a comment

  • ' this is a comment

  • // this is a comment //

Erklärung

Frage 28 von 50

1

Which CSS property is used to change the text color of an element?

Wähle eine der folgenden:

  • color

  • fgcolor

  • text-color

Erklärung

Frage 29 von 50

1

What is the correct CSS syntax for making all the <p> elements bold?

Wähle eine der folgenden:

  • p {text-size:bold;}

  • <p style="text-size:bold;">

  • <p style="font-size:bold;">

  • p {font-weight:bold;}

Erklärung

Frage 30 von 50

1

How do you display hyperlinks without an underline?

Wähle eine der folgenden:

  • a {text-decoration:no-underline;}

  • a {text-decoration:none;}

  • a {decoration:no-underline;}

  • a {underline:none;}

Erklärung

Frage 31 von 50

1

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?

Wähle eine der folgenden:

  • border-width:10px 1px 5px 20px;

  • border-width:10px 5px 20px 1px;

  • border-width:10px 20px 5px 1px;

  • border-width:5px 20px 10px 1px;

Erklärung

Frage 32 von 50

1

When using the padding property; are you allowed to use negative values?

Wähle eins der folgenden:

  • WAHR
  • FALSCH

Erklärung

Frage 33 von 50

1

How do you select an element with id "demo"?

Wähle eine der folgenden:

  • #demo

  • .demo

  • demo

  • *demo

Erklärung

Frage 34 von 50

1

How do you select all p elements inside a div element?

Wähle eine der folgenden:

  • div.p

  • div + p

  • div p

Erklärung

Frage 35 von 50

1

What is the default value of the position property?

Wähle eine der folgenden:

  • fixed

  • static

  • relative

  • absolute

Erklärung

Frage 36 von 50

1

Where is the correct place to insert a JavaScript?

Wähle eine der folgenden:

  • The <head> section

  • The <body> section

  • Both the <head> section and the <body> section are correct

Erklärung

Frage 37 von 50

1

How can you make an e-mail link?

Wähle eine der folgenden:

  • <mail href +"xxx@y.com">

  • <a href ="mailto: xxx@y.com">

  • <a = "xxx@y.com">

  • Both (b) and (c)

Erklärung

Frage 38 von 50

1

Main container for <TR>, <TD> and <TH> is

Wähle eine der folgenden:

  • <TABLE>

  • <GROUP>

  • <DATA>

  • All of these

Erklärung

Frage 39 von 50

1

The latest HTML standard is

Wähle eine der folgenden:

  • XML

  • SGML

  • HTML 4.0

  • HTML 5.0

Erklärung

Frage 40 von 50

1

The attribute of <form> tag

Wähle eine der folgenden:

  • Method

  • Action

  • Both (a)&(b)

  • None of these

Erklärung

Frage 41 von 50

1

HTML is platform independent.

Wähle eins der folgenden:

  • WAHR
  • FALSCH

Erklärung

Frage 42 von 50

1

HTML is considered as _________ language.

Wähle eine der folgenden:

  • Higher Level Language

  • Markup Language

  • OOP Language

  • Programming Language

Erklärung

Frage 43 von 50

1

How do you declare a JavaScript variable?

Wähle eine der folgenden:

  • var carName;

  • v carName;

  • variable carName;

Erklärung

Frage 44 von 50

1

How do you find the number with the highest value of x and y?

Wähle eine der folgenden:

  • top(x, y)

  • Math.max(x, y)

  • ceil(x, y)

  • Math.ceil(x, y)

Erklärung

Frage 45 von 50

1

Which is the correct CSS syntax?

Wähle eine der folgenden:

  • {body:color=black;}

  • {body;color:black;}

  • body {color: black;}

  • body:color=black;

Erklärung

Frage 46 von 50

1

How do you add a background color for all <h1> elements?

Wähle eine der folgenden:

  • all.h1 {background-color:#FFFFFF;}

  • h1.all {background-color:#FFFFFF;}

  • h1 {background-color:#FFFFFF;}

  • All of the above

Erklärung

Frage 47 von 50

1

Which property is used to change the font of an element?

Wähle eine der folgenden:

  • font-family

  • font

  • Both font-family and font can be used

Erklärung

Frage 48 von 50

1

How to insert a comment that has more than one line in CSS?

Wähle eine der folgenden:

  • /*This comment has
    more than one line*/

  • //This comment has
    more than one line//

  • <!--This comment has
    more than one line-->

Erklärung

Frage 49 von 50

1

What is the correct way to write a JavaScript array?

Wähle eine der folgenden:

  • 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"]

Erklärung

Frage 50 von 50

1

What is the correct HTML for inserting a background image?

Wähle eine der folgenden:

  • <body style="background-image:url(background.gif)">

  • <background img="background.gif">

  • <body bg="background.gif">

Erklärung