0% found this document useful (0 votes)
221 views6 pages

WPT Mock

This document contains 40 multiple choice questions related to HTML, CSS, JavaScript, jQuery, Node.js, React and other web development topics. Each question is followed by 4 possible answer choices.

Uploaded by

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

WPT Mock

This document contains 40 multiple choice questions related to HTML, CSS, JavaScript, jQuery, Node.js, React and other web development topics. Each question is followed by 4 possible answer choices.

Uploaded by

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

1.

In HTML tables we can use properties for adding styles


Answers
1. php
2. jQuery
3. css
4. java

2. Element is design to wrap a single piece of information


Answers
1. <nav>
2. <time>
3. <footer>
4. <header>

3. In HTML5, it is possible to validate entered data by setting the


attribute for a form control.
Answers
1. allow
2. validate
3. restrict
4. required

4. An internal style sheet should be used when a single document has a


Answers
1. Unique style
2. Common style
3. Both of the above
4. None of the above

5. In JavaScript which of the following is not a data type


Answers
1. Boolean
2. Number
3. Undefined
4. Float

6. IN JS, a function name becomes optional when


Answers
1. The function is predefined
2. The function is defined as a looping statement
3. The function is defined as expressions
4. All of the above
7. Find correct output of below snippet Int
x=8;
if(x>9) {
document.write(9);
} else {
document.write(x);
}
Answers
1. 8
2. 9
3. 0
4. Undefined

8. Which is the correct value calling a JavaScript code?


Answers
1. RMI
2. Triggering Event
3. Function/Method
4. Preprocessor

9. In the HTML DOM (Document Object Model), everything is a _


Answers
1. Element
2. Atribute
3. Arrays
4. Node

10.When an event occurs when the user clicks on an element is


Answers
0. onchange
1. onclick
2. onblur
3. onkeyup

11. is an inbuilt method in jQuery used to hide the selected element.


Answers
1. hidden()
2. hide()
3. hiden()
4. display(none)

12. Which method is used to make an asynchronous HTTP request?


Answers
1. jQuery.ajaxAsync()
2. jQuery.async()
3. jQuery.ajax()
4. None of the above
13. Which of the following is not the Fed method in jQuery
1. fadeTo()
2. fedIn()
3. fadeOut()
4. fadeOn()

14. To write "hello world" what is the correct JavaScript syntax


Answers
1. document.write("hello world")
2. response.write("hello world")
3. ("hello world")
4. None of the above

15. AJAX and jQuery


Answers
1. With jQuery AJAX, you can request TXT, HTML, XML or JSON data from a remote
server using both HTTP Get and HTTP Post
2. jQuery provides a rich set of methods (functions) for AJAX web development
3. AJAX and jQuery are cross-platform (you can develop in Windows and serve on a
Unix platform)
4. First two statements

16. Which is the function that calls another function after a time interval
Answers
1. setTimeout()
2. setTime()
3. timeSet()
4. callAfter()

17. In the below notation, the employee is of type {"Employee": ["Amy", "Bob", "John"]}
Answers
1. Not a valid Json string
2. Array
3. Class
4. Object

18. What are the characteristics of Ajax?


Answers
1. Declarative instantiation of client components
2. Live data binding
3. Client-side template rendering
4. All of the above

19. In modern websites what is the common usage for JSON ?


1. To store information remotely
2. To send and receive bits of data
3. To store information locally
4. None of the above
20. Which of the following is false about AJAX?
1. AJAX IS Asystematic Javascript and XML
2. Update a web page without reloading the page
3. Request and Recieve data from a server - after the page has loaded
4. Send data to a server - in the background
21. AJAX allows a web page to dynamically
1. Control other pages
2. Change content
3. Reload at times
4. Connect to other addresses

22. Which of the following command will show the version of Node?
Answers
1. $ npm --version
2. $ npm getVersion
3. $ node --version
4. $ node getVersion

23. Which statement executes the code sample.js file


Answers
1. Nodejs sample.js
2. Node sample.js
3. sample.js
4. None of the above

24. To install node.js express module


Answers
1. $ npm install express
2. $ node install express
3. $ install express
4. None of the above

25. Which of the following is true about RESTful web services?


Answers
1. Web services based on REST architecture are known as RESTful web services
2. Web services uses HTTP methods to implement the concept of
REST architecture
3. Both of the above
4. None of the above

26. Which of the following tool automates various tasks of Node.js


application?
Answers
1. Express.js
2. GruntJS
3. NPM
4. None of the above
27. Which of the following types of applications can be built using Node.js?
Answers
1. Web Application
2. Chat Application
3. RESTful Service
4. All of the above

28. Something that happened in our application that we can respond to.
Answers
1. events
2. actions
3. procedures
4. callback

29. What is Callback in NodeJS?


Answers
1. The callback is an asynchronous equivalent for a function.
2. The callback is a technique in which a method calls back the caller method.
3. Both of the above
4. None of the above

30. In NodeJS what is REPL?


Answers
1. Print
2. Loop
3. Eval
4. All of the above

31. What is the full form of NPM?


Answers
1. Node Project Manager
2. Node Package Manager
3. New Project Manager
4. Nodes Packages Manager

32. What is the default scope in the Node.js application?


Answers
1. Global
2. Global Function
3. Local
4. Local to object

33. Third-party packages can be install/update/delete using


Answers
1. Node Package Manager
2. Node.exe
3. module.exports
4. REPL
34. What is the purpose of the Node object property ownerDocument?
Answers
1. Returns the immediate node
2. Returns the parent node
3. Returns the root element
4. Returns the last element

35. Which statement is valid in using a Node module fs in a Node-based


application?
Answers
1. import fs
2. package fs
3. var fs = require("fs")
4. var fs = import("fs")

36. What is the children prompt?


Answers
1. A property that adds children components to state
2. A property that lets you pass components as data to other components
3. A property that lets you set an array as a property
4. A property that lets you pass data to child elements

37. Consider the following code from React Route, What do you call:id in the path prop?
<Route path="/:id" />
Answers
1. This is a route modal
2. This is a route parameter
3. This is a route splitter
4. This is a route link

38. What is sent to an Array.map() function?


Answers
1. What string describing what the function should do
2. The name of another array to iterate over
3. The number of times you want to called a function
4. A callback function that is called once for each element in the array

39. Why might you use useReducer over useState in React component?
Answers
1. When you need to manage more complex state in an app
2. When you want to replace redux
3. When you want to improve performance
4. When you want to break your production app

40. What do you call a React component that catches JavaScript errors anywhere in the
child component tree?
Answers
1. error bosses
2. error catchers
3. error helpers
4. error boundaries

You might also like