McGraw-Hill OnlineMcGraw-Hill Higher EducationLearning Center
Student Center | Instructor Center | Information Center | Home
Sample Code
Multiple Choice Quiz
True or False
E-Lectures
Feedback
Help Center


Programming the Web Using XHTML and JavaScript
Larry Randles Lagerstrom

Introduction to Programming and JavaScript

Multiple Choice Quiz



1

JavaScript statements must be contained in which element?
A)<language>
B)<script>
C)<code>
D)<applet>
2

Which of these is an assembly language instruction?
A)1000111011011000
B)ADD AX, 14
C)X = X + Y
D)(SET! X Y)
3

Which of these is a high-level language?
A)COBOL
B)FORTRAN
C)C++
D)all of the above
4

Which of these programs translates a computer language into machine language?
A)compiler
B)interpreter
C)assembler
D)both A and B
5

Which is NOT one of the four basic control structures?
A)iteration
B)execute
C)sequence
D)conditional
6

Which is a notation for algorithms that uses half-programming-language and half-natural-language?
A)pseudocode
B)flowchart
C)Baukus-Naur form
D)state transition diagram
7

Which is Microsoft's version of JavaScript?
A)JavaScript 1.2
B)ECMAScript
C)VBScript
D)JScript
8

Which attribute of the <script> tag is used to load an external JavaScript file?
A)source
B)language
C)src
D)type
9

Which is part of JavaScript but NOT part of HTML?
A)onclick
B)alert()
C)both A and B
D)neither A nor B
10

XHTML requires which attribute to be included in the <input> tag?
A)type
B)onclick
C)name
D)none of the above




McGraw-Hill/Irwin