Front End
Front End
ans=a,d
2.rita is a web developer who gets necessary data from the server is in the Jason
format for her application development She wants to convert the data from Jason to
javascript format which of the below method rita can use to achive this?
ans=JSON.parse()
3.after logging in a better application Priya happened to click on a malicious link
which come over an email soon she found that her user ID and password for the
application changed choose the correct technique to mitigate the security issue
a.implement CORS policy
b.log off from the application when not in use
c.implement HTTPS instead of HTTP
d.implement CSRF tokens
ans=b,c
3.guess who made the incorrect statement from the below conversation ?
alex: events in javascript are considered as objects
sam: to use events external third party javascript libraries must be used
tom: when events are fired the event objects is generated by the browser
harvey: preventdefault() method prevents the default behaviour of the event
ans= a,b,c any one is correct
4.in banking web application it was found that once the user logged in money was
getting transferred to somebody's account without the constant What could be
possible Security issues? option from the below
a.XSS attack
b.CSRF attack
c.jason hijacking
d.HTML injection
ans =CSRF attack
5.dia is developing a web application and she wants to secure it from cyber attack
such as XSS attack Choose the appropriate suggestion from the given options to help
her out
a.use javascript security analyzer
b.use cookies to resist the critical information
c.use linters
1.i and iii
2.i,iiand iii
3.i and ii
4.ii and iii
ans =1
6.tina in her web application implements obfuscation in such a way that all
identifiers and functions were replaced with meaningless random names.which feature
of obfuscation was implemented here ?identify from the below options
ans=Name Obfuscation.
7.sam a UI developer wants to cheque whether the username entered by the user is
presented in user array Which are the following syntax can be used assuming
username variable as the username entered by user and "user[]" Is the array
a.for(i=0;i<user[i].length;i++){
if(user[i]==username)
return true
else
return false
}
b.for(;i<user[i].length;i++){
if(user[i]==username)
return true
else
return false
}
c.for(i=0;i<user[i].length){
if(user[i]==username)
return true
else
return false
}
d.for(i=0;i++){
if(user[i]==username)
return true
else
return false
}
ans= a
8.which of the below policy provides a critical security mechanism that restricts
how a document or script loaded from one origin can interact with the resource from
another origin which helps in separating malicious documents and decreasing
possible attack vector
ans=same origin polocy(SOP)
9.which of the following script code will help the developer to cheque the event
and do necessary actions above as event type
a.<script>
function myfunction(event){
var x = event.Typeof;
document.getelementbyid("demo").innerHTML=x;
}
</script>
b.<script>
function myfunction(event){
var x = event.type;
document.getelementbyid("demo").innerHTML=x;
}
</script>
c.<script>
function myfunction(event){
var x = event.type;
document.getelementbyid("demo").innerHTML=x;
}
</script>
d.<script>
function myfunction(event){
var x = event.typeof;
document.getelementbyid("demo").innerHTML=x;
}
</script>
ans= c
10.a developer created web page consist of a video while testing this web page in
different browser It comes to know that some of the earlier versions of the browser
were not rendering the video element as per his exception which among the following
action will resolve this issue
a.remove video tag as all users need to send expressions
b.add selectcixr polyfill
c.add mediaelement.js polyfill
d.use modernizr
ans=c
11. Sara Wants to design a responsive homepage from her application Can you let her
know which among the below mentioned options can consider as a core concepts of
responsive web design
a. fluid grids
b. flexible images
c. typography
ans =all the above options are correct
12.a web designer want to design A responsible web page Can you let him know no
which among the below mentioned unit should be considered for fixed unit for
measurement
a.px
b.dp
c.em
d.pt
ans=a
13.jack's teens manager has instructed him to create HTML from that allows his team
members to upload multiple files onto the web service which among the below given
quotes Impact will accomplish this task ?
a.<input file="put" name="File" selected/>
b.<input type="file" name="File" multiple/>
c.<input value="file" name="File" multiple/>
d.<input type="upload" name="File" selected/>
ans=b
14.anthony created a web page with Sinner form She wants the username to be
mentioned as mandatory If user skips this fake pepe should populate it tease a
mandatory in good field Message on screen Can you let him know which of the below
mentioned input type feel should be used here to achieve this requirement
ans=required
15.which off the following statement at correct regarding the sectioning elements
of HTML5
a.<nav>element defines the navigational links
b.<aside>element contains the main content of the webpage
c.<section>element books the related contents together
d.<head>element contains header information of the web page
ans=only i and iii are correct
16.e commerce website received millions of hits initially when I launched but
suddenly a number of visits to website came down when the developer analysed the
British identified the website style is now different from what was used while
designing the site What kind of attack might have caused this changes in the
website appearance
a.CSS injection
b.click Jacking
c.json hijacking
d.reverse tab nabing
ans = a
17.joseph designs a firm with an input field to collect the work experience data
from user and he prefers collection the data as a slider also achieves below
mentioned recruitment
1.the field should be auto focused
2.the field should accept minimum value as two and maximum value as 10
can you choose the appropriate option for implementing the above mentioned
recruitment
ans=<form>
workexperience:
<input type="range" id="work-experience" name="work-experience" min="2" max="10"
autofocus>
</form>
18.shyam needs to design an HTML page as part of his web technology assessment Help
him to choose the correct structure of the page
ans=
<!DOCTYPE html>
<html>
<head>
</head>
<body>
</body>
</html>
19.ram wants to have ordered list in his web page to chalk the following type of
order He can design in web page using HTML5 ?
a.i.,ii.,iii.,.....
b.1),2),3),4),....
c.a.,b.,c.,d.,....
d.A),B),C),D),.....
1.a and b
2.a and c
3.b and d
4.a and c
ans = a and b
20.ashish has created a birthday website using HTML5 code with tenders the below
given out
a.<div>
<label for="">Type Birthday whishes</label>
<input type="text">
</div>
<div>
<label for="">Date</label>
<input type="date">
</div>
<div>
<label for="">Choose Background</label>
<input type="color">
</div>
b.<div>
<label for="">Type Birthday whishes</label>
<input type="text">
</div>
<div>
<label for="">Date</label>
<input type="calender">
</div>
<div>
<label for="">Choose Background</label>
<input type="color">
</div>
c. <div>
<label for="">Type Birthday whishes</label>
<input type="text">
</div>
<div>
<label for="">Date</label>
<input type="date">
</div>
<div>
<label for="">Choose Background</label>
<input type="color">
</div>
d. <div>
<label for="">Type Birthday whishes</label>
<input type="text">
</div>
<div>
<label for="">Date</label>
</div>
<div>
<input type="calender">
</div>
<div>
<label for="">Choose Background</label>
<input type="color">
</div>
ans=c
21.jemmy has developed a customised web page by considering below given points
a.it is very much flexible in nature
b.it has also multiple breakpoints
c.recording of the content gradually changes on increasing width of the device
select which of the amongst you following techniques has followed to build his web
page
1.off canvas
2.layout shifter
3.column drop
4.mostly fluid
ans = 2
22.consider that you need to improve the performance of one of the existing web
applications
which among the below mentioned techniques would help you to achieve the
requirement
a.reduce the number of the HTPP request
b.cache all the static contents of the application
c.analyse the CSS files and convert all the PX with into percentage of the
corresponding parent with
d.use unified javascript CSS code along with compressed images
1.a,b,c
2.a,c,d
3.a,b,d
4.b,c,d
ans =3
23.mark has created an online banking web page in HTML CSS and javascript along
with some images But he could find that the web page was taking too much time to
load which among the following techniques will help him to solve the issue
a.analyse the load sequence and optimise
b.magnification and compression
b.remove all the images from the web page
1.only a
2.only b
3.only a and b
only b and d
ans = 3
24.a developer is having a span tag in his code and in his to add some styling to
one specific tag which has an attribute class name tester which among the following
course knit will enable it to achieve this requirement
a.span[class#="test"]
b.span[class%="test"]
c.span[class^="test"]
d.span[class$="test"]
ans = c
25.consider the below spat in javascript
1.console.log(typeof func1);
var func1 = function(){};
2.var x= 50;
function hello(){
var x = 30
console.log(x)
}
hello();
3.var z=1,y=z=typeof y;
console.log(y);
which off the above snippet will return undefined as output on execution
a.only 1
b.only 2
c.both 1 and 3
d.both 1 and 2
ans = 3
26.john want to display the date details in his website by built in method John can
display the day
ans =getDay()
27.what will be the output of the given port
<script>
var myvar;
function checkOutput(){
var myvar = 10;
document.writeln(typeof(myvar));
var myvar ="a";
var x;
document.writeln(typeof(myvar));
document.writeln(myvar);
document.writeln(typeof(x));
}
checkOutput();
document.writeln(myvar);
</script>
ans=number string a undefined undefined