IT Trainer Questions


Q:

What is the use of 'pretty printer' ?

Answer

To format the ABAP code 'pretty printer' is used.

Report Error

View answer Workspace Report Error Discuss

Subject: ABAP Exam Prep: Bank Exams
Job Role: Analyst , IT Trainer , Project Manager

1 1317
Q:

How can you avoid callback hells ?

Answer

There are lots of ways to solve the issue of callback hells:


1. Modularization: break callbacks into independent functions
2. Use a control flow library, like async
3. Use generators with Promises
4. Use async/await (note that it is only available in the latest v7 release and not in the LTS version)

Report Error

View answer Workspace Report Error Discuss

Subject: Java
Job Role: Analyst , IT Trainer

3 2197
Q:

What is an error-first callback ?

Answer

Error-first callbacks are used to pass errors and data as well. You have to pass the error as the first parameter, and it has to be checked to see if something went wrong. Additional arguments are used to pass data.


 


fs.readFile(filePath, function(err, data) {
if (err) {
// handle the error, the return is important here
// so execution stops here
return console.log(err)
}
// use the data object
console.log(data)
})

Report Error

View answer Workspace Report Error Discuss

2 2879
Q:

What is DocumentDB ?

Answer

DocumentDB is a NoSQL document-oriented database and records saves in key-value pairs. It's same as the other NoSQL document-oriented such as MongoDB.

Report Error

View answer Workspace Report Error Discuss

Subject: Oracle
Job Role: Analyst , IT Trainer

1 3293
Q:

Which class is used to indicate Black Navigation Bar ?

A) .navbar-inverse B) .navbar-black
C) .navbar-dark D) .navbar-default
 
Answer & Explanation Answer: A) .navbar-inverse

Explanation:

.navbar-inverse is used to display in black color.

Report Error

View Answer Report Error Discuss

Filed Under: .NET
Exam Prep: Bank Exams
Job Role: Analyst , IT Trainer

2 3776
Q:

What are Spring beans ?

Answer

The Spring Beans are Java Objects that form the backbone of a Spring application. They are instantiated, assembled, and managed by the Spring IoC container. These beans are created with the configuration metadata that is supplied to the container.
Beans defined in spring framework are singleton beans. There is an attribute in bean tag named "singleton" if specified true then bean becomes singleton and if set to false then the bean becomes a prototype bean. By default it is set to true. So, all the beans in spring framework are by default singleton beans.

Report Error

View answer Workspace Report Error Discuss

Subject: Java
Job Role: Analyst , IT Trainer

4 2864
Q:

A computer assisted method for the recording and analyzing of existing or hypothetical systems is

A) Data transmission B) Data capture
C) Data flow D) Data processing
 
Answer & Explanation Answer: C) Data flow

Explanation:
Report Error

View Answer Report Error Discuss

7 6340
Q:

What are intents, shared preference in android ?

Answer

An Android Intent is an abstract description of an operation to be performed. It can be used with startActivity to launch an Activity, broadcastIntent to send it to any interested BroadcastReceiver components, and startService(Intent) or bindService(Intent, ServiceConnection, int) to communicate with a background Service.The intent itself, an Intent object, is a passive data structure holding an abstract description of an operation to be performed.
Android provides many ways of storing data of an application. One of this way is called Shared Preferences. Shared Preferences allow you to save and retrieve data in the form of key,value pair.


In order to use shared preferences, you have to call a method getSharedPreferences() that returns a SharedPreference instance pointing to the file that contains the values of preferences.

Report Error

View answer Workspace Report Error Discuss

3 2084