Why is the total size of the page important?
Anonymous Quiz
11%
a) Time taken to download
67%
b) Size of IP packet should be less than 65500
22%
c) Size of IP packet should be less than 65535
0%
d) Size of IP packet should be greater tshan 65500
What is the purpose of the event window.onpopstate?
Anonymous Quiz
0%
a) When a state object is replaced
60%
b) When a state object is added
40%
c) When a state object is removed
0%
d) When a state object is changed
How many parameters does the replaceState() method take?
Anonymous Quiz
9%
a) 2
73%
b) 3
18%
c) 4
0%
d) 5
Which of the following method is used to replace the current history state instead of adding a new state to the browsing history?
Anonymous Quiz
44%
a) replaceState()
44%
b) replace(state)
11%
c) replace()
0%
d) change()
How will you update the URL displayed in the location bar?
Anonymous Quiz
25%
a) location
50%
b) location.URL
25%
c) location.hash
0%
d) url
What is the purpose of the method forward()?
Anonymous Quiz
8%
a) Loads any random URL in the history list
62%
b) Loads the previous URL in the history list
23%
c) Loads a specific URL from the history list
8%
d) Loads the next URL in the history list
How do you add a particular state to the browsing history?
Anonymous Poll
22%
a) pushState()
56%
b) replaceState()
22%
c) state()
33%
d) addstate()
What does the pushState() method do?
Anonymous Quiz
8%
a) Removes the state
42%
b) Adds new state
42%
c) Replaces the state
8%
d) Change the state
What does a History object contain?
Anonymous Quiz
7%
a) URL
50%
b) Parameters
43%
c) Attribute values
0%
d) Property
The history object is a part of which object?
Anonymous Quiz
15%
a) Property
62%
b) Window
15%
c) Location
8%
d) Screen
How can we check the subprotocol being used by the client?
Anonymous Quiz
18%
a) subprotocol property
27%
b) protocol property
55%
c) clientprotocol property
0%
d) client property
How will you transmit data using the connection?
Anonymous Quiz
0%
a) send(data)
60%
b) Socket.send(βdataβ)
40%
c) Socket.send(data)
0%
d) Socket(data)
Which of the following is not a WebSocket event?
Anonymous Quiz
8%
a) open
54%
b) close
31%
c) error
8%
d) deny
What does the following JavaScript code snippet do?
var httpserver = new http.Server();
var httpserver = new http.Server();
Anonymous Quiz
21%
a) Create an HTTP Server
43%
b) Create HTTP Connection between Client and Server
21%
c) HTTP Server & Connection
14%
d) Create a connection between two servers
Which of the following is not a socket property?
Anonymous Quiz
15%
a) onopen
31%
b) readyState
38%
c) onmessage
15%
d) ready
How does the client and the server communicate following the rules defined by the WebSocket protocol?
Anonymous Quiz
14%
a) Long-lived TCP Socket
50%
b) Short-lived TCP Socket
29%
c) UDP Socket
7%
d) HTTP Socket
To check whether string s1 contains another string s2, use ________
Anonymous Quiz
6%
a) s1.__contains__(s2)
50%
b) s2 in s1
39%
c) s1.contains(s2)
6%
d) si.in(s2)
Suppose i is 5 and j is 4, i + j is same as ________
Anonymous Quiz
18%
a) i.__add(j)
65%
b) i.__add__(j)
12%
c) i.__Add(j)
6%
d) i.__ADD(j)
What function do you use to read a string?
Anonymous Quiz
37%
a) input(βEnter a stringβ)
32%
b) eval(input(βEnter a stringβ))
32%
c) enter(βEnter a stringβ)
0%
d) eval(enter(βEnter a stringβ))
Suppose x is 345.3546, what is format(x, β10.3fβ) (_ indicates space).
Anonymous Quiz
25%
a) __345.355
38%
b) ___345.355
31%
c) ____345.355
6%
d) _____345.354
What will be the output of the following Python code?
print("abc DEF".capitalize())
print("abc DEF".capitalize())
Anonymous Quiz
0%
a) abc def
75%
b) ABC DEF
6%
c) Abc def
19%
d) Abc Def