PAK TURK MAARIF INTERNATIONAL SCHOOLS AND COLLEGES
WORKSHEET
SLO/TOPIC/CHAP SLO CS 09-C-02/ HTML /JavaScript/CHAPTE-3
Name: Class:
Q1. Define JavaSript and also describe how JavaSript can be embedded in HTML?
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
Q2. Define events with examples:
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
Q3. Write down an output of the JavaScript code:
<!DOCTYPE html>
<html>
<body>
<h1>JavaScript Variables</h1>
<p>In this example, x, y, and z are undeclared.</p>
<p>They are automatically declared when first used.</p>
<p id="demo"></p>
<script>
x = 5;
y = 6;
z = x + y;
document.getElementById("demo").innerHTML ="The value of z is: "
+ z;
</script>
</body>
</html>
Q4.What type of operators JavaScript support? give an example.
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
Q5. Differentiate few important concepts of Conditional statements and iterative statements of JavaScript.
Conditional statements Iterative statements
PAK TURK MAARIF INTERNATIONAL SCHOOLS AND COLLEGES
Q6. Describe an array also use a JavaScript code to access ,declare and show an array elements:
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
Q7. How we can debug the code in visual studio?
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
Q8. What are breakpoints how multiple breakpoints use in debug mode?
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------------------------------------------------------