Client/Server Programming Exam 1

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

What tag pair is used to create the largest heading? a. <h1>...</h1> b. <h9>...</h9> c. <h type="smallest">...</h> d. <h6>...</h6>

a. <h1>...</h1>

Use the _____ element to associate a webpage with an External Style Sheet. a. <link> b. <style>...</style> c. <target> d. <include>...</include>

a. <link>

Choose the tag pair that is used to link web page documents to an external resources such as a style sheet or a JavaScript file. a. <link> tag b. <hyperlink> tag c. <a> tag d <body> tag

a. <link> tag

In which OSI layer do you find FTP, HTTP, and other programs that end users interact with? a. Application b. Network c. Physical d. Data Link

a. Application

A numerical address that identifies computers and other devices connected to the internet a. IP Address b. TCP Address c. TCP/IP Address d. HTTP Address

a. IP Address

The protocol used by a computer to receive email is referred to as _________. a. POP b. FTP c. SMB d. SNMP

a. POP

What is the purpose of a Web browser? a. To request and display Web pages b. To edit Web pages c. To create Web pages d. To archive Web pages

a. To request and display Web pages

Any text within the opening and closing <noscript> ... </noscript> tags will be displayed only to users without the ability to load JavaScript. a. True b. False

a. True

Concatenation can be written in either of the following ways: var str = greet.concat("Morning"); var str = greet + "Morning"; a. True b. False

a. True

JavaScript is an implementation of a standardized scripting language called ECMAScript. a. True b. False

a. True

The principles of Graceful Degradation and Progressive Enhancement are implemented differently, but either strategy can successfully be used to accommodate users with older browsers. a. True b. False

a. True

Variable assignment can happen at declaration-time by appending the value to the declaration, or at run time with a simple right-to-left assignment. a. True b. False

a. True

The __________ Resource Locator (URL) represents the address of a resource that is available on the Internet. a. Uniform b. Unified c. Unique d. USER

a. Uniform

Choose the attribute used to provide accessibility by configuring a text alternative that is available to browsers and other user agents that do not support graphics. a. alt b. text c. src d. none of the above

a. alt

Use the ________ method to write text to a web page. a. document.write() b. document.code() c. document.text() d. document.new()

a. document.write()

________ is the function that does conditional matching and creates a new array of the same size a. map b. filter c. reduce d. match

a. map

The JavaScript method .toString() a. puts a number in displayable form b. returns the length of a string of characters c. displays the JavaScript on a webpage d. saves the answer to a file

a. puts a number in displayable form

A Promise constructor must take two parameters: a ________ function and a ________ function a. resolve(), reject() b. complete(), reject() c. resolve(), fail() d. return(), reject()

a. resolve(), reject()

How will the following CSS display on the page: table {border: 1px solid #000000;} a. the table will have a this black border b. the table and each table cell will have thin black borders c. the table calls will have solid black borders d. the table and table headers will have thin black borders

a. the table will have a thin black border

The use of addEventListener() a. prevents the use of an external file to handle events b. allows to assign multiple handlers to a single object's event c. couples HTML to the JavaScript d. all of the above

b. allows to assign multiple handlers to a single object's event

A JavaScript event is a. an alert displayed to the user b. an action that can be detected by JavaScript c. an error generated by incorrect code d. all options above are correct

b. an action that can be detected by JavaScript

The _______ property can set the background color of the document a. document.background b. document.body.style.backgroundColor c. document.color d. document.backgroundcolor

b. document.body.style.backgroundColor

The code to access the contents of an input box named email on a form is a. document.forms[0].email b. document.forms[0].email.value c. document.forms[0].email.contents d. document.forms[0].email.data

b. document.forms[0].email.value

Locates an organization or other entity on the Internet a. entity name b. domain name c. org name d. distinguished name

b. domain name

________ function call allows for asynchronous processing of results of a WebAPI call a. getHTTP b. fetch c. request d. http

b. fetch

DOM manipulation method ________ inserts a new text node at one of four positions relative to the current node a. insertAdjacentText b. insertAdjacentElement c. createTestNode d. createElement

b. insertAdjacentElement

The box model consists of a content area surrounded by: a. border b. padding, border, and margin c. border and margin d. spacing, border, and margin

b. padding, border, and margin

The Web _______ is continually connected to the Internet and receives requests for Web pages from browsers a. client b. server c. container d. listener

b. server

When you need to change the inner text of an element, it is generally preferable to use the ________ property a. innerHTML b. textContent c. content d. renderedText

b. textContent

A smaller version of a larger image that usually links to the larger image is called a: a. hyperlink b. thumbnail image c. small image d. none of the above

b. thumbnail image

Which tag is used to force the browser to display the next text or element on a new line? a. <new line/> b. <p> c. <br /> d. <line />

c. <br />

Choose the preferred tag pair to use when emphasizing text. a. <i>...</i> b. <strong>...</strong> c. <em>...</em> d. none of the above

c. <em>...</em>

What tag pair is used to create a new paragraph? a. <new paragraph>...</new paragraph> b. <paragraph>...</paragraph> c. <p>...</p> d. <para>...</para>

c. <p>...</p>

A protocol that allows files to transferred between computers on the Internet that is not intended for use with Web browsers a. HTTP b. HTTPS c. FTP d. SMTP

c. FTP

An interconnected network of computers that is globally accessible a. Extranet b. Intranet c. Internet d. Interweb

c. Internet

Which is NOT a correct statement about the getElementById() method? a. It is universally implemented b. It is used extensively c. It returns the element node based the passed id parameter or tag name d. All statements above are correct

c. It returns the element node based the passed id parameter or tag name

Multi-purpose Internet mail extensions a. IME b. MPIE c. MIME d. PIME

c. MIME

The purpose of this protocol is to ensure the integrity of the communication a. HTTP b. IP c. TCP d. SMTP

c. TCP

When a web page contains both a link to an external stylesheet and embedded styles, which of the following is true? a. The embedded styles will be applied first, and then the external styles will be applied. b. The external styles will override the embedded styles c. The external styles will be applied first, then embedded styles will be applied d. The styles will conflict and the default browser styles will be applied

c. The external styles will be applied first, then embedded styles will be applied

Which is NOT a true statement about JavaScript modules? a. An ES6 module is a file that contains JavaScript b. Literals defined within the module are scoped to that module c. You need to use the keyword import in the module to make literals available to other scripts d. You have to tell the browser that a JavaScript file is a module.

c. You need to use the keyword import in the module to make literals available to other scripts

await function call must occur within ________ a. any function b. a function prefaced with the await keyword c. a function prefaced with the async keyword d. a function prefaced with the fetch keyword

c. a function prefaced with the async keyword

When we say that JavaScript variables are a dynamically types we mean that: a. JavaScript functions run sequentially in the order that the script was types b. it doesn't matter where the JavaScript code is typed on the page. c. a variable type can be an integer, and then later a string, then later an object. d. a variable type cannot be changes after the variable has been initialized.

c. a variable type can be an integer, and then later a string, then later an object.

To apply the same style to more than one element on a web page, configure a CSS ________. a. group b. id c. class d. All of these can configure more than one element on a page

c. class

Which is NOT a common validation activity as defined by the textbook? a. email validation b. number validation c. content validation d. data validation

c. content validation

To ensure your DOM manipulation code is running after the page is loaded, you generally want to use this method a. window.load b. window.ContentLoaded c. document.DOMContentLoaded d. document.ContentLoaded

c. document.DOMContentLoaded

If you want to execute one set of statements when a condition evaluates to false and another set of statements when the condition evaluates to true, the best statement to use is a(n) ____. a. if....then statement b. case statement c. if....else statement d. if statement

c. if....else statement

In the DOM, each element within the HTML document is called a _____ a. attribute b. identifier c. node d. tensor

c. node

A TLD intended for nonprofit organizations. a. mil b. ngo c. org d. gov

c. org

In multi-tasking operating systems, asynchronous execution is often achieved via ________: a. processes b. domains c. threads d. daemons

c. threads

Which of the following is true about the alert() function? a. The alert() function makes the browser show a pop-up to the user b. The alert() function obscures the underlying webpage c. The user has to click OK before any other actions can be taken. d. All of these are true

d. All of these are true

Method document.write() creates JavaScript a. At the top of the existing HTML page b. At the bottom of the existing HTML page c. At a specific location the existing HTML page based on the method parameter d. At the top of the existing HTML page and also removes the current page contents

d. At the top of the existing HTML page and also removes the current page contents

The JavaScript function to place the date on the page is? a. Now() b. Math.Date() c. Math.Today() d. Date()

d. Date()

The set of markup symbols or codes placed in a file intended for display on a Web Browser a. JSON b. XSDL c. UML d. HTML

d. HTML

A protocol for exchanging files, such as text, graphic images, sound, video, and other multimedia files on the Web a. XHTML b. SNMP c. FTP d. HTTP

d. HTTP

Which of the following is NOT an advantage of client-side scripting? a. Processing can be offloaded from the server to client machines b. The browser can respond more rapidly to user events than a request to a remote server could c. Client-side scripting reduces the load on the server d. Idiosyncrasies between various browsers and operating systems make it easy to test for all potential client configurations

d. Idiosyncrasies between various browsers and operating systems make it easy to test for all potential client configurations

Which is NOT a category for a DOM manipulation method? a. Selection b. Event c. Family manipulation d. Update

d. Update

Select the items below that can be used as a CSS Selector. a. an HTML element b. a class name c. an id name d. all of the above

d. all of the above

HTML5 introduces the classList element, which allows you to a. add a CSS class on an element b. remove a CSS class on an element c. toggle a CSS class on an element d. all options above are correct

d. all options above are correct

If you want to style multiple web pages on a web site in the same way, it is best to use: a. inline styles b. embedded styles c. an internal stylesheet d. an external stylesheet

d. an external stylesheet

Which is NOT a valid type of a JavaScript class event? a. keyboard events b. form events c. frame events d. browser events

d. browser events

Web API calls return ________ a. HTML b. CSS c. JavaScript d. data

d. data

Individual units used to transport pieces of files and messages over the Internet a. bits b. frames c. protocol data units d. packets

d. packets

The ________ keyword is used to call the parent class a. base b. self c. parent d. super

d. super

Select the item below that lists elements used in an HTML table: a. table, head, tfoot b. table, tr, tt c. thead, body, tr d. table, tr, td

d. table, tr, td

combines the formatting strengths of HTML 4.0 and the data structure and extensibility strengths of XML a. DHTML b. XHTML c. XHTML-H d. XMML

b. XHTML

The syntax for CSS comments looks like: a. <!-- comments go here --> b. /* comments go here */ c. // comments go here // d. all of these will work is CSS

b. /* comments go here */

The callback function for reduce() has ________ required parameter(s) a. 1 b. 2 c. 3 d. 4

b. 2

Which of the following is the correct comparison operator for equals? a. = b. == c. != d. !==

b. ==

If A is true and B is false, which of the following results is returned for these the Boolean operators based on the truth tables? a. A&&B is true b. A || B is true c. A || B is false d. A!B is false

b. A || B is true

Which of the following is true about inline styles? a. Inline styles are encouraged since they increase maintainability b. An inline style only affects the element it is defined within and will override other styles for that element's property c. Inline styles will be overridden by the external stylesheet d. Inline styles are encourages since they decrease bandwidth

b. An inline style only affects the element it is defined within and will override other styles for that element's property

JavaScript is the client-side implementation of the JAVA programming language, both developed by Sun Java in collaboration with Oracle. a. True b. False

b. False

JavaScript relies on server-side processing to execute the code. a. True b. False

b. False

Like many programming languages, JavaScript variable declarations require a data type such as int, char or string. a. True b. False

b. False

There are objects that are included in the JavaScript language; but you cannot define your own kind of objects. a. True b. False

b. False

A protocol that routes a packet to its correct destination address on the Internet a. HTTP b. IP c. TCP d. SMTP

b. IP

When CSS is coded in the body of the web page as an attribute of an HTML tag it is called ________. a. Embedded b. Inline c. External d. Imported

b. Inline

Which of the following is true regarding JavaScript? a. JavaScript is a full-fledged compiled, object oriented language. b. JavaScript runs directly inside the browser without the need for the JVM c. JavaScript is popular for its ability to run on any platform with a JVM installed d. JavaScript is object oriented in that the objects in JavaScript are class-based

b. JavaScript runs directly inside the browser without the need for the JVM

A network that covers a small area, such as a group of buildings or campus area a. WAN b. LAN c. VPN d. NAN

b. LAN

______ Languages contain sets of directions that tell the browser software. a. Lookup b. Markup c. Tag d. Web

b. Markup

JavaScript was first introduced by __________. a. Microsoft b. Netscape c. Oracle d. Adobe

b. Netscape

Which is NOT a characteristic of JavaScript prototypes? a. Prototypes make JavaScript behave more like an object-oriented language b. Prototypes are less efficient compared to constructors c. Properties are defined once for all instances of an object created with the new keyword from a constructor function d. Prototype is initially an empty object

b. Prototypes are less efficient compared to constructors

Choose the true statement below. a. The content that displays in the browser is contained in the head section b. The content that displays in the browser is contained in the body section c. Information about the web page is contained in the body section d. All of the above

b. The content that displays in the browser is contained in the body section

Which is true about the JavaScript statement var x = 3? a. The variable x has been declared but not initialized b. The variable x has been declared and initialized c. The variable x has been initialized but not declared d. The variable x has not been declared nor initialized

b. The variable x has been declared and initialized

What is used by TCP to establish a session between two systems? a. Two-way handshake b. Three-way handshake c. Clear-text handshake d. Media access control (MAC)

b. Three-way handshake


Ensembles d'études connexes

Chapter 8: GDP: Measuring Total Production and Income

View Set

Planning Projects, Part 2 PROJECT TIME AND COST MANAGEMENT

View Set

Ch 16: Nursing Management During the Postpartum Period

View Set

6.téma Severoamerické hospodárske centrum USA

View Set

Clinical medicine: Fungal, Parasitic, Mycobacterial, and Tick-Borne Illness

View Set

Unit 26. Vocab. D. Rewrite the words in brackets if incorrect. If correct, put OK.

View Set

International Business Law and its Environment CH1

View Set

ANTH370 Exam 3 (Quizzes 10-12) CSU

View Set