Final Exam Web Design

  1. Which version of Visual Studio are using in this course?
    A: 2012
    B: 2015
    C: 2017 Enterprise
    D: 2017 Community
    D: 2017 Community
  2. What installed template will we use for our website?
    A: Visual C#
    B: Visual J
    C: Visual Basic
    D: None of these
    A: Visual C#
  3. What displays the filed and folders in your web site?
    A: Solution Explorer
    B: Server Explorer
    C: Toolbox
    D: Properties Window
    A: Solution Explorer
  4. What allows you to change settings for the page, HTML elements, controls and other objects?
    A: Toolbox
    B: Properties Window
    C: Solution Explorer
    D: Server Explorer
    A: Properties Window
  5. What provides controls and HTML elements that you can drag onto your page?
    A: Solution Explorer
    B: Properties Window
    C: Toolbox
    D: Server Explorer
    A: Toolbox
  6. What displays database connections?
    A: Properties Window
    B: Server Explorer
    C: Toolbox
    D: Solution Explorer
    A: Server Explorer
  7. Where do you add a page to your website?
    A: Server Explorer
    B: Solution Explorer
    C: Properties Window
    D: Toolbox
    A: Solution Explorer
  8. In what view can you add text to your web page?
    A: Source View
    B: Split View
    C: Design View
    D: None of these
    A: Design View
  9. Which view do you use to view the work you have done on the page?
    A: Source View
    B: Design View
    C: Neither of these
    A: Source View
  10. What is the key shortcut to "run" your page?
    A: CTRL +F5
    B: CTRL = F5
    C: ALT + CTRL
    D: None of these
    A: CTRL + F5
  11. In HTML, what does the
    A: Content aside from the page content
  12. In HTML, onblur and onfocus are:
    A: Style attributes
    B: HTML elements
    C: Event attributes
    C: Event attributes
  13. Which HTML element defines navigation links?
    A: navigation
    B: nav
    C: navigate
    B: nav
  14. Who is making the Web standards?
    A: Google
    B: Microsoft
    C: The World Wide Web Consortium
    D: Mozilla
    C: The World Wide Web Consortium
  15. Which HTML element is used to specify a footer for a document or section?
    A: footer
    B: section
    C: bottom
    A: footer
  16. How can you open a link in a new tab/browser window?
    A: a href="url" new
    B: a href="url" target="new"
    C: a href="url" target="_blank"
    C: a href="url" target="_blank"
  17. What is the correct HTML element for inserting a line break?
    A: lb
    B: br
    C: break
    B: br
  18. Which input type defines a slider control?
    A: Range
    B: Slider
    C: Search
    D: Controls
    A: Range
  19. Which HTML attribute specifies an alternate text for an image, if the image cannot be displayed?
    A: Alt
    B: Title
    C: Src
    D: Longdesc
    A: Alt
  20. Block elements are normally displayed without starting a new line.
    A: True
    B: False
    B: False
  21. How can you make a bulleted list?
    A: ul
    B: dl
    C: ol
    D: list
    A: ul
  22. What is the correct HTML for adding a background color?
    A: body bg="yellow"
    B: body style="background-color:yellow;"
    C: background yellow /background
    B: body style="background-color:yellow;
  23. In HTML, you can embed SVG elements directly into an HTML page.
    A: True
    B: False
    B: False
  24. What is the correct HTML for making a text input field?
    A: textfield
    B: input type="textfied"
    C: textinput type = text
    D: input type = "text"
    D: input type = "text"
  25. Choose the correct HTML element to define important text.
    A: b
    B: important
    C: i
    D: strong
    D: strong
  26. Which character is used to indicate an end tag?
    A: *
    B: ^
    C: <
    D: /
    D: /
  27. What is the correct HTML for inserting a background image?
    A: body style="background-image:url(background.gif)"
    B: background img="background.gif"
    C: body bg="background.gif"
    C: body style="background-image:url(background.gif)"
  28. In HTML, which attribute is used to specify that an input field must be filled out?
    A: Placeholder
    B: Required
    C: Formvalidate
    D: Validate
    B: Required
  29. Which HTML element is used to display a scalar measurement within a range?
    A: gauge
    B: range
    C: meter
    D: measure
    C: meter
  30. What does HTML stand for?
    A: Hyper Text Markup Language
    B: Home Tool Markup Language
    C: Hyperlinks and Text Markup Language
    A: Hyper Text Markup Language
  31. Which element defines the title of a document?
    A: meta
    B: title
    C: head
    B: title
  32. Choose the correct HTML element for the largest heading:
    A: h1
    B: heading
    C: h6
    D: head
    A: h1
  33. How can you make a numbered list?
    A: ol
    B: list
    C: ul
    D: dl
    A: ol
  34. What is the correct HTML element for playing audio files?
    A: audio
    B: sound
    C: mp3
    A: audio
  35. HTML comments start with
    A: True
    B: False
    A: True
  36. What does CSS stand for?
    A: Creative Style Sheets
    B: Computer Style Sheets
    C: Colorful Style Sheets
    D: Cascading Style Sheets
    D: Cascading Style Sheets
  37. What is the correct HTML for referring to an external style sheet?
    A: link rel="stylesheet" type="text/css" href="mystyle.css"
    B: style src="mystyle.css"
    C: stylesheet mystyle.css stylesheet
    A: link rel="stylesheet" type="text/css" href="mystyle.css"
  38. Where in an HTML document is the correct place to refer to an external style sheet?
    A: In the head section
    B: At the end of the document
    C: In the body section
    A: In the head section
  39. Which HTML tag is used to define an internal style sheet?
    A: css
    B: script
    C: style
    C: style
  40. Which HTML attribute is used to define inline styles?
    A: class
    B: style
    C: styles
    D: font
    B: style
  41. Which is the correct CSS syntax?
    A: body {color:black;}
    B: {body:color=black;}
    C: body:color=black;
    D: {body;color:black;}
    A: body {color:black;}
  42. How do you insert a comment in a CSS file?
    A: /* this is a comment */
    B: ' this is a comment
    C: // this is a comment
    D: // this is a comment //
    A: /* this is a comment */
  43. Which property is used to change the background color?
    A: background-color
    B: color
    C: bgcolor
    A: background-color
  44. How do you add a background color for all h1 elements?
    A: h1 {background-color:#FFFFFF;}
    B: h1.all {background-color:#FFFFFF;}
    C: all.h1 {background-color:#FFFFFF;}
    A: h1 {background-color:#FFFFFF;}
  45. Which CSS property is used to change the text color of an element?
    A: text-color
    B: color
    C: fgcolor
    B: color
  46. Which CSS property controls the text size?
    A: font-size
    B: text-style
    C: font-style
    D: text-size
    A: font-size
  47. What is the correct CSS syntax for making all the p elements bold?
    A: p style="font-size:bold;"
    B: p style="text-size:bold;"
    C: p {text-size:bold;}
    D: p {font-weight:bold;}
    D: p {font-weight:bold;}
  48. How do you display hyperlinks without an underline?
    A: a{decoration:no-underline;}
    B: a{underline:none;}
    C: a{text-decoration:no-underline;}
    D: a{text-decoration:none;}
    D: a{text-decoration:none;}
  49. How do you make each word in a text start with a capital letter?
    A: text-style:capitalize
    B: transform:capitalize
    C: text-transform:capitalize
    D: You can't do that with CSS
    C: text-transform:capitalize
  50. Which property is used to change the font of an element?
    A: font-family
    B: font-weight
    C: font-style
    C: font-style
  51. How do you make the text bold?
    A: style:bold;
    B: font-weight:bold;
    C: font:bold;
    B: font-weight:bold;
  52. 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 = 1 pixel?

    A: border-width:10px 5px 20px 1px;
    B: border-width:5px 20px 10px 1px;
    C: border-width:10px 20px 5px 1px;
    D: border-width:10px 1px 5px 20px;
    D: border-width:10px 1px 5px 20px;
  53. Which property is used to change the left margin of an element?
    A: padding-left
    B: margin-left
    C: indent
    B: margin-left
  54. When using the padding property; are you allowed to use negative values?
    A: Yes
    B: No
    B: No
  55. How do you make a list that lists its items with squares?
    A: list-type:square;
    B: list:square;
    C: list-style-type: square;
    C: list-style-type: square;
  56. How do you select an element with id "demo"?
    A: #demo
    B: *demo
    C: .demo
    D: demo
    A: #demo
  57. How do you select elements with class name "test"?
    A: .test
    B: test
    C: #test
    D: *test
    A: .test
  58. How do you select all p elements inside a div element?
    A: div.p
    B: div p
    C: div + p
    B: div p
  59. How do you group selectors?
    A: Separate each selector with a comma
    B: Separate each selector with a plus sign
    C: Separate each selector with a space
    A: Separate each selector with a comma
  60. What is the default value of the position property?
    A: static
    B: absolute
    C: relative
    D: fixed
    A: static
  61. What properties define the width and height of a table?
    A: Width, text-align
    B: Width, height
    C: Height, border
    B: Width, height
  62. The CSS outline properties specify the style, color and width of an outline.
    A: True
    B: False
    A: True
  63. An inline element starts on a new line.
    A: True
    B: False
    B: False
  64. In CSS, how many generic font families with a similar look are there?
    A: 2
    B: 4
    C: 5
    D: 3
    D: 3
  65. External stylesheets are stored where?
    A: CSS files
    B: HTML files
    C: Excel files
    D: Word files
    A: CSS files
  66. Saturation is how much light you want to give the color.
    A: True
    B: False
    B: False
  67. In what order will style be used when there is more than one style specified for an HTML element?
    A: None of the answers
    B: Browser default, External and internal style sheets (in the head section), Inline style (inside an HTML element)
    C: External and internal style sheets (in the head section), Browser default, Inline Style (inside an HTML element)
    D: Inline style (inside an HTML element), External and internal style sheets (in the head section), Browser default
    D: Inline style (inside an HTML element), External and internal style sheets (in the head section), Browser default
  68. The CSS box model consists of:
    A: Borders, padding and the actual content
    B: Margins, padding, and the actual content
    C: Margins, borders, padding, and the actual content
    C: Margins, borders, padding, and the actual content
  69. You can use CSS to design a table that will display a horizontal scroll bar if the screen is too small to display the full content.
    A: True
    B: False
    A: True
  70. What is the correct JavaScript syntax to change the content of the HTML element below?
    p id="demo" This is a demonstration. /p

    A: #demo.innerHTML = "Hello World!";
    B: document.getElement("p").innerHTML = "Hello World!";
    C: document.getElementByld("demo").innerHTML = "Hello World!";
    D: document.getElementByName("p").innerHTML = "Hello World!";
    C: document.getElementByld("demo").innerHTML = "Hello World!";
  71. Where is the correct place to insert a JavaScript?
    A: The body section
    B: The head section
    C: Both the head section and the body section are correct
    C: Both the head section and the body section are correct
  72. What is the correct syntax for referring to an external script called "xxx.js"?
    A: script src="xxx.js"
    B: script name="xxx.js"
    C: script href="xxx.js"
    A: script src="xxx.js"
  73. The external JavaScript file must contain the script tag.
    A: True
    B: False
    B: False
  74. How do you create a function in JavaScript?
    A: function:myFunction()
    B: function = myFunction()
    C: function myFunction()
    C: function myFunction()
  75. How do you call a function named "myFunction"?
    A: myFunction()
    B: call function myFunction()
    C: call myFunction()
    A: myFunction()
  76. How to write an IF statement in JavaScript?
    A: if i = 5
    B: if (i == 5)
    C: if i == 5 then
    D: if i= 5 then
    B: if (i == 5)
  77. How to write an IF statement for executing some code if "i" is NOT equal to 5?
    A: if (i != 5)
    B: if i=! 5 then
    C: if i <> 5 then
    D: if (i <> 5)
    A: if (i != 5)
  78. How does a WHILE loop start?
    A: while (i <= 10)
    B: while (i <= 10; i+ +)
    C: while i = 1 to 10
    A: while (i <= 10)
  79. How does a FOR loop start?
    A: for (i = 0; i <= 5)
    B: for (i <= 5; i+ +)
    C: for i = 1 to 5
    D: for (i = 0; i <= 5; i+ +)
    D: for (i = 0; i <= 5; i+ +)
  80. How can you add a comment in a JavaScript?
    A: !This is a comment-->
    B: 'This is a comment
    C: //This is a comment
    C: //This is a comment
  81. What is the correct way to write a JavaScript array?
    A: var colors = (1:"red", 2:"green", 3:"blue")
    B: var colors = "red", "green", "blue"
    C: var colors = 1 = ("red"), 2 = ("green", 3 = ("blue")
    D: var colors = ["red", "green", "blue"]
    D: var colors = ["red", "green", "blue"]
  82. How do you round the number 7.25, to the nearest integer?
    A: rnd(7.25)
    B: Math.rnd(7.25)
    C: round(7.25)
    D: Math.round(7.25)
    D: Math.round(7.25)
  83. What is the correct JavaScript syntax for opening a new window called "w2" ?
    A: w2 = window.new("http://www.w3schools.com");
    B: w2 = window.open("http://www.w3schools.com");
    B: w2 = window.open("http://www.w3schools.com");
  84. JavaScript is the same as Java.
    A: False
    B: True
    A: False
  85. How can you detect the client's browser name?
    A: browser.name
    B: client.navName
    C: navigator.appName
    C: navigator.appName
  86. How do you declare a JavaScript variable?
    A: var carName;
    B: variable carName;
    C: v carName;
    A: var carName;
  87. Which operator is used to assign a value to a variable?
    A: *
    B: -
    C: x
    D: =
    D: =
  88. What will the following code return: Boolean(10 > 9)
    A: true
    B: false
    C: NaN
    A: true
  89. What does SQL stand for?
    A: Structured Query Language
    B: Strong Question Language
    C: Structured Question Language
    A: Structured Query Language
  90. Which SQL statement is used to extract data from a database?
    A: SELECT
    B: OPEN
    C: EXTRACT
    D: GET
    A: SELECT
  91. Which SQL statement is used to update data in a database?
    A: MODIFY
    B: SAVE
    C: UPDATE
    D: SAVE AS
    C: UPDATE
  92. Which SQL statement is used to delete data from a database?
    A: DELETE
    B: REMOVE
    C: COLLAPSE
    A: DELETE
  93. With SQL, how do you select a column name "FirstName" from a table named "Persons"?
    A: SELECT Persons.FirstName
    B: SELECT FirstName FROM Persons
    C: EXTRACT FirstName FROM Persons
    B: SELECT FirstName FROM Persons
  94. With SQL, how do you select all the columns from a table named "Persons"?
    A: SELECT *.Persons
    B: SELECT Persons
    C: SELECT * FROM Persons
    D: SELECT [all] FROM Persons
    C: SELECT * FROM Persons
  95. With SQL, how do you select all the records from a table named "Persons" where the value of the column "FirstName" starts with an "a"?
    A: SELECT * FROM Persons WHERE FirstName='Peter'
    B: SELECT [all] FROM Persons WHERE FirstName LIKE 'Peter'
    C: SELECT * FROM Persons WHERE FirstName<>'Peter'
    D: SELECT [all] FROM Persons WHERE FirstName='Peter'
    A: SELECT * FROM Persons WHERE FirstName='Peter'
  96. With SQL, how do you select all the records from a table named "Persons" where the value of the column "FirstName" starts with an "a"?
    A: SELECT * FROM Persons WHERE FirstName LIKE 'a%'
    B: SELECT * FROM Persons WHERE FirstName='a'
    C: SELECT * FROM Persons WHERE FirstName LIKE '%a'
    D: SELECT * FROM Persons WHERE FirstName='%a%'
    A: SELECT * FROM Persons WHERE FirstName LIKE 'a%'
  97. Which SQL statement is used to return only different values?
    A: SELECT UNIQUE
    B: SELECT DISTINCT
    C: SELECT DIFFERENT
    B: SELECT DISTINCT
  98. Which SQL keyword is used to sort the result-set?
    A: ORDER BY
    B: SORT BY
    C: ORDER
    D: SORT
    A: ORDER BY
  99. With SQL, how can you return all the records from a table name "Persons" sorted descending by "FirstName"?
    A: SELECT * FROM Persons ORDER BY FirstName DESC
    B: SELECT * FROM Persons ORDER FirstName DESC
    C: SELECT * FROM Persons SORT 'FirstName' DESC
    D: SELECT * FROM Persons SORT BY 'FirstName' DESC
    A: SELECT * FROM Persons ORDER BY FirstName DESC
  100. With SQL, how can you insert a new record into the "Persons" table?
    A: INSERT INTO Persons VALUES ('Jimmy', 'Jackson')
    B: INSERT ('Jimmy', 'Jackson') INTO Persons
    C: INSERT VALUES ('Jimmy', 'Jackson') INTO Persons
    A: INSERT INTO Persons VALUES ('Jimmy', 'Jackson')
  101. With SQL, how can you insert "Olsen" as the "LastName" in the "Persons" table?
    A: INSERT INTO Persons (LastName) VALUES ('Oslen')
    B: INSERT ('Olsen') INTO Persons (LastName)
    C: INSERT INTO Persons ('Olsen') INTO LastName
    A: INSERT INTO Persons (LastName) VALUES ('Olsen')
  102. How can you change "Hansen" into "Nilsen" in the "LastName" column in the Persons table?
    A: MODIFY Persons SET LastName='Nilsen' WHERE LastName='Hansen'
    B: MODIFY Persons SET LastName='Hansen' INTO LastName='Nilsen
    C: UPDATE Persons SET LastName='Hansen' INTO LastName='Nilsen'
    D: UPDATE Persons SET LastName='Nilsen' WHERE LastName='Hansen'
    D: UPDATE Persons SET LastName='Nilsen' WHERE LastName='Hansen'
  103. With SQL, how can you delete the records where the "FirstName" is "Peter" in the Persons Table?
    A: DELETE FROM Persons WHERE FirstName = 'Peter'
    B: DELETE FirstName='Peter'FROM Persons
    C: DELETE ROW FirstName='Peter' FROM Persons
    A: DELETE FROM Persons WHERE FirstName = 'Peter'
  104. With SQL, how can you return the number of records in the "Persons" table?
    A: SELECT COUNT(*) FROM Persons
    B: SELECT LEN(*) FROM Persons
    C: SELECT COLUMNS(*) FROM Persons
    D: SELECT NO(*) FROM Persons
    A: SELECT COUNT(*) FROM Persons
  105. What is the most common type of join?
    A: INNER JOIN
    B: INSIDE JOIN
    C: JOINED
    D: JOINED TABLE
    A: INNER JOIN
  106. Which operator is used to select values within a range?
    A: RANGE
    B: BETWEEN
    C: WITHIN
    B: BETWEEN
  107. The NOT NULL constraint enforces a column to not accept empty values.
    A: True
    B: False
    A: True
  108. Which operator is used to search for a specified pattern in a column?
    A: LIKE
    B: GET
    C: FROM
    A: LIKE
  109. Which SQL statement is used to create a table in a database?
    A: CREATE TABLE
    B: CREATE DB
    C: CREATE DATABASE TAB
    D: CREATE DATABASE TABLE
    A: CREATE TABLE
  110. C# is a ____ programming language which lets us write code that runs atop Microsoft's .NET framework.
    A: Static
    B: None of the answers
    C: Simple
    D: Dynamic
    A: Static
  111. C# is _____.
    A: None of the answers
    B: Dynamic programming
    C: The same as Java
    D: Object oriented
    C: The same as Java
  112. You must define types of ____ before using them.
    A: Variables
    B: None of the answers
    C: Numbers
    D: Code
    A: Variables
  113. Arrays are defined using _____.
    A: []
    B: {}
    C: [}
    D: ()
    A: []
  114. Arrays are initialized using a list defined with ____.
    A: (]
    B: {}
    C: []
    D: [}
    B: {}
  115. A list is an object which holds ____ in a specific order.
    A: Objects
    B: Numbers
    C: Variables
    D: None of the answers
    C: Variables
  116. The difference between a list and an array is that lists are ___ sized, while arrays have a ____ size.
    A: Dynamic, fixed
    B: Fixed, dynamic
    C: Small, large
    D: Large, small
    A: Dynamic, fixed
  117. You can use ___ to remove an item from a list.
    A: Delete
    B: None of the answers
    C: Remove
    D: Unlist
    C: Remove
  118. If you concatenate between strings, you are ____.
    A: None of the answers
    B: Adding the two strings together
    C: Subtracting one string from the other
    D: Separating the strings
    B: Adding the two strings together
  119. The following are types of ____: While, For, If
    A: None of the answers
    B: Methods
    C: Strings
    D: Loops
    C: Methods
  120. Which of the following are portions of a larger program that performs specific tasks.
    A: None of the answers
    B: Strings
    C: Methods
    D: Classes
    C: Methods
  121. Methods cannot be reused in other places in your code
    A: True
    B: False
    B: False
  122. Some methods do not return any value while other do return a value
    A: True
    B: False
    A: True
  123. Classes are defined with:
    A: ()
    B: []
    C: {}
    D: **
    C: {}
  124. Once you create an instance of a class, you can then assign ____.
    A: Strings
    B: Methods
    C: None of the answers
    D: Properties
    D: Properties
  125. What keyword is used to create an instance of a class?
    A: Define
    B: Create
    C: None of the answers
    D: New
    D: New
  126. Which type of loop allows you to continuously repeat a section of code while a condition is satisfied?
    A: While
    B: None of the answers
    C: For
    D: If
    A: While
  127. Which type of loop allows you to repeat sections of code a fixed number of times?
    A: None of the answers
    B: While
    C: For
    D: If
    C: For
  128. To concatenate between strings, use the ____ operator.
    A: None of the answers
    B: Minus
    C: Plus
    D: Equals
    C: Plus
  129. Is JavaScript case-sensitive?
    A: Yes
    B: No
    A: Yes
  130. CSS Selectors are used to "find" HTML elements cased on their:
    A: All of the answers
    B: Attribute
    C: Class
    D: Id
    E: Element name
    A: All of the answers
Author
hunter82
ID
349716
Card Set
Final Exam Web Design
Description
Flashcards to study for the Final Exam for Web Design.
Updated