CPSC 130
A byte is collection of
8 bits
What is the correct HTML for creating a hyperlink
<a href="http://www.balance3e.com">Book Site</a>
What is the correct HTML for adding background color?
<body style="background-color:yellow;">
What is the correct HTML element for inserting a line break?
<br>
What is the correct HTML for creating a centered heading?
<h2 style="text-align:center">
GIF and JPEG images can be embedded in a Web page using an image tag
<img src="reed.gif" alt="Dave Reed">
What is the correct HTML for inserting an image?
<img src="sru.jpeg" alt="sru.edu">
What is the correct HTML for making a text input field?
<input type="text">
Which of these elements are all <table> elements?
<table><tr><td>
What is HTML stands for?
HyperText Markup Language
The three essential components of a computer that make up the von Neumann architecture
Input/Output devices, Memory and CPU
Which is an example of a function requiring no inputs.
Math.random
Which attribute for an HTML element specifies the action that the browser is to carry out when the mouse is subsequently moved off of the element.
ONMOUSEOUT
Which HTML attribute specifies an alternate text for an image, if the image cannot be displayed?
alt
To embed an apostrophe inside a JavaScript string, precede the apostrophe with a
backslash
You can access the contents of a text box using an expression of the form:
document.getElementById('BOX_ID').value
Within a JavaScript statement, an element can be accessed(and modified) using an expression of the form
document.getElementById('ELEMENT_ID')
A hard disk is classified as volatile memory, because it requires a constant power supply in order to retain its information.
false
An alert statement is a JavaScript statement with the following general form: alt('ALERT_MESSAGE');
false
As computer programs can be complex and difficult to write, they are known as "hardware."
false
In JavaScript, a variable name can be any sequence of letters, digits and underscores that starts with a number.
false
Only numbers can be assigned to JavaScript variables but not any mathematical expression.
false
The tags <h1></h1>, <h2></h2>, and <h3></h3> can be used to display section headings of increasing sizes.
false
When a message is broken into packets as transmitted over the Internet, it is guaranteed that all packets will take the same route from source to destination.
false
The most critical functionality of the computer is controlled by the component of the operating system known as its
kernel
The memory is a part of computer that stores
programs and data
The function math.floor returns the input
rounded down
By default, JavaScript statements always assume that the contents of a text box are intended to be a
string
HTML specifies formatting within a page using
tags
A JavaScript assignment statement is used to assign a new value to an attribute of an element. The general form of a JavaScript assignment is:
this.ATTRIBUTE_NAME=NEW_ATTRIBUTE_VALUE;
A directory is a collection of files that are organized together and labeled with a common name.
true
A router is special-purpose computer on the Internet that receives message packets, accesses routing information, and passes the packets on toward their destination.
true
A table is identified by <table></table>, with individual rows identified by <tr></tr> and entries within that row identified by <td></td>.
true
A web server is a computer that runs special software for storing and retrieving pages.
true
Cache and RAM together form a computer's main memory( or primary memory), holding any and all data that the CPU is actively using
true
Functions simplify the programmers's task by 1) minimizing the amount of detail that the programmer must keep track of and 2) minimizing the size and complexity of code.
true
In order for a button to change the attributes of another element, that element must first be assigned a unique identifier using the ID attribute
true
Operating system is a collection of programs that controls how the CPU, memory, and I/O devices work together to execute programs.
true
The contents of a text box (in JavaScript) can be converted to its corresponding numeric value by applying the predefined parseFloat function.
true
When an assignment statement is executed, the expression on the right-hand side is evaluated first, and then the resulting value is assigned to the variable on the left-hand side.
true