0% found this document useful (0 votes)
79 views7 pages

Shubham WD Final Assessment Test

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
79 views7 pages

Shubham WD Final Assessment Test

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

3/10/24, 11:40 AM WD Final Assessment Test

 D

 M
Total Questions - 50 Score - (39 / 50) 78%
 A

1) How to create a hyperlink in HTML 1M


A
 A) '<pre><a href = "www.itvedant.com"> itvedant </a></pre>'
B) '<pre><a url = "www.itvedant.com" itvedant</a></pre>'
I C) '<pre><a link = "www.itvedant.com"> Itvedant</a></pre>'
 Q D) '<pre><a src = "www.itvedant.com"> Itvedant</a></pre>'

J 2) What will happen when height and width of the video is not set while video loads? 1M
 D A) Page crash
B) Page does not load
R
 C) Page filckers
J
D) none of the above

 C
3) In HTML Audio/Video DOM, __________ returns a TimeRanges object representing the buffered parts of the audio/video
A) preload 1M
 F
B) network state
R
C) buffered

D) controller

4) Which of the following property adds padding to the top of an element?


A) top 1M
B) padding-top
C) height
D) padding-height

5) Which of the following property sets the shadow for a box element?
A) shadow 1M
B) set-shadow
C) shadow-box
D) box-shadow

6) which of the following property is used to apply shadow to text? 1M


A) shadow-text
B) text-shadow
C) box-shadow
D) shadow-box

7) Which CSS property do you need to align 2 html elements side-by-side?


A) padding 1M
B) margin
C) float
D) clear

8) Which of the following are valid CSS position property values?


A) static 1M
B) relative
C) fixed
D) all of the above

9) Name of the css property used to apply gradient 1M


A) background-color
B) background-image
C) background-attachment
D) background-position

10) if the flow of the gradient is from botom to top the what is the value of the direction parameter in
linear-gradient().
A) to top 0M

https://wingz.itvedant.com/index.php/assignment-test-student/exam-view-topic?id=7912 1/7
3/10/24, 11:40 AM WD Final Assessment Test

B) from bottom to top


C) from bottom
D) to top from bottom

D 11) The webpage layout in which width and height of the html elements are specified in percentage is

called as ....
 M A) static 1M
B) fluid
 A C) adaptive
D) responsive

 A
12) what is the in general value given to initial-scale attribute of the meta tag view port. 1M
A) 1.0
I B) 2.0
 Q
C) 3.0
D) 4.0
J
 D
13) Which of the following class in Bootstrap is used to provide a responsive fixed width container?
A) .container-fixed 1M
R
 J
B) .container-fluid
C) .container

 C D) none of above

F
14) How many columns are allowed in bootstrap grid system? 1M

A) 16

 R B) 12
C) 24
D) All of above

15) What is JavaScript?


A) JavaScript is a scripting language used to make the website interactive 1M
B) JavaScript is an assembly language used to make the website interactive
C) JavaScript is a compiled language used to make the website interactive
D) None of above

16) Javascript is an .................... language 1M


A) Object - Oriented
B) Object Based
C) Procedural
D) None of the above

17) Which one of the following is an ternary operator:


A) ? 1M
B) :
C) -
D) +

18) What will be output of the following JavaScript snippet code ?


console.log("//comments");

A) No output 1M
B) compile error
C) //comments
D) None of the above

19) Can we write JavaScript code in .html file ? 0M


A) Yes
B) No
C) Maybe
D) Not sure

20) State weather following statement is True or False


In JavaScript var is limited to bock scope, but not limited to function scope.

A) True 0M
B) False
C) -
D) -

https://wingz.itvedant.com/index.php/assignment-test-student/exam-view-topic?id=7912 2/7
3/10/24, 11:40 AM WD Final Assessment Test

21) In JavaScript let can not be _________ but can be ___________ . 0M


A) redeclared , updated
B) updated , redeclared
C) updated , used
 D D) None of the above

 M 22)
Hoisting is a mechanism in JavaScript where variables and function declarations are moved
 A __________________ their scope before code execution.
A) to the right side of 1M
A B) to the bottom of

C) to the top of
D) to the left side of
I
 Q
23)
Hoisting is a mechanism in JavaScript where variables and function declarations are moved
J
 D __________________ their scope before code execution.
A) to the right side of 1M
R B) to the bottom of
 J C) to the top of
D) to the left side of
 C
24) If the expression evaluate TRUE in IF-ELSE Statement in JavaScript, then ___________ 1M
 F A) Compile error will be thrown
B) controller will be passed to the next statement
 R C) statement will be executed.
D) None of the above

25) State whether the following is the right syntax for IF-ELSE statement

IF expression THEN

statements;

ELSE

if-statements;

END IF;

A) True 0M
B) False
C) -
D) -

26) State whether following is the right syntax for the IF-ELSEIF-ELSE statement

IF expression THEN

statements;

ELSEIF elseif-expression THEN

elseif-statements;

...

ELSE

else-statements;

END IF;

A) True 1M
B) False
C) -
D) -

27) What among the following is an appropriate event handler for input text among the below options ?
A) onclick 0M
B) onchange
C) onkeyup
D) onblur
https://wingz.itvedant.com/index.php/assignment-test-student/exam-view-topic?id=7912 3/7
3/10/24, 11:40 AM WD Final Assessment Test

28)

Consider the below code:


Identify the correct code in order to fetch the value entered in username text field?
< body>
 D < form name="register">
Enter username < input value="John" id="name" name="username">
< /form>
 M
< /body>

 A
A) document.register.name.value 1M
B) document.getElementById ("name").value
 A C) document.getElementByName ("name").value
D) None of the above
I
 Q
29) What is the purpose of the NamedNodeMap object?
A) Unordered collection of arrays 1M
J B) Unordered collection of elements
 D C) Unordered collection of nodes
D) Unordered collection of attributes
R
 J 30) The W3C DOM standard is separated into _____ different parts
A) 1 1M
 C B) 2
C) 3
 F
D) 4

 R 31) What is the default value of an uninitialized variable?


A) 0 0M
B) null
C) NaN
D) undefined

32) Which of the following display property value is described by treats the element as inline?
A) block 0M
B) inline
C) list-item
D) inline-block

33) Which of the following statement(s) is true about the JavaScript? 1M


A) It is a scripting language used to make the website interactive
B) It is an advanced version of Java for Desktop and Mobile application development
C) It is a markup language of Java to develop the webpages
D) All of the above

34) Which one of the following also known as Conditional Expression:


A) Alternative to if-else 0M
B) Switch statement
C) If-then-else statement
D) immediate if

35)
What will be the output of the following JavaScript code?
function info()
{
var a=1;
var b=2;
return a*b;
}
document.write(info());
A) 1 1M
B) 2
C) 3
D) error

36)

https://wingz.itvedant.com/index.php/assignment-test-student/exam-view-topic?id=7912 4/7
3/10/24, 11:40 AM WD Final Assessment Test

function demo(javascript)
{
return (javascript ? “yes” : “no”);
}
bool ans=true;
 D console.log(demo(ans));
A) Compilation error 1M
 M B) Runtime error
C) Yes
 A
D) No

37) What will be the function of the following JavaScript program?


 A
var scope = "js scope";
function checkscope()
I {
 Q var scope = "javascript scope";
function f()
{
J
 D return scope;
}
return f;
R
 }
J

 C A) Returns the value in scope 1M


B) Returns value null
 F C) Shows an error message
D) Returns exception
 R
38)
What will be the output of the following JavaScript code?
function counth2()
{
var totalh2=document.getElementsByTagName("h2");
alert("totalh2.length);
}
<h2>hello</h2>
<h2>hello</h2>
A) 0 1M
B) hello
C) h2
D) 2

39)
For displaying data in JavaScript, we cant use ____________ 0M
A) document.write()
B) console.log()
C) innerHTML
D) document.getElementById()

40) Arrays in JavaScript are written within ____________


A) {} 1M
B) []
C) ""
D) ()

41) What will be the output of the following JavaScript code?


var string1 = 123;
var intvalue = 123;
alert( string1 + intvalue );
A) 123246 1M
B) 246
C) 123123
D) Exception

42) What Layout Is Used For Providing 100% Width In Bootstrap?


A) Fluid Layout 1M
B) Fixed Layout
C) Both (a)and (b)
https://wingz.itvedant.com/index.php/assignment-test-student/exam-view-topic?id=7912 5/7
3/10/24, 11:40 AM WD Final Assessment Test

D) None Of The Above

43) Which is the function that calls another function after a time interval?
A) setTimeout() 1M
D B) setTime()

C) callafter()

 M D) timeSet()

44) Which element is restricted to inline content? 1M


 A
A) <dt>
B) <dd>
 A
C) <dl>
D) <ul>
I
 Q 45) Are HTML tags case sensitive? 1M
A) True
J B) False
 D
C) -
D) -
R
 J
46) JavaScript ignores? 0M
A) newlines
 C
B) tabs
C) spaces
 F
D) All of the above

 R
47) Which JavaScript keyword is used to declare a variable? 1M
A) Var
B) var
C) Let
D) All of the above

48) What will be the output of the following JavaScript code?


<script>

var msgs=new Array("Hello","Hey","Morning!");

for (i=0;i<msgs.length;i++){

document.write(msgs[i] + " | ");

</script>

A) Hello | Hey | Morning! | 1M


B) Hello | Hey |
C) ValueError
D) TypeError

49)
Variable declared is example of ___________ Variable.
function message() {
var name = "Bench";
alert(name);
}
A) Local 1M
B) Global
C) Semi-global
D) None of the above

50)
what will be the output of the below code?
num1=5;
function cal() {
num1=10;
num2=5;
num3=num2*num1;

https://wingz.itvedant.com/index.php/assignment-test-student/exam-view-topic?id=7912 6/7
3/10/24, 11:40 AM WD Final Assessment Test

console.log(num3);
}
cal();
A) 25 1M
 D B) 50
C) 100
M
 D) Error cannot have more than one variable with same name

 A

 A

I
 Q

J
 D

R
 J

 C

 F

 R

https://wingz.itvedant.com/index.php/assignment-test-student/exam-view-topic?id=7912 7/7

You might also like