Programming Final Exam

Ace your homework & exams now with Quizwiz!

What extension should you use when saving a web page

.html

Based on the order of operations described in the textbook, what is 40 / 4 + 6 * 4 - 2 ?

32

What is the decimal value of the binary number 1011101

93

T/F. Charles Babbage created a working model of the Analytical Engine

False

T/F. Comments are mainly for the benefit of the user. By putting comments in the program, the user sees what the programmer is doing

False

T/F. Java and JavaScript are essentially the same programming language

False

T/F. Mouse events are fired either when the mouse is moved or when its buttons are clicked. However, mouse events cannot used to change the appearance of an element as the user rolls over it

False

T/F. The Turing machine was used to prove that all problems can be solved by a computer

False

T/F. The contents of a text box are assumed to be numbers in JavaScript

False

T/F. The terms multitasking and time sharing for an operating system can be used interchangeably.

False

T/F. Writing comments inside a script is a way to explain what the code is doing. The JavaScript interpreter carefully reads each comment to get detailed information

False

In the following example intTotal = 6-3*5;

Multiplication happens before subtraction

High-level programming languages are translated into machine language by means of an interpreter or a _____________

compiler

A JavaScript programmer can use _____________ to connect string variable values with other string variable values or with string literal values

concatenation

Java Script is used for

creating dynamic web pages.

Which of the following is correct

document.getElementById('output').innerHTML = result.toString();

HTML strings use _________ quotes and JavaScript strings use ___________ quotes

double, single

Which variable uses the correct variable naming convention?

fltTaxRate

Which of the following shows the best use of concatenation

greeting = "Hello + user":

The physical components of a computer and supporting devises is referred to as _________________

hardware

____________ elements have Height and Width attributes, which can be dynamically changed to change the size of the element.

img

What attribute is changed to put characters on a button

value

A JavaScript variable name can begin with any of the following except

numbers

The ___________ event handler specifies how an element will react when the user clicks the mouse on the element

onclick

A built-in function is a function that is

only called when declared as a string variable

Use the _____________ event to handle an action caused when the mouse goes off the element.

onmouseout

Use the___________________ event handler to cause a reaction when the user moves the mouse over an element

onmouseover

Use the _________________ function to convert a string to a number

parseFloat

______________________ refers to programs that execute on computers

software

A sequence of characters enclosed in quotes is called a/an

string or string literal

An error in the format of HTML or JavaScript is call a _____________ error

syntax

A disadvantage of using an alert is

that it is hard to write.

_______________ refers to the understanding of the capabilities and limitations of computers

theory

Because __________________ were much cheaper and more powerful than vacuum tubes, computers became less expensive and more powerful

transistors

If Name1 = "John" and Name2 = "Smith", what string results from the following operation?

Smith, John

Variables contain values. Those value types can include all but which one of the following?

String

Suppose MyNumber = 6. Is the following expression True or False (2 * MyNumber - 4 > 6 ) AND (MyNumber < 10)

True

T/F. A portion of memory on the computer is reserved for a variable once it has been declared.

True

T/F. A text box can be used for both input and output.

True

T/F. A text boxes is a dialog box that appears for the user to type in a response to a question

True

T/F. According to the Code of Ethics proposed by the Association for Computing Machinery, a computer professional is responsible for understanding the potential impact of his or her work and for striving to minimize the risks to the public

True

T/F. Ada Byron is generally acknowledged as the world's first programmer because of the extensive notes she made on Babbage's Analytical Engine

True

T/F. An example of application software is a web browser

True

T/F. IN JavaScript, variable names are case-sensitive

True

T/F. The first calculator used a crank to perform calculations

True

T/F. The history of computers can be broken into 6 generations

True

T/F. The latest trend in networking is WiFi

True

T/F. The scientific method is an example of an algorithm

True

T/F. The three categories of computer software are systems software, development software and applications software

True

T/F. The three themes of computer science are hardware, software and theory

True

T/F. Vacuum tubes made the switching of electrical signals faster than relays

True

T/F. You can think of a variable as the name for a certain storage location in the computer's memory.

True

The vacuum tube computer, _______________, was created to decode Nazi communications

COLOSSUS

What does CSS stand for

Cascading Style Sheets

An HTML element that causes an action in the page when clicked

button

In JavaScript, to make comments about the code in the program, you can use which of the following

A. None of the above B. ( ) C. all of the above D. { } Answer is A

Computers use _____ to store data for use in computations or for later reference

A. all of the above B. calculators C. numbers D. variables Answer is A

____________________science distinguishes computer science from the natural sciences

Artificial

A statement which checks to see if the value of the expression on the left side is the same as the value of the expression on the right side is an example of the use of the __________ operator

Comparison

What is the term for the string operator that takes two strings and joins them together?

Concatenation

__________________ were used in early telephone exchanges to control the connections between phones.

Electromagnetic relays

With the following, what does the "=" symbol do var MyVariable = 0.00;

It assigns the variable its first value

Which type of programming language consists of a sequence of bits that are all zeros and ones

Machine language

What is not actually code from a specific language, but sometimes strongly resembles actual code by using short phrases to describe the outline of a program?

Pseudocode

The correct syntax for an alert statement is

alert('message here');

What is used to add an apostrophe to a JavaScript string

back slash(\)

The ________________ attribute allows a text message to be dynamically inserted in a web page.

innerHTML

The first programmable machine was a(an)

loom


Related study sets

Pharmacology Musculoskeletal Medications Saunders

View Set

Cognitive development in late adulthood

View Set

4 - Life Insurance Premiums, Proceeds and Beneficiaries

View Set

Clinical Applications- Final Exam Questions

View Set

(PrepU) Chapter 19: Documenting and Reporting

View Set

International Trade and Finance Final

View Set

Domain 3: Information Security Program

View Set