WorksheetsMilestone-4 Practice Set
Total questions: 119
Worksheet time: 1hrs 21mins
It is a software program that allows a user to locate, access, and display web pages
Navigator
Web browser
www
Which of the tag is used to create a numbered list?
<L> </L>
<LI> </LI>
<li> </lo>
<ol> </ol>
Web pages starts with which of the following tag?
<form>
<HTML>
<body>
<Title>
<p> is the opening tag for a _____________
page
paragraph
preorder
period
To create HTML page, you need
A. Web browser
B. Text editor
C. Both A & B
D. None of the above
What is the correct HTML for making a checkbox?
<checkbox>
<input type="check" />
<input type="checkbox" />
<check>
HTML tag for inserting an image
<img src="image.gif" alt="MyImage" />
<img href="image.gif" alt="MyImage" />
<image src="image.gif" alt="MyImage" />
<img alt="MyImage">image.gif</img>
How many heading tags are there in HTML5?
2
5
7
6
Which of the following tags is used to make a portion of text italic in HTML?
<italic>
<style="i">
<i>
<style="italic">
What is the correct HTML for creating a hyperlink?
<a>http://www.mitujjain.ac.in</a>
<a url="http://www.mitujjain.ac.in">MITUJJAIN</a>
<a name="http://www.mitujjain.ac.in">MITUJJAIN</a>
<a href="http://www.mitujjain.ac.in">MITUJJAIN</a>
The _______ tag is used to create an HTML form for user input.
<fieldset>
<input>
<form>
<label>
HTML stands for...
Hyper Time Multiple Language
Hyper Text Mark-up Language
Hippo T-Rex Mascot Lemur
Hipper Text Make Language
You need a closing tag for an image without text
True
False
Who created HTML ?
Bill Gates
Barack Obama
Tim-Berner's Lee
Robert Cailliau
Which application can be used to view an HTML document
Google Chrome
MIcrosoft Word
Notepad
Scratch
<CENTRE> tag displays the text or image in the ____ of the webpage
Center
Middle
It does not have any effect
When working with color codes RGB stands for...
Green Red Purple
Red Great Blue
Red Green Blue
Blue Green Raspberry
How can you make a bulleted list with numbers?
<dl>
<ol>
<list>
<ul>
To run HTML code we need to install software seperatly
True
False
Change the border size of the body or image
border-style
border-width
border-color
width
What css rule creates a flexbox container?
flex: box
display: flexbox
flex: container
display: flex
What are the two options for flex-direction?
row
vertical
column
horizontal
Which css value forces flex items onto a new line once the width of the container has been filled?
newline
wrap
continue
float
Which flexbox properties aligns items on the same axis as the flex-direction?
justify-content
align-items
align-content
justify-items
The CSS overflow property controls what happens to content that is too big to fit into an area.
True
False
Which of the following values does not belong to the overflow property?
visible
hidden
scroll
invisible
p {color: red;}
In CSS, colors can also be specified using RGB values, HEX values, HSL values, RGBA values, and HSLA values.
True
False
1.What is JavaScript?
5. What are modal windows?
Which 1 of the following symbols is used for JavaScript comments?
//
\
^
?
Which of these will increase the value of the variable X?
increment (x)
x++;
x=x;
x+1;
You need to evaluate the following code segment.
Line 02: undefined
Line 04: string
Line 06: object
Line 08: number
Line 10:object
Line 02: string
Line 04: string
Line 06: object
Line 08: object
Line 10:object
Line 02: undefined
Line 04: object
Line 06: object
Line 08: number
Line 10:number
Line 02: string
Line 04: string
Line 06: object
Line 08: number
Line 10:number
What will this code display?
Hello Emma
Hello user
Hello+user
nothing
What will this code display?
570
569
568
attendees
JavaScript : What is the alert display for text3 ?
John Doe
JohnDoe
"John" " " "Doe"
"JohnDoe"
JavaScript : What is the alert display for z?
Hello5
10
55
Hello15
Which message will the user see?
"Hello user"
No message
"Goodbye user"
"message + user"
A store has 20 apples in its inventory. How can you store this information in a JavaScript variable?
var numApples == 20;
20 = numApples;
var numApples = 20;
var num apples = 20;
Find the value of Z
var x = 5;
var y = x;
y++;
x--;
var z = x +y;
z++;
10
9
11
12
What is the output for this code?
let x = 5;
let y = 6;
let z = x + y;
console.log("The value of z is: " + z);
The value of z is z
The value of z is 11
The value of z is: 11
The value of z is: x + y
Which of the following is a correct way to declare a variable in JavaScript?
var myVar;
variable myVar;
v myVar;
declare myVar;
What is the correct syntax to print a message in the console in JavaScript?
console.log('Hello');
print('Hello');
echo('Hello');
write('Hello');
Which of the following is a JavaScript data type?
string
character
number
boolean
How do you create a function in JavaScript?
function myFunction()
def myFunction()
create myFunction()
function:myFunction()
Which symbol is used for single-line comments in JavaScript?
//
#
**
What is the correct way to write an array in JavaScript?
var colors = ['red', 'green', 'blue'];
var colors = 'red', 'green', 'blue';
var colors = (1:'red', 2:'green', 3:'blue');
var colors = 1 = ('red'), 2 = ('green'), 3 = ('blue');
How do you call a function named 'myFunction' in JavaScript?
myFunction()
call myFunction()
call function myFunction()
execute myFunction()
Which event occurs when the user clicks on an HTML element in JavaScript?
onclick
onmouseover
onchange
onmouseclick
How do you add a comment in JavaScript?
// This is a comment
# This is a comment
* This is a comment *
What is the correct way to write a JavaScript object?
var person = {firstName:'John', lastName:'Doe'};
var person = (firstName:'John', lastName:'Doe');
var person = [firstName:'John', lastName:'Doe'];
var person = firstName='John', lastName='Doe';
Which operator is used to assign a value to a variable in JavaScript?
=
==
===
=>
What is the correct way to write a JavaScript string?
var str = 'Hello, World!';
var str = Hello, World!;
var str = "Hello, World!";
var str = (Hello, World!);
Bootstrap is mobile-first.
False
True
Which class provides a responsive fixed width container?
.container-fixed
.container
.container-fluid
None of above
Which class provides a full width container, spanning the entire width of the viewport?
.container-fluid
.container-fixed
.container
None of above
The Bootstrap grid system is based on how many columns?
12
3
9
6
Which class adds zebra-stripes to a table?
even and .odd
table-striped
table-zebra
table-bordered
Which class shapes an image to a circle?
img-circle
img-rounded
img-thumbnail
img-round
Which class is used to create a big box for calling extra attention?
.container
.bigbox
.jumbotron
None of above
Which button class is used to create a large button?
.btn-xl
.btn-l
.btn-lg
.btn-large
element.
Which class is used to create a button group?
.group-btn
.button-group
.btn-group
.group-button
How can you insert a search icon?
<span class="glyphicon-search"></span>
<span class="glyph glyph-search"></span>
<span class="glyphicon search"></span>
<span class="glyphicon glyphicon-search"></span>
Which class is used to create a badge?
.badge
.label
.tag
.flag
Which class is used to create a basic pagination?
.navigation
.page
.pages
.navigation
Which class indicates a dropdown menu?
.dropdown
.dropdown-list
.select
None of above
A standard navigation bar is created with:
<nav class="nav navbar">
<nav class="navigationbar navbar-default">
<nav class="navbar default-navbar">
<nav class="navbar navbar-default">
Which class is used to create a black navigation bar?
.navbar-black
.navbar-inverse
.navbar-dark
.navbar-default
Which plugin is used to cycle through elements, like a slideshow?
Orbit
Scrollspy
Slideshow
Carousel
Which plugin is used to create a modal window?
Modal
Dialog Box
Popup
Window
Which contextual class indicates a succesful or positive action?
.text-warning
.text-primary
.text-success
.text-info
Which contextual class indicates a dangerous or potentially negative action?
.text-danger
.text-info
.text-warning
.text-primary
The Bootstrap grid system works across multiple devices.
True
False
Which of the following values is the default for flex-direction?
column
row
row-reverse
column-reverse
What does flex-wrap: nowrap; do?
Forces items onto a new line if needed
Keeps all items on a single line, even if they overflow
Reverses the order of wrapped items
Stretches items along the cross axis
Which of the following properties can be combined into the flex-flow property?
flex-direction and justify-content
flex-direction and align-items
flex-direction and align-content
flex-direction and flex-wrap
If you set justify-content: space-between; on a flex container, what happens?
All items are centered in the container
Items are evenly spaced, with equal gaps on both sides
Items are spaced with equal gaps between them, but no extra space at the edges
Items are pushed to the right side of the container
The property align-items aligns items along which axis?
Main axis
Cross axis
Both axes
It depends on flex-wrap
What does flex-direction: column; do?
Aligns items horizontally from left to right
Aligns items vertically from top to bottom
Reverses the row order
Reverses the column order
Which of the following distributes items with equal space before, between, and after each item?
space-between
space-around
space-evenly
center
Which property controls how much a flex item can grow relative to the other items in the same container?
flex-basis
flex-grow
flex-shrink
align-self
The align-content property only works when...
There is more than one line of flex items
Items are all on one line
justify-content is set to center
align-items is set to stretch
Which of the following is the correct shorthand for flex-grow: 1; flex-shrink: 0; flex-basis: auto;?
flex: auto 1 0;
flex: 1 0 auto;
flex: 0 1 auto;
flex: 1 auto 0;
What will be the layout of the items in the container below? .container { display: flex; flex-direction: column-reverse; }
Items are arranged horizontally from left to right
Items are arranged vertically from top to bottom
Items are arranged vertically from bottom to top
Items are stacked with no direction
Given this code, how will the items align? .container { display: flex; justify-content: space-around; }
Items are packed at the start of the container
Items are evenly spaced, with space on both sides of each item
Items are evenly spaced, but no space on the edges
Items are pushed to the bottom
What happens with the code below when items exceed the container width? .container { display: flex; flex-wrap: wrap; }
Items shrink to fit on one line
Items overflow outside the container
Items wrap onto a new line
Items reverse their order
What does this shorthand mean? .item { flex: 2 1 200px; }
Item grows twice as fast as others, can shrink, and starts at 200px
Item grows at a fixed 200px and never shrinks
Item shrinks twice as much and has no base size
Item ignores container space
What is the effect of this code? .container { display: flex; align-items: center; height: 400px; }
Items are centered along the horizontal axis
Items are centered along the vertical axis
Items stretch to fill the height
Items align at the bottom
The property that defines the direction of the main axis in a flex container is (a) .
To allow items to move onto multiple lines when they don't fit, we use (a) .
The shorthand property that combines flex-direction and flex-wrap is (a) .
To align flex items along the cross axis (vertically by default), we use (a) .
The property that distributes extra space between items along the main axis is (a) .
In the shorthand flex: 1 0 auto;, the first value (1) represents (a) .
If you want a single item to override the container's alignment, you can use (a) .
The property that controls the order in which flex items appear is (a) .
When using justify-content: space-between;, the extra space is placed __________.
The default value of flex-direction is (a) .
In the CSS box model, the space between the content and the border is called (a) .
In Flexbox, the axis that runs perpendicular to the main axis is called the (a) .
In the CSS box model, the outermost layer that creates space between elements is the (a) .
If you want all flex items in a row to stretch to the same height, you use __________.
In the CSS box model, the property that sets the thickness of the line surrounding content and padding is (a) .
The property that defines the direction of the main axis in a flex container is (a) .
In the CSS box model, the space between the content and the border is called (a) .
In Flexbox, the axis that runs perpendicular to the main axis is called the (a) .
In the CSS box model, the outermost layer that creates space between elements is the (a) .
If you want all flex items in a row to stretch to the same height, you use __________.
In the CSS box model, the property that sets the thickness of the line surrounding content and padding is (a) .
