NEW
Font size
WorksheetsHTML, CSS, Terminal & JavaScript
Total questions: 40
Worksheet time: 13mins
What is the purpose of HTML?
To style web pages
To structure web content
To program web applications
To manage databases
Which CSS property is used to change the text color?
color
font-color
text-color
bgcolor
Which one of the following is not a shell?
Bash
Zsh
PowerShell
None of the above
What is the correct HTML element for inserting a line break?
<lb>
<break>
<br>
<line>
What HTML tag is used to define an internal style sheet?
<link>
<style>
<script>
<css>
We use git fork to clone a repository from Github
False
True
How do you call a function named "myFunction" ?
call myFunction()
call function myFunction()
myFunction()
console.log(myFunction)
Which HTML element is used to define the title of a document?
<header>
<title>
<h1>
<head>
What is the purpose of the 'fetch' API?
To send HTTP requests
To manipulate the DOM
To style elements
To create functions
What does CSS stand for?
Computer Style Sheets
Creative Style Sheets
Cascading Style Sheets
Colorful Style Sheets
What command is used to display the current directory path in your terminal?
path
curdir
presentdir
pwd
Which of the following is a self-closing tag in HTML?
<p>
<div>
<br>
<span>
Which HTML tag is used to display a checkbox?
<checkbox>
<input type="checkbox">
<check>
<input-checkbox>
What is the correct way to add a comment in HTML?
// This is a comment
/* This is a comment */
<!-- This is a comment -->
{ This is a comment }
The do...while loop runs at least once
True
False
How do you specify a favicon in an HTML document?
<icon>
<link rel="shortcut icon" href="favicon.ico">
<meta icon="favicon.ico">
<favicon>
What is the default display property of the
inline
block
inline-block
flex
How can you open a link in a new tab?
<a href="page.html" target="_blank">
<a href="page.html" target="newtab">
<a href="page.html" newtab>
<a href="page.html" open="new">
What is the command to rename files in your terminal?
<rm>
<mv>
<cp>
<cd>
What tag is used to create an unordered list?
<ul>
<ol>
<li>
<list>
How do you apply a class in CSS?
#classname {}
.classname {}
classname {}
@classname {}
How do you apply a CSS class to a HTML element?
css="classname"
style="classname"
class="classname"
id="classname"
What is the correct way to apply an external CSS file?
<link rel="stylesheet" href="style.css">
<style src="style.css">
<css href="style.css">
<stylesheet>style.css</stylesheet>
How can you make a font bold in CSS?
font-bold: true;
text-weight: bold;
font-weight: bold;
bold: yes;
How do you write an if statement in JavaScript?
if{condition}
if(condition){}
if[condition]{}
if condition {}
What is the default position property of an HTML element?
absolute
relative
static
fixed
How do you apply flexbox to an element?
display: flex;
position: flex;
align-flex: true;
grid: flex;
How do you add a single line comment in JavaScript?
<!--comment-->
/*comment*/
// comment
COMMENT
How do you set a transition effect in CSS?
animate: ease-in-out;
transition: all 0.3s ease-in-out;
effect: transition;
move: smooth;
newString ="" is pointing to a falsey value
True
False
How do you declare a variable in JavaScript?
variable x = 10;
let x = 10;
var x: 10;
x = var 10;
Which of the following is Not a JavaScript data type?
Number
Array
Boolean
Object
What will typeof([]) return in JavaScript?
object
array
list
undefined
What is an example of a variable lookup expression?
5
"Hello"
x
true
Which of the following represents the strict inequality operator?
!
==
==!
!==
What is the correct syntax for a function in JavaScript?
def myFunction(){}
function myFunction(){}
function(){}
create function myFunction(){}
What will console.log(2 + "2") output?
4
22
NaN
Error
Which function is used to convert a string to an integer?
stringToInt()
parseInt()
convertToInteger()
toInteger()
Which of the following is the correct syntax for string interpolation in JavaScript?
"Hello, ${name}"
'Hello, ${name}'
`Hello, ${name}`
'Hello, &{name}'
In JavaScript, 1 == "1"
True
False
