

MCQOPTIONS
Saved Bookmarks
This section includes 62 Mcqs, each offering curated multiple-choice questions to sharpen your Javascript knowledge and support exam preparation. Choose a topic below to get started.
1. |
What is the purpose of getting the parameter fvonly? |
A. | To repeat the view test |
B. | To get the first view |
C. | To debug the code |
D. | To compile the code |
Answer» C. To debug the code | |
2. |
Which of the following is not a socket property? |
A. | onopen |
B. | readyState |
C. | onmessage |
D. | ready |
Answer» E. | |
3. |
Which environment variable must the user enable in order to enable data tainting?%! |
A. | ENABLE_TAINT |
B. | MS_ENABLE_TAINT |
C. | NS_ENABLE_TAINT |
D. | ENABLE_TAINT_NS |
Answer» D. ENABLE_TAINT_NS | |
4. |
What is the tainted property of the window object?%! |
A. | Pathname |
B. | Protocol |
C. | Default status |
D. | Host |
Answer» D. Host | |
5. |
Which tag can handle mouse events in Netscape?%! |
A. | img |
B. | a |
C. | br |
D. | none of the mentioned |
Answer» B. a | |
6. |
How will you convert the returned API into an XML object?%! |
A. | SimpleElement() |
B. | SimpleXMLElement() |
C. | XMLElement() |
D. | None of the mentioned |
Answer» C. XMLElement() | |
7. |
What will the file_get_contents() return?%! |
A. | Server’s response |
B. | Errors |
C. | Exception |
D. | Client’s response |
Answer» B. Errors | |
8. |
What is the purpose of the method plot()?%! |
A. | Displays symbols |
B. | Displays charts |
C. | Displays symbols and charts |
D. | None of the mentioned |
Answer» C. Displays symbols and charts | |
9. |
How many parameters does the WebPageTest API accept?%! |
A. | 5 |
B. | 6 |
C. | 7 |
D. | 8 |
Answer» E. | |
10. |
How to save chart as a Window metafile?%! |
A. | metafile() |
B. | win.metafile() |
C. | file() |
D. | metawin() |
Answer» C. file() | |
11. |
*$_What will the file_get_contents() return?? |
A. | Server’s response |
B. | Errors |
C. | Exception |
D. | Client’s response |
Answer» B. Errors | |
12. |
*$_What is the purpose of the method plot()?? |
A. | Displays symbols |
B. | Displays charts |
C. | Displays symbols and charts |
D. | None of the mentioned |
Answer» C. Displays symbols and charts | |
13. |
*$_How many parameters does the WebPageTest API accept?? |
A. | 5 |
B. | 6 |
C. | 7 |
D. | 8 |
Answer» E. | |
14. |
*$_How to save chart as a Window metafile?? |
A. | metafile() |
B. | win.metafile() |
C. | file() |
D. | metawin() |
Answer» C. file() | |
15. |
*$_How does the client and the server communicate following the rules defined by the WebSocket protocol?? |
A. | Long-lived TCP Socket |
B. | Short-lived TCP Socket |
C. | UDP Socket |
D. | HTTP Socket |
Answer» B. Short-lived TCP Socket | |
16. |
*/*_What are the processes that take place within R?? |
A. | Splitting of data |
B. | Aggregating of data |
C. | Overlaying two or more data |
D. | All of the mentioned |
Answer» E. | |
17. |
*/*_R is an extension of which of the following language?? |
A. | C |
B. | C++ |
C. | S |
D. | None of the mentioned |
Answer» D. None of the mentioned | |
18. |
*/*_How do you add a particular state to the browsing history?? |
A. | pushState() |
B. | replaceState() |
C. | state() |
D. | none of the mentioned |
Answer» B. replaceState() | |
19. |
*/*_What does an History object contain?? |
A. | URL |
B. | Parameters |
C. | Attribute values |
D. | Property |
Answer» B. Parameters | |
20. |
*/*_Which of the following is a loosely-typed language?? |
A. | R |
B. | T |
C. | S |
D. | Both R and S |
Answer» D. Both R and S | |
21. |
*/*_What is the usage of the keyword ?? in R?? |
A. | Help window |
B. | Extensive search |
C. | Error correction |
D. | Error detection |
Answer» C. Error correction | |
22. |
*/*_What kind of data can be run in R?? |
A. | Binary |
B. | Text |
C. | Decimals |
D. | All kinds |
Answer» E. | |
23. |
%_What is the purpose of the file_get_contents()?_% |
A. | To get the errors and exceptions |
B. | To get the client’s response |
C. | To get the server’s response |
D. | None of the mentioned |
Answer» D. None of the mentioned | |
24. |
%_Which function is used to create data frames?_% |
A. | data.frames() |
B. | frame.data() |
C. | data.frame() |
D. | frame(data) |
Answer» D. frame(data) | |
25. |
%_What is the purpose of the method par()?_% |
A. | Makes the text vertical |
B. | Makes the text horizontal |
C. | Makes the text diagonal |
D. | None of the mentioned |
Answer» C. Makes the text diagonal | |
26. |
%_What is the purpose of the method symbols in R?_% |
A. | Draw symbols |
B. | Draw other shapes |
C. | Draw symbols and other shapes |
D. | None of the mentioned |
Answer» C. Draw symbols and other shapes | |
27. |
%_Which method is used to close the WebSocket?_% |
A. | Socket.flush() |
B. | Socket.close() |
C. | Socket.Close() |
D. | Socket.dispose() |
Answer» C. Socket.Close() | |
28. |
__What type of language is generally used to collect the data?__ |
A. | Glue language |
B. | Statistical language |
C. | Both Glue and Statistical language |
D. | None of the mentioned |
Answer» B. Statistical language | |
29. |
__What is the purpose of the event window.onpopstate?__ |
A. | When a state object is replaced |
B. | When a state object is added |
C. | When a state object is removed |
D. | None of the mentioned |
Answer» D. None of the mentioned | |
30. |
__How will you update the URL displayed in the location bar?__ |
A. | location |
B. | location.URL |
C. | location.hash |
D. | url |
Answer» D. url | |
31. |
__Which of the following is not a WebSocket event?__ |
A. | open |
B. | close |
C. | error |
D. | deny |
Answer» E. | |
32. |
__Which of the following is the assignment operator?__ |
A. | <- |
B. | -> |
C. | = |
D. | == |
Answer» B. -> | |
33. |
__For a more extensive search, which keyword needs to be used?__ |
A. | ?? |
B. | ? |
C. | ?= |
D. | =? |
Answer» B. ? | |
34. |
__What does the R language do?__ |
A. | Tighten and format the chart |
B. | Ingest and process the chart |
C. | Format and Ingest the chart |
D. | None of the mentioned |
Answer» C. Format and Ingest the chart | |
35. |
__What is the purpose of getting the paramerer fvonly?__ |
A. | To repeat the view test |
B. | To get the first view |
C. | To debug the code |
D. | None of the mentioned |
Answer» C. To debug the code | |
36. |
__Which of the following list contains multiple data types?__ |
A. | Vectors |
B. | Data frames |
C. | Matrices |
D. | None of the mentioned |
Answer» C. Matrices | |
37. |
__Which is the method used to draw a bar plot?__ |
A. | bar_plot() |
B. | plot(bar) |
C. | barplot() |
D. | plotbar() |
Answer» D. plotbar() | |
38. |
__Which of the following is the initial function used to create a bubble chart natively in R?__ |
A. | init() |
B. | chart(bubble) |
C. | symbols() |
D. | none of the mentioned |
Answer» D. none of the mentioned | |
39. |
_How many WebSocket events are available?$? |
A. | 2 |
B. | 3 |
C. | 4 |
D. | 5 |
Answer» D. 5 | |
40. |
What are the purposes R can be used for?$? |
A. | Suck in data |
B. | Parse data |
C. | Process data |
D. | All of the mentioned |
Answer» E. | |
41. |
How many parameters does the replaceState() method take?$? |
A. | 2 |
B. | 3 |
C. | 4 |
D. | 5 |
Answer» C. 4 | |
42. |
What is the purpose of the method forward()?$? |
A. | Loads any random URL in the history list |
B. | Loads the previous URL in the history list |
C. | Loads a specific URL from the history list |
D. | Loads the next URL in the history list |
Answer» E. | |
43. |
How will you transmit data using the connection?$? |
A. | send(data) |
B. | Socket.send(“data”) |
C. | Socket.send(data) |
D. | Socket(data) |
Answer» D. Socket(data) | |
44. |
Which symbol is used to start a comment?$? |
A. | / |
B. | $ |
C. | # |
D. | None of the mentioned |
Answer» D. None of the mentioned | |
45. |
Which is the keyword used to open the Help window?$? |
A. | () |
B. | # |
C. | ? |
D. | = |
Answer» D. = | |
46. |
Why do we use Adobe Illustrator along with R?$? |
A. | Collect the relevant data |
B. | Format the chart and to correct the errors |
C. | Tighten and format the chart |
D. | Ingest and process the chart |
Answer» D. Ingest and process the chart | |
47. |
What will happen if you set the private flag as 1?$? |
A. | Test will be run only by the administrator |
B. | Test will not be run |
C. | Test is public |
D. | Test is not displayed in public |
Answer» E. | |
48. |
Which is the function used to add the vectors?$? |
A. | c() |
B. | add(vectors) |
C. | c(vectors) |
D. | vectors.add |
Answer» B. add(vectors) | |
49. |
Which of the following are methods used to save charts?$? |
A. | pdf() |
B. | jpeg() |
C. | bmp() |
D. | all of the mentioned |
Answer» E. | |
50. |
What is the need for bubble charts?$? |
A. | Represent 2D data |
B. | Represent 3D data |
C. | Represent 2D and 3D data |
D. | None of the mentioned |
Answer» C. Represent 2D and 3D data | |