Computer Math

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

39. In HTML, what does the <aside> element define?

Content aside from the page content

32. In HTML, onblur and onfocus are:

Event attributes

19. JavaScript is the same as Java.

False

23. Block elements are normally displayed without starting a new line.

False

5. The external JavaScript file must contain the <script> tag.

False

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

Math.max(x,y)

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

Math.round(7.25)

31. The HTML global attribute, "contenteditable" is used to:

Specify whether the content of an element should be editable or not

2. Who is making the Web standards?

The World Wide Web Consortium

21. An <iframe> is used to display a web page within a web page.

True

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

True

28. In HTML, you can embed SVG elements directly into an HTML page.

True

25. Is JavaScript case-sensitive?

Yes

7. How do you insert a comment in a CSS file?

a. /* this is a comment */

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

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

5. Which HTML attribute is used to define inline styles?

a. Style

6. Which is the correct CSS syntax?

a. body {color: black

2. What is the correct JavaScript syntax to write "Hello World"?

document.write("Hello World");

34. The HTML <canvas> element is used to

draw graphics

12. How does a FOR loop start?

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

7. How do you create a function in JavaScript?

function myFunction()

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

if (i != 5)

9. How to write an IF statement in JavaScript?

if (i==5)

8. How do you call a function named "myFunction"?

myFunction()

20. How can you detect the client's browser name?

navigator.appName

36. Which input type defines a slider control?

range

35. In HTML, which attribute is used to specify that an input field must be filled out?

required

24. What will the following code return: Boolean(10 > 9)

true

15. What is the correct way to write a JavaScript array?

var txt = new Array("tim","kim","jim")

18. What is the correct JavaScript syntax for opening a new window called "w2" ?

w2=window.open("http://www.w3schools.com");

4. What is the correct HTML element for inserting a line break?

<br>

38. Which HTML element defines navigation links?

<nav>

13. How can you make a numbered list?

<ol>

4. What is the correct syntax for referring to an external script called "xxx.js"?

<script src="xxx.js">

1. Inside which HTML element do we put the JavaScript?

<script>

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

<select>

14. How can you make a bulleted list?

<ul>

29. What is the correct HTML element for playing video files?

<video>

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

a. p {font-weight:bold}

14. How do you make each word in a text start with a capital letter?

a. text-transform:capitalize

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

alert("Hello World");

25. Which HTML attribute specifies an alternate text for an image, if the image cannot be displayed?

alt

30. What is the correct HTML element for playing audio files?

<audio>

20. What is the correct HTML for inserting a background image?

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

6. Choose the correct HTML element to define important text

<strong>

11. Which of these elements are all <table> elements?

<table><tr><td>

18. What is the correct HTML for making a text area?

<textarea>

24. Which HTML element defines the title of a document?

<title>

3. Where is the correct place to insert a JavaScript?

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

1. What does HTML stand for?

Hyper Text Markup Language

12. Inline elements are normally displayed without starting a new line.

True

33. Graphics defined by SVG is in which format?

XML

4. Which HTML tag is used to define an internal style sheet?

a. <style>

1. What does CSS stand for?

a. Cascading Style Sheets

3. Where in an HTML document is the correct place to refer to an external style sheet?

a. In the <head> section

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

onclick

22. How do you declare a JavaScript variable?

var carName;

11. How does a WHILE loop start?

while (i<=10)

23. Which operator is used to assign a value to a variable?

=

What is the correct HTML for adding a background color?

<body style="background-color:yellow;">

9. Which character is used to indicate an end tag?

/

14. How to insert a comment that has more than one line?

/*This comment has more than one line*/

13. How can you add a comment in a JavaScript?

//This is a comment

26. Which doctype is correct for HTML5?

<!DOCTYPE html>

8. What is the correct HTML for creating a hyperlink?

<a href="http://www.w3schools.com">W3Schools</a>

10. How can you open a link in a new tab/browser window?

<a href="url" target="_blank">

7. Choose the correct HTML element to define emphasized text

<em>

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

<footer>

3. Choose the correct HTML element for the largest heading:

<h1>

40. Which HTML element is used to specify a header for a document or section?

<header>

19. What is the correct HTML for inserting an image?

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

15. What is the correct HTML for making a checkbox?

<input type="checkbox">

16. What is the correct HTML for making a text input field?

<input type="text">

37. Which HTML element is used to display a scalar measurement within a range?

<meter>

19. To define the space between the element's border and content, you use the padding property, but are you allowed to use negative values?

a. No

13. How do you display hyperlinks without an underline?

a. a {text-decoration:none}

8. Which property is used to change the background color?

a. background-color:

17. 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?

a. border-width:10px 1px 5px 20px

10. How do you change the text color of an element?

a. color:

15. How do you change the font of an element?

a. font-family:

11. Which CSS property controls the text size?

a. font-size

16. How do you make the text bold?

a. font-weight:bold

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

a. h1 {background-color:#FFFFFF}

20. How do you make a list that lists its items with squares?

a. list-style-type: square

18. How do you change the left margin of an element?

a. margin-left:


संबंधित स्टडी सेट्स

Veritas Press 1815 - Present Card 2: Traveling the Erie Canal

View Set

International Business Ch. 8 - Foreign Direct Investment

View Set

AP World History Review Chapters 16-18

View Set

Chapter 19: Alienated and Back to the Roots Rock

View Set

Ch 3. Job Design & Performance Metrics

View Set

CompTIA Security+ Practice Problems

View Set

RN Targeted Medical Surgical Cardiovascular Online Practice 2019

View Set