cs215 practice test2 spg 12

Download Cs215 Practice Test2 Spg 12

If you can't read please download the document

Upload: jimmy-leak

Post on 14-Nov-2015

42 views

Category:

Documents


7 download

DESCRIPTION

test

TRANSCRIPT

Test 2 CS215 Spg 12

True/FalseIndicate whether the statement is true or false.

____1.The table marked 1 in the figure above has a frame value of border.

____2.The table marked 5 in the figure above has a frame value of lhs.

____3.A password text box hides text entered by the user.

____4.To move to the next text box, press the Alt key while holding down the Shift key.

____5.The item marked 1 in the figure above is an example of embedded media.

____6.The tradeoff in increasing the sampling rate is that it decreases the size of the sound file.

____7.The frame element is used to describe how frames are organized and displayed within the browser window.

____8.The ampersand instructs the browser to allocate any unclaimed space in the frameset to the given row or column.

____9.You must insert the tag between the opening and closing tags.

____10.In HTML, browsers usually reject documents that violate HTML syntax.

____11.When a validator reports that the end tag for an element is missing, it always means that a two-sided tag is missing an end tag.

____12.Once you have a document that passes the validation test, you may want to make a note of this on your Web page.

____13.JavaScript code can be inserted directly into an HTML or XHTML file, or placed in a separate text file that is linked to the Web page.

____14.Function parameters must be placed within parentheses, following the function name, and the parameters must be separated by periods.

Multiple ChoiceIdentify the choice that best completes the statement or answers the question.

____15.In the tag, an alignment value of ____ places the caption above the table.a.abovec.topb.overd.central

____16.A ____ table contains only text, evenly spaced on the Web page in rows and columns.a.columnar textc.preformatted textb.row-basedd.graphical

____17.To create a cell that spans two rows in a table, you enter the tag as ____.a.2>c.

b.2>d.

____18.By default, cell text is placed ____.a.in the middle of the cell, aligned with the cells right edgeb.in the middle of the cell, aligned with the cells left edgec.at the bottom of the cell, aligned with the cells right edged.at the bottom of the cell, aligned with the cells left edge

Case-Based Critical Thinking Questions

Case 5-1Crystal is trying to build a table to display her inventory of items she sells in her online boutique. She wants to display the picture, name, quantity in stock, and price for each item.

____19.How many columns would Crystal's table need to have as a minimum?a.2c.4b.3d.5

Case-Based Critical Thinking Questions

Case 5-3Julio is in a band and has made a Web site to promote the band. Julio likes to maintain a page where he can list the information about each of the band members. For each member, he likes to display a brief list of biographical information on the left and then their picture on the right.

____20.Julio wants the display the name of the band at the top of the table. Which element should he use to do this?a.tbodyc.tdb.captiond.colgroup

____21.Information entered into a field is called the field ____.a.indexc.attributeb.ratingd.value

____22.The items marked ____ in the accompanying figure are input boxes.a.1c.4b.2d.7

____23.The item marked 5 in the accompanying figure is a ____ set.a.textc.checkb.fieldd.form

____24.If you do not include the type attribute in an tag, the Web browser assumes that you want to create a(n) ____.a.check boxc.option buttonb.input boxd.submit button

____25.____ buttons can be placed into a group so that selecting one deselects all of the others.a.Checkboxc.Commandb.Imaged.Radio

____26.To group option buttons so that selecting one deselects all of the others, you must make the ____ attribute the same.a.namec.idb.typed.value

____27.To make a check box selected by default, you add ____.a.selected="true"c.checked="checked"b.selected="selected"d.checked="true"

____28.In a text area, if wrap is set to ____, text wraps automatically to the next row when it extends beyond the width of the text box.a.softc.offb.hardd.either a or b

____29.Internet Explorer inserts the Flash Player as a(n) ____ control.a.Classc.AVIb.Quicktimed.ActiveX

Case-Based Critical Thinking Questions

Case 7-2Laser Cats is a techno band that has created a Web site to provide people with information about them as well as tour dates, band pictures, and concert clips.

____30.Each band member has a picture and a video. To set it up so that either the video or the picture displays, they could use a(n) ____ if they knew their audience uses Internet Explorer.a.conditional commentc.dynamic resourceb.optional sourced.flash source

____31.If you use a frame, you should also provide a ____ version.a.frame borderc.frame setb.nonframedd.scaled back

____32.In the figure above, which part is the logo frame?a.1c.3b.2d.none of the above

____33.In the figure above, which part is the content frame?a.1c.3b.2d.none of the above

____34.The general syntax for creating an HTML file with frames includes ____.a.the organization of the framesb.the way the frames are displayedc.the documents displayed within the framesd.all of the above

____35.Which of the following aspects of a frames appearance can you control?a.the appearance of scroll barsb.the size of the margin between the source document and the frame borderc.whether or not the user is allowed to resize the framesd.Any of the above

____36.In the tag, if scrolling is set to ____, the scroll bars will display.a.yesc.showb.ond.display

____37.To allow your Web site to be viewable using browsers that do not support frames, as well as by those that do, you can use the ____ tag to create a section of your HTML file containing code for browsers incapable of viewing frames.a.

c.

b.

d.

Case-Based Critical Thinking Questions

Case 8-2Marie's Violin shop has just decided to go global by creating a Web site. Charlene is intending to build the site using frames. She has a company logo in a graphics file, and then wants to have the content show below it on the left and the navigational links show below it on the right.

____38.Charlene was thinking about changing the content area to have two rows. How many framesets would she need to do this?a.3c.1b.2d.0

____39.Which attribute(s) are required for the img tag?a.altc.a and bb.srcd.none of the above

____40.In the figure above, the item numbered 2 indicates the ____.a.XML parserc.DTD idb.DTD declararationd.XML prolog

Case-Based Critical Thinking Questions

Case 9-1Franks custom carpentry has a Web site that is designed to appeal to all sorts of customers. Frank wants his site to be compatible even with users who might even still use dialup and older browsers.

____41.In Franks case, he should probably use which XHTML DTD to cover the most browsers?a.strictc.transitionalb.framesetd.none of the above

Case-Based Critical Thinking Questions

Case 9-2Under the Sea is a scuba shop that sells new wave scuba gear to hip urban teens and young adults. The Web developer, Mary, wants the pages to be designed for use on cell phones and other hand-held devices their young audiences carry.

____42.The Web developer wants to make the pages their best, so she should make the pages ____.a.well-formedc.both a and bb.validd.none of the above

____43.On her online order form, how should she build the attribute for the checkbox that will be selected by default when page is viewed?a.checked="checked"c.selected="selected"b.checked="ok"d.selected="ok"

____44.____ is essentially junk e-mail.a.Spamc.Server-sideb.Client-sided.An e-mail harvester

____45.____ is an interpreted language, meaning that the program code is executed directly without compiling.a.JavaScriptc.C++b.Javad.All of the above

____46.You use the ____ tag to distinguish JavaScript code from the text that you want displayed on a Web page.a.

c.

b.

d.

____47.Another method to write text to the Web page is the ____ method.a.document.writeln()c.document.insrtln()b.document.writeline()d.document.insrtline()

____48.In naming a variable, the first character must be either a letter or a(n) ____.a.underscorec.number signb.pound signd.ampersand

____49.When used with both numbers and text, the ____ symbol treats the numbers as text.a.++c.*b.+d.~

____50.When variables are not strictly tied to specific data types, programmers refer to the language as a ____ typed language.a.stronglyc.weaklyb.looselyd.strictly

____51.A reference to an external Javascript file is normally placed in the ____ section of an HTML document, according to good design principles.a.bodyc.titleb.headd.paragraphTest 2 CS215 Spg 12Answer Section

TRUE/FALSE

1.ANS:FPTS:1REF:HTML 296

2.ANS:TPTS:1REF:HTML 296

3.ANS:TPTS:1REF:HTML 353

4.ANS:FPTS:1REF:HTML 380

5.ANS:TPTS:1REF:HTML 413

6.ANS:FPTS:1REF:HTML 414

7.ANS:FPTS:1REF:HTML 483

8.ANS:FPTS:1REF:HTML 485

9.ANS:FPTS:1REF:HTML 487

10.ANS:FPTS:1REF:HTML 527

11.ANS:FPTS:1REF:HTML 544

12.ANS:TPTS:1REF:HTML 551

13.ANS:TPTS:1REF:HTML 568

14.ANS:FPTS:1REF:HTML 583

MULTIPLE CHOICE

15.ANS:CPTS:1REF:HTML 284

16.ANS:CPTS:1REF:HTML 291

17.ANS:CPTS:1REF:HTML 279

18.ANS:BPTS:1REF:HTML 297|HTML 298

19.ANS:CPTS:1REF:HTML 273TOP:Critical Thinking

20.ANS:BPTS:1REF:HTML 273|HTML 285TOP:Critical Thinking

21.ANS:DPTS:1REF:HTML 346

22.ANS:APTS:1REF:HTML 347

23.ANS:BPTS:1REF:HTML 351

24.ANS:BPTS:1REF:HTML 353

25.ANS:DPTS:1REF:HTML 366

26.ANS:APTS:1REF:HTML 366

27.ANS:CPTS:1REF:HTML 378

28.ANS:DPTS:1REF:HTML 381

29.ANS:DPTS:1REF:HTML 435

30.ANS:CPTS:1REF:HTML 446TOP:Critical Thinking

31.ANS:BPTS:1REF:HTML 481

32.ANS:APTS:1REF:HTML 483

33.ANS:CPTS:1REF:HTML 483

34.ANS:DPTS:1REF:HTML 483|HTML 484

35.ANS:DPTS:1REF:HTML 490

36.ANS:APTS:1REF:HTML 490

37.ANS:CPTS:1REF:HTML 502

38.ANS:APTS:1REF:HTML 488TOP:Critical Thinking

39.ANS:CPTS:1REF:HTML 537

40.ANS:CPTS:1REF:HTML 538

41.ANS:CPTS:1REF:HTML 533TOP:Critical Thinking

42.ANS:CPTS:1REF:HTML 531|HTML 532TOP:Critical Thinking

43.ANS:APTS:1REF:HTML 532TOP:Critical Thinking

44.ANS:APTS:1REF:HTML 564

45.ANS:APTS:1REF:HTML 568

46.ANS:CPTS:1REF:HTML 569

47.ANS:APTS:1REF:HTML 573

48.ANS:APTS:1REF:HTML 578

49.ANS:BPTS:1REF:HTML 581

50.ANS:CPTS:1REF:HTML 581

51.ANS:BPTS:1REF:HTML 590