NEW
Font size
WorksheetsHTML, CSS, Terminal & JavaScript
Total questions: 20
Worksheet time: 7mins
What is the correct syntax for a function in JavaScript?
def myFunction(){}
function myFunction(){}
function(){}
create function myFunction(){}
How do you apply flexbox to an element?
display: flex;
flex: 1;
align-items: center;
justify-content: space-between;
What is the default display property of the
inline
block
flex
grid
What is the purpose of HTML?
To style web content
To structure web content
To add interactivity to web pages
To create server-side applications
How can you make a font bold in CSS?
font-weight: bold;
font-style: bold;
text-weight: bold;
font-bold: true;
What is the command to rename files in your terminal?
How do you specify a favicon in an HTML document?
What is the correct way to add a comment in HTML?
<!-- This is a comment -->
<comment> This is a comment </comment>
// This is a comment
# This is a comment
What will console.log(2 + "2") output?
22
4
2
undefined
Which of the following represents the strict inequality operator?
!
==
!==
==!
How do you apply a class in CSS?
#classname {}
.classname {}
classname {}
@classname {}
How do you call a function named "myFunction" ?
myFunction()
call myFunction;
execute myFunction;
invoke myFunction()
Which CSS property is used to change the text color?
font-color
text-color
color
background-color
What will typeof([]) return in JavaScript?
string
array
object
function
Which of the following is the correct syntax for string interpolation in JavaScript?
"Hello, ${name}"
'Hello, ${name}'
`Hello, ${name}`
'Hello, &{name}'
What tag is used to create an unordered list?
newString ="" is pointing to a falsey value
True
False
Undefined
Null
How do you apply a CSS class to a HTML element?
class='classname'
style='classname'
id='classname'
css-class='classname'
Which one of the following is not a shell?
Bash
Zsh
PowerShell
None of the above
How do you add a single line comment in JavaScript?
# comment
// comment
/* comment */
