


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
AVASCRIPT PROGRAMMING IN HTML5 WITH Exam Questions and Answers Latest Graded A+
Typology: Exams
1 / 4
This page cannot be seen from the preview
Don't miss anything!



How to print "Hello World" - ✔✔ A ________ is like a box that can hold a value - ✔✔variable Declaring a variable - ✔✔(does not enter a value into the variable) Initializing a variable - ✔✔Declares a variable and sets its initial value Assigning to a variable - ✔✔Changing a variable's value Types of Variables - ✔✔Number Boolean String Numeric Variables - Integers - ✔✔Whole numbers Numeric Variables - Floats - ✔✔Real numbers (can be decimals) Boolean Variables - ✔✔true/false String Variable - ✔✔Text (goes between quotes) Variable names start with... (3) - ✔✔a letter $ _ Variables Example - ✔✔
Functions used to receive user inputs - ✔✔ Use readLine to get/read ... from the user - ✔✔strings of text Use readInt to get/read ____ from the user - ✔✔integers Use readFLoat to get/read ____ from the user - ✔✔floats (real numbers) User input Example - ✔✔ Arithmetic Operators in JavaScript - ✔✔ When a modulus operator is used, it... - ✔✔divides the two numbers and takes the remainder The function ____________ gets the width of the canvas - ✔✔getWidth() The function ____________ gets the height of the canvas - ✔✔getHeight() How to make text located at a certain location - ✔✔ How to make a circle centered at a certain location - ✔✔ How to make a rectangle located at a certain location - ✔✔ When setting the position of rectangles, the position is set at the ________________ of the graphic - ✔✔top left corner
Why are computer programs an example of code? - ✔✔Computer programs are an example of code because programmers use the different programming languages as predefined symbols to communicate with a computer. Interactive - ✔✔allowing the flow of information both ways between a computer and its user (with inputs and outputs)