Web Dev Quiz
Full Name
1. What is Responsive Web Design?
Responsive web design uses HTML and CSS to help websites loads faster
Responsive web design uses HTML and CSS to automatically adjust websites to display properly on all devices
Responsive web design uses HTML and CSS to create interactive feedback between users and the website
Responsive web design is about how fast a design can be built and developed with HTML and CSS
2. What are margin and padding in CSS?
Margin is the space around an element border while padding is the space between the element’s border and its content
Padding is the space around an element border while margin is the space between the element’s border and its content
Padding and margin is the same space around the element’s border.
3. Which HTML element is NOT a block element?
div
span
p
ul
4. A variable in JavaScript declared with which of the following keyword?
new
int
string
var
5. Which of the following is NOT a JavaScript object?
var obj = { };
var obj = { name: “Steve” };
var obj = { name = “Steve” };
var obj = new Object();
6. Which of the following is NOT a JavaScript array?
var arr = [1, “two”, 3, 4]
var arr = new Array();
var[] arr = new Number()[5]
None of the above
7. What is null in JavaScript?
Null means empty string value.
Null means absence of a value.
Null means unknown value.
Null means zero value.
8. Which of the following is a valid JavaScript function?
var myFunc = function myFunc{ };
function myFunc( ) { };
myFunc function( ) { };
function myFunc = { };
9. A function can be assigned to a variable in JavaScript.
True
False
10. How do you write “Hello World” in an alert box?
alertBox(“Hello World”);
msgBox(“Hello World”);
msg(“Hello World”);
alert(“Hello World”);
11. Which is the correct IF statement in JavaScript?
if i = 5
if (i == 5)
if i = 5 then
if i == 5 then
12. What will 1 == “1” return?
True
False
0
1
13. Which is the correct WHILE loop in Javascript?
while i = 1 to 10
while (i <= 10)
while (i <= 10; i++)
None of the above
14. Which is the correct FOR loop in Javascript?
for (i = 0; i <= 5)
for (i <= 5; i++)
for i=5 to 5
for (i = 0; i <= 5; i++)
Submit Form