What will be the output of this code?
print("Hello World")
Hello World
Inside which HTML element do we put the JavaScript?
<Script>
What does HTML stand for?
HyperText Markup Language
What does CSS stand for?
Cascading Style Sheet
Boxes in a computer's memory that can be used to store and retrieve data.
Variable
Convert a string to an integer (Whole number)
int()
How do you call a function named "myFunction"?
myFunction()
What is this tag?
<ul></ul>
Unordered list
How do you add an image as your background in CSS?
background-image
Procedures to handle events such as "When the user clicks this button, do this..."
Event Handlers
What is missing from this code?
print(Hello World!)
quotation marks
How do you add a comment in JavaScript?
//This is a comment
What tag breaks a line of text at the point where the tag appears?
Specify which elements are to be influenced by the style rule
All languages have ___ or grammar composed of rules that specify why the feature of the language can be used
Syntax
def randomFunction():
name = input("Enter you name")
print(f"Hello my name is {name}")
Nothing because the function was not called
What does this code output?
function myFunction() {
alert("This is my function.");
}
myFunction()
An alert box that says This is my function
What is the default head structure?
<head>
<meta charset="utf-8" />
<title>My test page</title>
</head>
What clears an area around the content which is inside the border of an element?
padding
name the 3 most popular programming languages
C programming, Java programming, Python Programming
What will print out if you enter Tuesday?
dayoftheweek = input("What day is today? ")
if dayoftheweek == "Monday":
print("Rainy days and Mondays always get me!")
elif dayoftheweek == "Friday":
print("Lessgoooo!!!")
elif dayoftheweek == "Sunday":
print("noooo the weekend where did it go")
else:
print("What day is it today?")
What day is it today?
What does this do?
document.getElementById("demo").innerHTML = "Hello World!";
Finds the HTML tag that has the id demo and inserts Hello World! into it.
What is the default structure for HTML?
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8" />
<title>My test page</title>
</head>
<body>
<p>This is my page</p>
</body>
</html>
How do you restrict paragraphs from automatically applying margins/padding?
p {
padding:0;
margin:0;
}
What is an Algorithm?
a step-by-step procedure to resolve any problem