-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnode.html
65 lines (62 loc) · 3.24 KB
/
node.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<!DOCTYPE html>
<html>
<h3>Questions on Javascript</h3>
<body>
<form>
Why code written in Node.JS is pretty fast although being written in JavaScript?
<br>
<input type="radio" name="gender" id="male">
<label for="male">Node.JS internally converts JavaScript code to Java based code and then execute the same.</label><br>
<input type="radio" name="gender" id="female">
<label for="female">Node.JS internally converts JavaScript code to C based code and then execute the same.</label><br>
<input type="radio" name="gender" id="male">
<label for="male">Being built on Google Chrome's V8 JavaScript Engine.</label><br>
<input type="radio" name="gender" id="male">
<label for="male"> None of the above.</label><br>
<br>
Which of the following command will show all the modules installed globally?
<br>
<input type="radio" name="gender" id="male">
<label for="male">$ npm ls -g</label><br>
<input type="radio" name="gender" id="female">
<label for="female">$ npm ls</label><br>
<input type="radio" name="gender" id="male">
<label for="male">$ node ls -g</label><br>
<input type="radio" name="gender" id="male">
<label for="male">$ node ls</label><br>
<br>
Which of the following is true about writable stream?
<br>
<input type="radio" name="gender" id="male">
<label for="male">writable stream is used for write operation.</label><br>
<input type="radio" name="gender" id="female">
<label for="female">Output of readable stream can be input to a writable stream.</label><br>
<input type="radio" name="gender" id="male">
<label for="male">Both of the above.</label><br>
<input type="radio" name="gender" id="male">
<label for="male">None of the above.</label><br>
<br>
Which method of fs module is used to get information about file?
<br>
<input type="radio" name="gender" id="male">
<label for="male"> fs.open(path, flags[, mode], callback)</label><br>
<input type="radio" name="gender" id="female">
<label for="female">fs.stat(path, callback)</label><br>
<input type="radio" name="gender" id="female">
<label for="female">fs.readFile(path, flags[, mode], callback)</label>
<input type="radio" name="gender" id="female">
<label for="female">None of the above.</label><br>
<br>
Which of the following is true about __dirname global object?
<br>
<input type="radio" name="gender" id="male">
<label for="male">The __dirname represents the name of the directory that the currently executing script resides in.</label><br>
<input type="radio" name="gender" id="female">
<label for="female"> The __dirname represents the resolved absolute path of code file.</label>
<input type="radio" name="gender" id="male">
<label for="male">Both of the above.</label><br>
<input type="radio" name="gender" id="male">
<label for="male">None of the above.</label><br>
</form>
</body>
</html>