Computer Science PAP 1/2 Review

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

How do you create a function in JavaScript? A. Function myFunction() B. Function:myFunction() C. Function = myFunction()

A

HTML stands for A. Hyper taking multi language B. Hyper text markup language C. Hyper type markup language

B

Inside which HTML element do we put the JavaScript A. <JavaScript> B. <script> C. <js> D. <scripting>

B

What are the most important symbols in HTML code A. : B. <> C. - D. ;

B

What have you formed when you place Angle brackets around a specific word? A. An element B. A tag C. The prey D. A symbol

B

Which code would you use to get a pop-up on the users screen? A. Popup("HelloWorld"); B. Alert("HelloWorld"); C. AlertBox("HelloWorld"); D. Prompt("HelloWorld");

B

How do we call a function named "myFunction" A. Call function myFunction() B. Call myFunction() C. myFunction() D. 1233455-6789

C

How would you write an IF statement in JavaScript? A. If ==5 then B. If =5 then C. If(==5) D. If I =5

C

What is always the last tag on an HTML page A. <doctype> B. <head> C. <\html> D. </body>

C

Where is the correct place to insert a JavaScript A. Body B. Head C. Both body and head

C

Elements in HTML (choose all correct choices) A. Are only used one at a time- not need for content B. Are the building blocks of energy waves. C. Usually have content inside of them. D. Always use hyperlink anchors. E. Are groups of tags often nested within each other.

C D E

How do you declare a JavaScript variable? A. V carName; B. Str carName; C. Variable carName; D. Var carName;

D

What HTML element will make words appear in bold text? A. <em> B. <br> C. <bigger> D. <strong>

D

What is the correct way to were a JavaScript array? A. Var colors = 1 = ("red"), 2 = ("green"), 3 = ("blue") B. Var colors = "red","green","blue" C. Var colors = (1:"red",2:"green",3:"blue") D. Var colors = ["red","green","blue"]

D

T or F CSS and HTML are the same language

F

T or F HTML elements always have to have CSS in order to modify the way they render such things like font color

F

T or F In a typical web page, the information inside the head section (except the title section) is not rendered in the web browser

F

T or F JavaScript is the same as Java.

F

T or F "Hello World" renders in a browsers page tab when given the following code <html><head><title>Hello World</title></head><body>Saluton Mondo</body></html>

T

T or F All HTML files are text files that can be created and edited in a normal text editor

T

T or F HTML provides structure, while CSS provides style

T

T or F A web site is a grouping of inter related web pages (more than one page)

T


Ensembles d'études connexes

Industrial Internet of Things (IIoT)

View Set

WEEK 2&3: Historical Antecedents in which Social Considerations Changed

View Set

Compensation: Chapter 5- Job Based Structures (Test 2)

View Set

Med Surg 1 Final Review Fall2019

View Set