Professional Documents
Culture Documents
Is A Life Cycle Hook Called by Angular To Indicate That Angular Is Done Creating The Component
Is A Life Cycle Hook Called by Angular To Indicate That Angular Is Done Creating The Component
8. Select the true statements about component and directive choose all that apply…
a. =>123 , 234 , 13 , 24
9. Which of the below is true about the ngoninit() Life cycle hook
a. ngOnInit is a life cycle hook called by Angular to indicate that Angular is done
creating the component.
10. Which of the following statements selectors selects all paragraph elements whose…
=>p[lang=”css”]
=>res.render
14. Which of the below are true about the inline and block…
=>
15. Var myVar = 12;
myVar = “test”;
console.log(myVar);
=> error
16. What is the value of x ?
Var y;
Var x = “100” + y; =>error
17. You are requesting for students data from the server …
response.data.slice(0,10)
18. It is a proxy for a value that will eventually become available….
=>promise
19. Which of the following query will list the user in ascending …?
=>db.users.find({}).sort{(name:1)};
20. Assume that you are developing an online E-commerce application
Sessionstorage is read only , closing tab
21. Katie is developing a web application for online training….
Trainings.filter(
22. Import { injectable } from ‘@angular/core’;
provideIn: ‘root’,…
in the above code snippet, the provided property in the @injection
=>declares that this service should be created by the root application injector
23. Airway intl. is a leading airways in the asia ….
=>app.use(express.json()) , app.use(express.urlextended({extended:true})
24. Considering the below. Which of the options will create a HTTP server ?
Var http_server = require ..
=> http_server.createServer
25. What is the response from the server if the request url is …
Var http = require…
Login successful
26. You are working as backend developer for a music application …
www.mymusic.com
=>
27. How do you print value of an environment variable NODE_ENV …
=>process_env.NODE_EV
28. Let ivar=50;
If(true){ let ivar=90; }
50
29. The ___ module is to be imported … [{ngModule}]
formsmodule
30. The command to check the globally installed dependencies using npm is ___
=> npm list -g -
31. How you can have a one way of passing data …
By adding an @input property on child
32. Choose the option to change the text in a paragraph dynamically . …
=>innerText
33. What would be output generated by …
Employees = { fname : ‘Sam’…
=>developer
34. … having a positive integer for start in slicepipe ?
=> return the item at start index and all items after in the list or string expression
35. Function f1(…list) // … is the SPREAD Operator ..
undefined
36. Galaxy cinemas wants to develop … MEAN full stack
=>body-parser
37. Which of the below will copy a file test.file into newFile.file in Node.js ?=>createReadStream
38. Var v1 = 10;
v2 = 20;…
39. Var a;
Function fun1(a) ….
=>undefined
40. Seema would like to understand….
a. =>block element starts a line
41. Fill the blank
X = document…
catch(err) {
message.innerHTML = "Error: " + err + ".";
}
42. Which statement is true about media queries in CSS3?
AB
=>AB
43. Ankit is a UI developer
=>
=>promise
a. =>
70. What is the output of having a positive integer for start in slicepipe?
Return an item at start index and all items after in the list or string exp.
71. What is output of below code
Let ivar=50;
If(true){
Let ivar=90;
}
Console.log(ivar)
50
72. What type do most methods on Httpclient return?
=>observable
73. From below code snippet,identify the database name and collection name
Var mongodb=require(‘mongodb’);
76. A webpage that you are developing will accessed from various types of devices.
@media screen and (min-width:100px)and (max-width:480px)
77. You are requesting for stundents data from the server using XMLHttpRequest. There are 100
students..
Response.data(10)
78. Which of the foll is true about pipeline streams
All of the above
79. Which of below is correct HTML markup to check if a valid three-digit number is supplied as
input
<input id=”txtValue” type=”text” pattern=”[0-9}{3}”/>
80. Katie is developing a web application for online training…….which csss property does she
need to set?
Padding
81. Dinesh is a developer working on front-end angular application for book store…
Line 1
82. Katie is developing a web application for online training…which of below values if set to
position property allows her to do fix elements in the desired place?
Absolute, fixed
83. Which of following is the correct output for the javascript code
Var grade=’Z’
Var result=0……
document.write(result)
0
84. Which statement is true about media queries in CSS3?
a.Define rule..
b.The media type “printer”
Both A and B
85. Annie is a full stack developer working on the mean stack set of technologies..
res.sendFile()
86. Assume that you have been assigned with a task of including a checkout page in online
shopping portal
Routeparams
87. What is the output of below code snippet when executed
Let Employee=function(empno,empname,age,salary){
…..
Emp1.displayEmployee();
90. Which of following query will list the user in ascending order of their names
db.users.find({}).sort({name:1})
91. import{injectable} from ‘@ngular/core’,
export class Productservice{
…….
In above code snippet , the provided property in the @injectable decorator
declares that this service should be created by the root application injector
92. predict output for following MongoDB command
db.products.updateMany….
sets the filtertype as least price for all the documents whose price is less than or
equals to 5000
93. Galaxy cinemas wants to develop…… arun is new team member assigned to work in server
side of galaxy cinemas..
In line 3, we are compiling schemas into model so that we can construct the
documents
94. You are developing a feature to display list of players of respective team using angular. ..
Which of the lifecycle hook methods can be used in players component
ngOnChanges()