Webpardi - PowerPoint PPT Presentation

1 / 31
About This Presentation
Title:

Webpardi

Description:

What is the top-level object in HTML DOM? Answer. The top-level object class in HTML DOM is window. HTML-200 ... Write an HTML tag to create a command button ... – PowerPoint PPT presentation

Number of Views:17
Avg rating:3.0/5.0
Slides: 32
Provided by: Gue6
Category:
Tags: dom | webpardi

less

Transcript and Presenter's Notes

Title: Webpardi


1
Webpardi
HTML
GEN
CS
JS
OPS
100
100
100
100
100
200
200
200
200
200
300
300
300
300
300
2
HTML-100
  • What is the top-level object in HTML DOM?

3
Answer
  • The top-level object class in HTML DOM is window.

4
HTML-200
  • Why do you place JavaScript commands within HTML
    comment tags?

5
Answer
  • Because older Web browsers cannot interpret
    JavaScript commands and might interpret them as
    part of the HTML text.

6
HTML-300
  • Write an HTML tag to create a command button with
    the label Process Data that contains an event
    handler that calls a JavaScript function named
    ProcessData() when the user clicks the button.

7
Answer
  • ltinput typebutton namecmdbutton
    valueProcess Data onclickProcessData()gt

8
GEN-100
  • Web database developers use these scripts to
    create and read cookies as well as validate use
    inputs.

9
Answer
  • Client-side scripts

10
GEN-200
  • Name four decision control strucrures

11
Answer
  • If
  • If/else
  • If/else if
  • Switch statement

12
GEN-300
  • The plus sign operator () is a(n) _______
    operator and you can use it both to _______
    numbers and _________ strings.

13
Answer
  • Overloaded
  • Add
  • concatenate

14
CS-100
  • A(n) ______ defines the structures and properties
    of similar objects, and a(n) _______ is an object
    that belongs to a class.

15
Answer
  • Object class
  • instance

16
CS-200
  • A(n) ______ is an action that occurs as a result
    of a user action, and a(n) _______ performs an
    action on an object.

17
Answer
  • Event
  • method

18
CS-300
  • What is the difference between a language that is
    strongly typed and a language that is loosely
    typed?

19
Answer
  • A strongly typed programming language requires
    that a programmer always declares a variable as
    well as specify the type of data before assigning
    values or referencing such variable
  • A loosely typed language does not require this.

20
JS-100
  • Two ways to place comments in JavaScript.

21
Answer
  • // comments
  • / comments.
    /

22
JS-200
  • In JavaScript, you normally place the code to
    define functions in the ________ section of an
    HTML document.

23
Answer
  • head

24
JS-300
  • In a JavaScript function, the return command

25
Answer
  • Specifies the value that a function returns to
    the calling program
  • Signals the JavaScript interpreter to resume
    execution in the calling program

26
OPS-100
  • What is the result of the following JavaScript
    operation?
  • 3 5

27
Answer
  • 35

28
OPS-200
  • What is the result of the following JavaScript
    operation?
  • (3 4) 5

29
Answer
  • 75

30
OPS-300
  • What is the result of the following JavaScript
    operation?
  • 3 (4 5)

31
Answer
  • 345
Write a Comment
User Comments (0)
About PowerShow.com