Angular Node Merged
Angular Node Merged
Af Persistent
What is the use of the method stat() in the File System API of Node?
¥ 1)\Itprovides file properties such as size in bytes, creation time, modified time etc.
2) It is used to open a file
3) It is used to read data from the file
4) None of the Above
1/18
E-Box App | We Revolutionize Technology and Engineering Learning
4 Check
Which folder contains... 1 Correct Answer
Answer V
Check
Suppose we have a clas... 1 Correct Answer
Answer V
2/18
E-Box App | We Revolutionize Technology and Engineering Learning
Which of the below when added will make this class an Angular Component?
1) @Component({
selector:'user-app'
}
Y 2)@Component({
selector:'user-app'
template:"<h1>User Component</h1>"
})
3) @Component({
template:'<h1>User Component</h2>'
}'
4) All of the Above
Which module enables to start a Node server script in watch mode and
automatically restarts the server incase of changes?
¥ 1)Nodemon
2) Morgan
3) Express
4) Util
3/18
E-Box App | We Revolutionize Technology and Engineering Learning
Check
8 Which is the correct w... 1 Correct Answer
Answer V
}
2) getUsers():AsObservables<any>{
}
3) getUsers():void{
}
4) None of the Above
Check
9 Which command creates... 1 Correct Answer
Answer Vv
Check
10 Which directive/tag is... 1 Correct Answer
Answer V
4/18
E-Box App | We Revolutionize Technology and Engineering Learning
Check
11 State True or False. W... 1 Correct Answer
Answer V
5/18
E-Box App | We Revolutionize Technology and Engineering Learning
}
¥Y = 1)Error object
2) Array of files
3) File Object
4) None of the Above
Check
14 Which of the below dir... 1 Correct Answer
Answer V
Check
15 Can we send JSON data... 1 Correct Answer
Answer ¥
Check
16 Which of the below is/... 1 Correct Answer
Answer V
6/18
E-Box App | We Revolutionize Technology and Engineering Learning
Check
17 Suppose we have a comp... 1 Correct Answer
Answer V
}
Which is the correct way to specify the providers for MyService?
1) @Component({
---//other properties
providers:['MyService’]
}'
Y 2)@Component({
---//other properties
providers:[MyService]
y'
3) @Component({
---//other properties
services:[MyService]
y'
4) None of the Above
Check
18 Select the correct mon... 1 Correct Answer
Answer V
7/18
E-Box App | We Revolutionize Technology and Engineering Learning
Select the correct mongodb API to retrieve all records from the MongoDb
database from Node script?
1) fetch()
vY 2)find()
3) findByld()
4) findAIK)
Check
19 Which of the below pro... 1 Correct Answer
Answer V
Which of the below property of NgModel would help us to check the form
controls validity only on blur event?
1) dirty
2) .errors
~¥ 3).touched
4) None of the Above
Check
20 Assume an HTTP request... 1 Correct Answer
Answer V
return this.http.get(‘https://jsonplaceholder.typicode.com/users');
Select the correct return type of this method to be replaced in the blank
space?
1) Array<Object>
2) Object
~ 3) Observable<any>
4) None of the Above
Check
21 Which of the below is/.. 1 Correct Answer
Answer V
8/18
E-Box App | We Revolutionize Technology and Engineering Learning
Which of the below is/are not good use cases for Node.js?
¥ 1)CPU intensive applications.
2) I/O bound Applications
3) Data Streaming Applications
4) Data Intensive Real time Applications (DIRT)
5) JSON APIs based Applications
Check
22 Which is the correct w... 0 Wrong Answer
Answer V
Which is the correct way to define routerlink having static value of 'users'?
1) <a routerLink="Users|lowercase">Users</a>
¥Y 2)<arouterLink="users">Users</a>
% 3) <a [routerLink]="Users">Users</a>
4) All of the Above
Check
23 Which of the below is... 1 Correct Answer
Answer V
Check
24 Which of the below met... 1 Correct Answer
Answer V
9/18
E-Box App | We Revolutionize Technology and Engineering Learning
Check
25 Which of the below is ... 1 Correct Answer
Answer V
Check
26 Which of the below are... 1 Correct Answer
Answer V
10/18
E-Box App | We Revolutionize Technology and Engineering Learning
Check
27 Which is the correct b... 1 Correct Answer
Answer V
Which is the correct block of code to handle routes which are invalid for an
application (404 status)?
Y 1)app.use(function(request,response){
response.status(404).send("Page cannot be found");
»s
2) app.get(" function(request,response,next){
response.status(404).send("Page cannot be found");
);
3) app.get(/function(error,request,response,next){
response.status(404).send("Page cannot be found");
};
4) app.use(function(error,request,response,next){
response.status(404).send("Page cannot be found");
y:
Check
28 Which of the below is... 1 Correct Answer
Answer V
Which of the below is the right way to define a template reference variable
named "testval" for an input box?
¥ 1)<input type="text" #testval (keyup)="0" />
2) <input type="text" testval (keyup)="0" />
3) <input type="text" (testval) (keyup)="0" />
Check
29 Which of the below is... 0 Wrong Answer
Answer V
11/18
E-Box App | We Revolutionize Technology and Engineering Learning
Which of the below is a valid form control directive that provides validity
properties for an input box?
% = 1)ngform
2) ngmodel
3) ngModel
4) None of the Above
12/18
E-Box App | We Revolutionize Technology and Engineering Learning
Which of the below annotation enables a child component to get data froma
parent component?
1) @Output
¥ 2)@Input
3) @Event
4) @Data
13/18
E-Box App | We Revolutionize Technology and Engineering Learning
Which of the below is a correct way to handle get requests for the url users’
?Assume ‘app’ is a valid express server instance.
¥ 1) app.get('/users'function(request,response){
}
2) app.get(‘users'function(request,response){
}
3) app.route(/users'function(request,response){
}
4) None of the Above
Check
36 Which of the below is... 1 Correct Answer
Answer V
Check
37 Which of the below ope... 1 Correct Answer
Answer V
Check
38 What is/are advantages... 1 Correct Answer
Answer V
14/18
E-Box App | We Revolutionize Technology and Engineering Learning
Check
41 Which module needs to... 1 Correct Answer
Answer V
15/18
E-Box App | We Revolutionize Technology and Engineering Learning
Which module needs to be imported in order to work with two way data
binding?
¥Y 1)FormsModule
2) HttpModule
3) BrowserModule
4) Nothing to be imported
Interpolation is an example of
SY 1)One way binding
2) Two way binding
16/18
E-Box App | We Revolutionize Technology and Engineering Learning
Check
45 Which is the right way... 1 Correct Answer
Answer V
Check
46 Which of the below doe... 1 Correct Answer
Answer V
Check
47 What is the significan... 1 Correct Answer
Answer Vv
Check
48 Which of the below fla... 0 Wrong Answer
Answer V
17/18
E-Box App | We Revolutionize Technology and Engineering Learning
18/18
CS Chirag Sahuji
S.No Questions Score Status
Check
1 Can we send JSON data ... 1 Correct Answer Answer
Check
2 Select the correct adv... 1 Correct Answer Answer
Check
3 Which of the below met... 1 Correct Answer Answer
S.No Questions Score Status
Check
4 Which of the below ann... 1 Correct Answer Answer
Check
5 Suppose we have a meth... 1 Correct Answer Answer
Check
6 Which of the below is/... 1 Correct Answer Answer
S.No Questions Score Status
Which of the below is/are a valid CSS classes provided by Angular that
reflects validity of form controls?
1) .ng-valid
2) .valid
3) .ng-error
4) All of the Above
Check
7 Suppose a MovieCard co... 1 Correct Answer Answer
Check
8 Which is the correct b... 0 Wrong Answer Answer
S.No Questions Score Status
Which is the correct block of code to handle routes which are invalid for an
application (404 status)?
1) app.use(function(request,response){
response.status(404).send("Page cannot be found");
});
2) app.get('**',function(request,response,next){
response.status(404).send("Page cannot be found");
});
3) app.get('/',function(error,request,response,next){
response.status(404).send("Page cannot be found");
});
4) app.use(function(error,request,response,next){
response.status(404).send("Page cannot be found");
});
Check
9 Lets say a custom comp... 1 Correct Answer Answer
Lets say a custom component is created with name, "Products" defined in file
"Products.component.ts".
Which of the below correctly registers this component to the root module
"AppModule" defined as below?
@NgModule({
imports:[ BrowserModule],
declarations: [ ],
bootstrap:[AppComponent]
})
export class AppModule { }
1) declarations:[Products]
2) declarations:["Products"]
3) imports:[BrowserModule,Products]
4) None of the Above
Check
10 Suppose we have the be... 1 Correct Answer Answer
S.No Questions Score Status
Check
11 Which of the following... 1 Correct Answer Answer
Check
12 What is/are advantages... 1 Correct Answer Answer
Check
13 Which is the correct w... 1 Correct Answer Answer
S.No Questions Score Status
Which is the correct way to define routerlink having static value of 'users'?
1) <a routerLink="Users|lowercase">Users</a>
2) <a routerLink="users">Users</a>
3) <a [routerLink]="Users">Users</a>
4) All of the Above
Check
14 Which of the below is ... 1 Correct Answer Answer
Check
15 Which of the following... 1 Correct Answer Answer
Which of the following is the valid import to inject the HttpClient service that
enables to make HTTP requests?
1) import {HttpModule} from '@angular/core'
2) import {HttpClient} from '@angular/common/http'
3) import {HttpClient} from 'rxjs'
4) None of the Above
Check
16 For the below method c... 1 Correct Answer Answer
S.No Questions Score Status
For the below method call which statement is true? Assume 'fs' refers to file
system module.
fs.readFileSync()
1) The method takes a callback as parameter.
2) The method takes a file path as parameter.
3) The method emits inbuilt stream events.
4) All of the Above.
Check
17 Which is the correct w... 1 Correct Answer Answer
}
2) getUsers():AsObservables<any>{
}
3) getUsers():void{
}
4) None of the Above
Check
18 What is the use of the... 1 Correct Answer Answer
Check
19 Which module enables t... 1 Correct Answer Answer
S.No Questions Score Status
Which module enables to start a Node server script in watch mode and
automatically restarts the server incase of changes?
1) Nodemon
2) Morgan
3) Express
4) Util
Check
20 Which of the below is ... 0 Wrong Answer Answer
Check
21 Which of the below pro... 1 Correct Answer Answer
Which of the below property of NgModel would help us to check the form
controls validity only on blur event?
1) .dirty
2) .errors
3) .touched
4) None of the Above
S.No Questions Score Status
Check
22 Which of the below is ... 1 Correct Answer Answer
Check
23 Which of the below fla... 1 Correct Answer Answer
Check
24 Which of the below is ... 1 Correct Answer Answer
Which of the below is the correct way to bind an input box to a variable
'phone' using two-way data binding?Assume the corresponding component
class already has a variable 'phone' defined.
1) <input type="text" [(ngModel)]="phone" >
2) <input type="text" [(ngModel)]=phone >
3) <input type="text" ngModel="phone" >
4) None of the Above
Check
25 Which of the below ope... 1 Correct Answer Answer
S.No Questions Score Status
Check
26 Which of the below dir... 1 Correct Answer Answer
Check
27 Which module is intern... 1 Correct Answer Answer
Check
28 Which of the below is ... 0 Wrong Answer Answer
S.No Questions Score Status
Check
29 What is the use of the... 1 Correct Answer Answer
What is the use of the method stat() in the File System API of Node?
1) It provides file properties such as size in bytes, creation time, modified time etc.
2) It is used to open a file
3) It is used to read data from the file
4) None of the Above
Check
30 State True or False. S... 1 Correct Answer Answer
Check
31 Select the correct Mon... 1 Correct Answer Answer
Check
32 Which below statement ... 0 Wrong Answer Answer
Check
33 Which module needs to ... 1 Correct Answer Answer
Which module needs to be imported in order to work with two way data
binding?
1) FormsModule
2) HttpModule
3) BrowserModule
4) Nothing to be imported
Check
34 Which of the below is/... 1 Correct Answer Answer
Which of the below is/are not good use cases for Node.js?
1) CPU intensive applications.
2) I/O bound Applications
3) Data Streaming Applications
4) Data Intensive Real time Applications (DIRT)
5) JSON APIs based Applications
Check
35 Which is the correct w... 1 Correct Answer Answer
S.No Questions Score Status
Which is the correct way to define routerlink having static value of 'users'?
1) A.) <a routerLink="Users|lowercase">Users</a>
2) B.) <a routerLink="users">Users</a>
3) C.) <a [routerLink]="Users">Users</a>
4) A & B
5) All of the A ,B & C
Check
36 Which of the below is ... 1 Correct Answer Answer
Which of the below is a valid form control directive that provides validity
properties for an input box?
1) ngform
2) ngmodel
3) ngModel
4) None of the Above
Check
37 What does the first pa... 1 Correct Answer Answer
Check
38 Which is the correct w... 1 Correct Answer Answer
S.No Questions Score Status
Check
39 Which property of the ... 1 Correct Answer Answer
Check
40 What is the significan... 1 Correct Answer Answer
Check
41 State True or False. W... 1 Correct Answer Answer
S.No Questions Score Status
Check
42 Which service has to b... 0 Wrong Answer Answer
Check
43 For the below route ha... 1 Correct Answer Answer
For the below route handler written using Express, how can we fetch the
query parameter 'pid'?
app.get('/product',function(req,res){
//Access query parameter 'pid' here.
});
1) req.query.pid
2) req.params.pid
3) req.params['pid']
4) req.get('pid')
Check
44 Which of the below are... 1 Correct Answer Answer
S.No Questions Score Status
Check
45 Which of the below is/... 1 Correct Answer Answer
Check
46 Which of the below is ... 0 Wrong Answer Answer
Check
47 Which of the below is ... 1 Correct Answer Answer
S.No Questions Score Status
Which of the below is a correct way to handle get requests for the url '/users'
?Assume 'app' is a valid express server instance.
1) app.get('/users',function(request,response){
}
2) app.get('users',function(request,response){
}
3) app.route('/users',function(request,response){
}
4) None of the Above
Check
48 Which of the below is/... 1 Correct Answer Answer
Check
49 Select the correct mon... 1 Correct Answer Answer
Select the correct mongodb API to retrieve all records from the MongoDb
database from Node script?
1) fetch()
2) find()
3) findById()
4) findAll()
Check
50 Suppose we have the be... 1 Correct Answer Answer
S.No Questions Score Status
Go To Home
5/24/22, 6:43 PM Course
SG Sahil Gupta
S.No Questions Score Status
Check
1 Which of the below fla... 1 Correct Answer Answer
Check
2 What is the use of the... 1 Correct Answer Answer
Check
3 Which of the below are... 1 Correct Answer Answer
https://persistentpro.e-box.co.in/finish/177913 1/18
5/24/22, 6:43 PM Course
Check
4 Can we send JSON data ... 1 Correct Answer Answer
Check
5 Which of the below is ... 1 Correct Answer Answer
Which of the below is a valid form control directive that provides validity
properties for an input box?
1) ngform
2) ngmodel
3) ngModel
4) None of the Above
Check
6 Which of the below is/... 1 Correct Answer Answer
https://persistentpro.e-box.co.in/finish/177913 2/18
5/24/22, 6:43 PM Course
Check
7 Which module is intern... 1 Correct Answer Answer
Check
8 Which of the below dir... 1 Correct Answer Answer
Check
9 State True or False. W... 1 Correct Answer Answer
Check
10 Which of the below is ... 1 Correct Answer Answer
https://persistentpro.e-box.co.in/finish/177913 3/18
5/24/22, 6:43 PM Course
Which of the below is the right way to install the module "nodemon" so
that it can be executed as a command line tool?
1) npm install nodemon -g
2) npm install nodemon
3) npm install nodemon --save
4) npm install nodemon -dev
Check
11 Which command creates ... 1 Correct Answer Answer
Check
12 Which of the below is ... 0 Wrong Answer Answer
Check
13 Which of the below is ... 0 Wrong Answer Answer
https://persistentpro.e-box.co.in/finish/177913 4/18
5/24/22, 6:43 PM Course
Check
14 Which module needs to ... 0 Wrong Answer Answer
Which module needs to be imported in order to work with two way data
binding?
1) FormsModule
2) HttpModule
3) BrowserModule
4) Nothing to be imported
Check
15 Which property of the ... 1 Correct Answer Answer
Check
16 Select the correct mon... 1 Correct Answer Answer
https://persistentpro.e-box.co.in/finish/177913 5/18
5/24/22, 6:43 PM Course
Select the correct mongodb API to retrieve all records from the MongoDb
database from Node script?
1) fetch()
2) find()
3) findById()
4) findAll()
Check
17 Select the correct adv... 1 Correct Answer Answer
Check
18 Which of the below ste... 0 Wrong Answer Answer
Check
19 For the below route ha... 1 Correct Answer Answer
https://persistentpro.e-box.co.in/finish/177913 6/18
5/24/22, 6:43 PM Course
For the below route handler written using Express, how can we fetch the
query parameter 'pid'?
app.get('/product',function(req,res){
//Access query parameter 'pid' here.
});
1) req.query.pid
2) req.params.pid
3) req.params['pid']
4) req.get('pid')
Check
20 Suppose we have a clas... 1 Correct Answer Answer
Check
21 Which of the below is/... 0 Wrong Answer Answer
https://persistentpro.e-box.co.in/finish/177913 7/18
5/24/22, 6:43 PM Course
Which of the below is/are a valid CSS classes provided by Angular that
reflects validity of form controls?
1) .ng-valid
2) .valid
3) .ng-error
4) All of the Above
Check
22 Which event needs to b... 1 Correct Answer Answer
Check
23 Which of the below is ... 1 Correct Answer Answer
Check
24 Which module enables t... 1 Correct Answer Answer
https://persistentpro.e-box.co.in/finish/177913 8/18
5/24/22, 6:43 PM Course
Which module enables to start a Node server script in watch mode and
automatically restarts the server incase of changes?
1) Nodemon
2) Morgan
3) Express
4) Util
Check
25 Which of the below is ... 1 Correct Answer Answer
Check
26 Which of the below is/... 1 Correct Answer Answer
Check
27 Which below statement ... 0 Wrong Answer Answer
https://persistentpro.e-box.co.in/finish/177913 9/18
5/24/22, 6:43 PM Course
Check
28 Select the correct adv... 1 Correct Answer Answer
Check
29 Which of the following... 1 Correct Answer Answer
Check
30 Which of the below is ... 1 Correct Answer Answer
https://persistentpro.e-box.co.in/finish/177913 10/18
5/24/22, 6:43 PM Course
Check
31 Which of the below met... 1 Correct Answer Answer
Check
32 What is the return typ... 1 Correct Answer Answer
https://persistentpro.e-box.co.in/finish/177913 11/18
5/24/22, 6:43 PM Course
What is the return type of a get() call made using the HttpClient service for
an Http GET request?
1) Observable
2) Array
3) JSON
4) Object
Check
33 Which NPM command inst... 1 Correct Answer Answer
Check
34 Which of the below is/... 1 Correct Answer Answer
Check
35 What is the use of the... 0 Wrong Answer Answer
https://persistentpro.e-box.co.in/finish/177913 12/18
5/24/22, 6:43 PM Course
What is the use of the method stat() in the File System API of Node?
1) It provides file properties such as size in bytes, creation time, modified time
etc.
2) It is used to open a file
3) It is used to read data from the file
4) None of the Above
Check
36 Which of the below is ... 1 Correct Answer Answer
Check
37 Which of the following... 1 Correct Answer Answer
https://persistentpro.e-box.co.in/finish/177913 13/18
5/24/22, 6:43 PM Course
Which of the following is the valid import to inject the HttpClient service
that enables to make HTTP requests?
1) import {HttpModule} from '@angular/core'
2) import {HttpClient} from '@angular/common/http'
3) import {HttpClient} from 'rxjs'
4) None of the Above
Check
38 Which of the below ann... 0 Wrong Answer Answer
Check
39 Select the correct Mon... 1 Correct Answer Answer
Check
40 Which of the below is ... 1 Correct Answer Answer
https://persistentpro.e-box.co.in/finish/177913 14/18
5/24/22, 6:43 PM Course
Check
41 What is the significan... 1 Correct Answer Answer
Check
42 Which service has to b... 0 Wrong Answer Answer
Check
43 State True or False. S... 1 Correct Answer Answer
https://persistentpro.e-box.co.in/finish/177913 15/18
5/24/22, 6:43 PM Course
Check
44 Which NPM command inst... 1 Correct Answer Answer
Check
45 Suppose a MovieCard co... 0 Wrong Answer Answer
Check
46 Suppose we have the be... 0 Wrong Answer Answer
https://persistentpro.e-box.co.in/finish/177913 16/18
5/24/22, 6:43 PM Course
Check
47 Which is the right way... 0 Wrong Answer Answer
Check
48 Which is the correct w... 0 Wrong Answer Answer
Which is the correct way to define routerlink having static value of 'users'?
1) A.) <a routerLink="Users|lowercase">Users</a>
2) B.) <a routerLink="users">Users</a>
3) C.) <a [routerLink]="Users">Users</a>
4) A & B
5) All of the A ,B & C
https://persistentpro.e-box.co.in/finish/177913 17/18
5/24/22, 6:43 PM Course
Check
49 What does the first pa... 1 Correct Answer Answer
Check
50 Which of the below ope... 0 Wrong Answer Answer
Go To Home
https://persistentpro.e-box.co.in/finish/177913 18/18