WT Exam
WT Exam
Draft saved
* Indicates required question
Email
*
rishikalwane@gmail.com
Q1: Which of the following will display textbox to accept only digits and a
alphabet ‘e’ and accepts min number 10 and maximum number 100?
*
1 point
a) <input type=”number” name=”num” minlength=”2” maxlength=”3”/>
b) <input type=”text” name=”num” minlength=”2” maxlength=”3”/>
c) <input type=”number” name=”num” min=”10” max=”100”/>
d) None of the above
Q2: --------------------- attribute of HTML5 will bring the cursor in the text box
as soon as the page is loaded in the browser window.
*
1 point
a) autoalign
b) autofocus
c) autoload
d) addLoad
Q3: Which of the following is not attribute of body tag?
*
1 point
a) bgcolor
b) background
c) background-color
d) alink
Q4: Which of the following are valid values for type attribute of input tag?
*
1 point
a) hidden
b) text
c) radio
d) All of the above
Q5: Which of the following will link external css file myfile.css from current
folder to current html file?
*
1 point
a) <link rel=”stylesheet” href=”./myfile.css”></link>
b) <link rel=”stylesheet” src=”./myfile.css”></link>
c) <link rel=”stylesheet/css” href=”./myfile.css”></link>
d) <link type=”stylesheet” href=”./myfile.css”></link>
Q6: :input selector in CSS will select which of the following element from HTML
file?
*
1 point
a) textarea
b) select
c) input
d) all of the above
Q7: Javascript can be written in -----------------.
*
1 point
a) Head Section
b) Body section
c) External file
d) All of the above
Q8:
*
1 point
Captionless Image
a) JavaScript,HTML,XHTML
b) Invalid JavaScript
c) no output will be displayed
d) JavaScript HTML XHTML
Q9: You have an application which enables a user to enter a URL
The URL may contain spaces, which are not supported in requests which are sent from
browsers. You need to solve this problem by replacing the space by a special
symbol like %. How can this be achieved?
*
1 point
a) using decode method
b) using replace method
c) using escape method
d) using encode method
Q10:
var obj={name:”Rajan”, phone_number:11111};
var obj1={desg:”CEO”, dept: “computer”}
Which of the following statement will make obj1 as child and obj as parent using
inheritance?
*
1 point
a) obj.__proto__=obj1;
b) obj1.__proto__=obj;
c) obj1[parent]=obj;
d) None of the above
Q11:
*
1 point
Captionless Image
a) This is para
b) modified by script
c) This is para modified by script
d) given code is wrong
Q12: Which of the following code will assign click event for given <p> tag?
<p class=”myclass”>This is para</p>
*
1 point
a) $(‘#myclass’).click(myfunction);
b) $(‘#myclass’).onclick(myfunction);
c) $(‘.myclass’).click(myfunction);
d) $(‘.myclass’).onclick(myfunction);
Q13:
*
1 point
Captionless Image
a) If we hover mouse cursor on the given <p> tag background will change to yellow
and when we move out the cursor background will change to original
b) If we hover mouse cursor on the given <p> tag background will change to yellow
and when we move out the cursor still background will remain yellow
c) Given code is erroneous
d) If we hover mouse cursor on the given <p> tag no change will happenn 4
Q14: Which of the following selector will select only first li element of only
unordered list ?
*
1 point
a) $(‘ul li:first’)
b) $(‘ul-li:first’)
c) $(‘ul li:first-child’)
d) any of the above
Q15:
*
1 point
Captionless Image
a) alert( $(this).data());
b) alert( $(this).value());
c) alert( $(this).html());
d) Both B and C
Q16: If in nodejs, we have written a module name mymodule.js in current folder,
then how to add it in another .js file
*
1 point
a) require(“mymodule”);
b) require(“./mymodule”);
c) require(“./mymodule.js”);
d) Any of the above
Q17:
*
2 points
Captionless Image
a) given code is erroneous
b) It will read data from file asynchronously
c)
d) Both B and C
Q18:
*
1 point
Captionless Image
a) It will display Hello in the browser window
b) The given code contains error
c) There is no error in the code, but no output will appear on the screen
d) Given information is insufficient to answer the question
Q19: Nodejs is a platform built on ---------------------------for easily building
fast, scalable network applications
*
1 point
a) Chrome’s JavaScript runtime(v8 JavaScript Engine)
b) Firefox JavaScript runtime(v9 JavaScript Engine)
c) Mozzilla JavaScript runtime
d) None of the above
Q20: Which of the following will start nodejs server at port 3000 using expressjs?
If var app=require(“express”);
*
1 point
a) app.listen(8080);
b) app.listen(3000);
c) It is compulsory to add http module in the code and then use http.start(3000)
d) None of the above
Q21: ----------- variable in expressjs helps to get current directory name
*
1 point
a) currentDirectory
b) __dirname
c) __dirname__
d) __path__
Q22: Which of the following functions are used to handle requests in expressJs?
*
1 point
a) app.all
b) app.get
c) app.methods
d) Both A and B
Q23: In package.json, the file from which the application should begin is assigned
to which key?
*
1 point
a) start
b) main
c) dependencies
d) devdependencies
Q24: In react which of the following is right import for useState hook?
*
1 point
a) import useState from ‘react’
b) import useState from ‘react-router-dom’
c) import useState from ‘react-redux’
d) import {useState} from ‘react’
Q25: In reactjs -------- library is used to send the request to webservice.
*
1 point
a) redux
b) axios
c) http
d) Both B and C
Q26:
*
1 point
Captionless Image
a) You entered Pune
b) You entered Mumbai
c) The given code is errorneous
d) None of the above
Q27: Which of the following function gets called after componentDidMount if the
set State function is used in it?
*
1 point
a) componentDidUpdate()
b) getSnapshotBeforeUpdate()
c) constructor()
d) render()
Q28: Which of the following hook is used to get dispatch object to send the request
to redux store.
*
1 point
a) useContext()
b) useDispatch()
c) useSelector()
d) None of the above
Q29: Which of the following lifecycle method get executed only in updating phase of
component, in react?
*
1 point
a) constructor()
b) render()
c) shouldComponentUpdate()
d) getDerivedSateFrom props()
Q30:
*
1 point
Captionless Image
a) onChange={(event)=>{setformdetails({name:event.target.value})}}
b) value={formdetails.name}
onChange={(event)=>{setformdetails({name:event.target.value})}}
c) given code is erroneous so no output will be displayed
d) None of the above
Q31: Which of the following function is equivalent to componentDidMount lifecycle
method in react?
*
1 point
a) useEffect(()=>{},[x,y])
b) useEffect(()=>{})
c) useEffect([])
d) useEffect(()=>{},[])
Q32: Bootstrap grid system divides the screen in ------- number of columns.
*
1 point
a) 12
b) 13
c) 15
d) 16
Q33: Which of the following are true for jumbletron in bootstrap ?
*
1 point
a) A jumbotron is displayed as a grey box with rounded corners
b) Inside a jumbotron you can put only header tags of html
c) It enlarges the font sizes of the text inside it
d) Both A and C
Q34: In bootstrapJs btn-warning class will display button in -------- color.
*
1 point
a) green
b) blue
c) orange
d) White
Q35: JSX fullform is ___.
*
1 point
a) Java extension
b) Java XML
c) Javascript xml
d) Javascript extension
Q36: In react ------ compiler converts JSX into javascript code
*
1 point
a) redux
b) babel
c) ajax
d) axios
Q37: In reactjs ------- object is readonly object.
*
1 point
a) Component
b) state
c) props
d) All of the above
Q38: --------object in react helps to store the data within a class component.
*
1 point
a) props
b) state
c) selector
d) All of the above
Q39: Which of the following component of react-redux library helps to give access
to redux store?
*
1 point
a) <Provider data={store}></Provider>
b) <Provider store={store}></Provider>
c) <Provider state={store}></Provider>on 3
d) None of the above
Q40: Which of the following will give output as false?
*
1 point
a) isNaN('123')
b) isNaN(123)
c) isNaN(true)
d) both B and C
This content is neither created nor endorsed by Google. - Terms of Service -
Privacy Policy
Does this form look suspicious? Report
Google Forms