Which version of Visual Studio are using in this course?
A: 2012
B: 2015
C: 2017 Enterprise
D: 2017 Community
D: 2017 Community
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#
What displays the filed and folders in your web site?
A: Solution Explorer
B: Server Explorer
C: Toolbox
D: Properties Window
A: Solution Explorer
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
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
What displays database connections?
A: Properties Window
B: Server Explorer
C: Toolbox
D: Solution Explorer
A: Server Explorer
Where do you add a page to your website?
A: Server Explorer
B: Solution Explorer
C: Properties Window
D: Toolbox
A: Solution Explorer
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
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
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
In HTML, what does the
A: Content aside from the page content
In HTML, onblur and onfocus are:
A: Style attributes
B: HTML elements
C: Event attributes
C: Event attributes
Which HTML element defines navigation links?
A: navigation
B: nav
C: navigate
B: nav
Who is making the Web standards?
A: Google
B: Microsoft
C: The World Wide Web Consortium
D: Mozilla
C: The World Wide Web Consortium
Which HTML element is used to specify a footer for a document or section?
A: footer
B: section
C: bottom
A: footer
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"
What is the correct HTML element for inserting a line break?
A: lb
B: br
C: break
B: br
Which input type defines a slider control?
A: Range
B: Slider
C: Search
D: Controls
A: Range
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
Block elements are normally displayed without starting a new line.
A: True
B: False
B: False
How can you make a bulleted list?
A: ul
B: dl
C: ol
D: list
A: ul
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;
In HTML, you can embed SVG elements directly into an HTML page.
A: True
B: False
B: False
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"
Choose the correct HTML element to define important text.
A: b
B: important
C: i
D: strong
D: strong
Which character is used to indicate an end tag?
A: *
B: ^
C: <
D: /
D: /
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)"
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
Which HTML element is used to display a scalar measurement within a range?
A: gauge
B: range
C: meter
D: measure
C: meter
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
Which element defines the title of a document?
A: meta
B: title
C: head
B: title
Choose the correct HTML element for the largest heading:
A: h1
B: heading
C: h6
D: head
A: h1
How can you make a numbered list?
A: ol
B: list
C: ul
D: dl
A: ol
What is the correct HTML element for playing audio files?
A: audio
B: sound
C: mp3
A: audio
HTML comments start with
A: True
B: False
A: True
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
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"
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
Which HTML tag is used to define an internal style sheet?
A: css
B: script
C: style
C: style
Which HTML attribute is used to define inline styles?
A: class
B: style
C: styles
D: font
B: style
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;}
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 */
Which property is used to change the background color?
A: background-color
B: color
C: bgcolor
A: background-color
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;}
Which CSS property is used to change the text color of an element?
A: text-color
B: color
C: fgcolor
B: color
Which CSS property controls the text size?
A: font-size
B: text-style
C: font-style
D: text-size
A: font-size
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;}
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;}
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
Which property is used to change the font of an element?
A: font-family
B: font-weight
C: font-style
C: font-style
How do you make the text bold?
A: style:bold;
B: font-weight:bold;
C: font:bold;
B: font-weight:bold;
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;
Which property is used to change the left margin of an element?
A: padding-left
B: margin-left
C: indent
B: margin-left
When using the padding property; are you allowed to use negative values?
A: Yes
B: No
B: No
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;
How do you select an element with id "demo"?
A: #demo
B: *demo
C: .demo
D: demo
A: #demo
How do you select elements with class name "test"?
A: .test
B: test
C: #test
D: *test
A: .test
How do you select all p elements inside a div element?
A: div.p
B: div p
C: div + p
B: div p
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
What is the default value of the position property?
A: static
B: absolute
C: relative
D: fixed
A: static
What properties define the width and height of a table?
A: Width, text-align
B: Width, height
C: Height, border
B: Width, height
The CSS outline properties specify the style, color and width of an outline.
A: True
B: False
A: True
An inline element starts on a new line.
A: True
B: False
B: False
In CSS, how many generic font families with a similar look are there?
A: 2
B: 4
C: 5
D: 3
D: 3
External stylesheets are stored where?
A: CSS files
B: HTML files
C: Excel files
D: Word files
A: CSS files
Saturation is how much light you want to give the color.
A: True
B: False
B: False
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
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
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
What is the correct JavaScript syntax to change the content of the HTML element below?
p id="demo" This is a demonstration. /p
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
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"
The external JavaScript file must contain the script tag.
A: True
B: False
B: False
How do you create a function in JavaScript?
A: function:myFunction()
B: function = myFunction()
C: function myFunction()
C: function myFunction()
How do you call a function named "myFunction"?
A: myFunction()
B: call function myFunction()
C: call myFunction()
A: myFunction()
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)
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)
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)
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+ +)
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
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"]
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)
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");
JavaScript is the same as Java.
A: False
B: True
A: False
How can you detect the client's browser name?
A: browser.name
B: client.navName
C: navigator.appName
C: navigator.appName
How do you declare a JavaScript variable?
A: var carName;
B: variable carName;
C: v carName;
A: var carName;
Which operator is used to assign a value to a variable?
A: *
B: -
C: x
D: =
D: =
What will the following code return: Boolean(10 > 9)
A: true
B: false
C: NaN
A: true
What does SQL stand for?
A: Structured Query Language
B: Strong Question Language
C: Structured Question Language
A: Structured Query Language
Which SQL statement is used to extract data from a database?
A: SELECT
B: OPEN
C: EXTRACT
D: GET
A: SELECT
Which SQL statement is used to update data in a database?
A: MODIFY
B: SAVE
C: UPDATE
D: SAVE AS
C: UPDATE
Which SQL statement is used to delete data from a database?
A: DELETE
B: REMOVE
C: COLLAPSE
A: DELETE
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
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
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'
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%'
Which SQL statement is used to return only different values?
A: SELECT UNIQUE
B: SELECT DISTINCT
C: SELECT DIFFERENT
B: SELECT DISTINCT
Which SQL keyword is used to sort the result-set?
A: ORDER BY
B: SORT BY
C: ORDER
D: SORT
A: ORDER BY
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
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')
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')
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'
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'
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
What is the most common type of join?
A: INNER JOIN
B: INSIDE JOIN
C: JOINED
D: JOINED TABLE
A: INNER JOIN
Which operator is used to select values within a range?
A: RANGE
B: BETWEEN
C: WITHIN
B: BETWEEN
The NOT NULL constraint enforces a column to not accept empty values.
A: True
B: False
A: True
Which operator is used to search for a specified pattern in a column?
A: LIKE
B: GET
C: FROM
A: LIKE
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
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
C# is _____.
A: None of the answers
B: Dynamic programming
C: The same as Java
D: Object oriented
C: The same as Java
You must define types of ____ before using them.
A: Variables
B: None of the answers
C: Numbers
D: Code
A: Variables
Arrays are defined using _____.
A: []
B: {}
C: [}
D: ()
A: []
Arrays are initialized using a list defined with ____.
A: (]
B: {}
C: []
D: [}
B: {}
A list is an object which holds ____ in a specific order.
A: Objects
B: Numbers
C: Variables
D: None of the answers
C: Variables
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
You can use ___ to remove an item from a list.
A: Delete
B: None of the answers
C: Remove
D: Unlist
C: Remove
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
The following are types of ____: While, For, If
A: None of the answers
B: Methods
C: Strings
D: Loops
C: Methods
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
Methods cannot be reused in other places in your code
A: True
B: False
B: False
Some methods do not return any value while other do return a value
A: True
B: False
A: True
Classes are defined with:
A: ()
B: []
C: {}
D: **
C: {}
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
What keyword is used to create an instance of a class?
A: Define
B: Create
C: None of the answers
D: New
D: New
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
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
To concatenate between strings, use the ____ operator.
A: None of the answers
B: Minus
C: Plus
D: Equals
C: Plus
Is JavaScript case-sensitive?
A: Yes
B: No
A: Yes
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.