IT Trainer Questions


Q:

How to convert JSON Text to a JavaScript Object ?

Answer

One of the most common use of JSON is to fetch JSON data from a web server (as a file or as an HttpRequest), convert the JSON data to a JavaScript object, and then it uses the data in a web page.


The eval() function can compile and execute any JavaScript. This represents a potential security problem.


It is safer to use a JSON parser to convert a JSON text to a JavaScript object. A JSON parser will recognize only JSON text and will not compile scripts.

Report Error

View answer Workspace Report Error Discuss

2 4376
Q:

Which of the following is not a macronutrient?

A) Carbohydrates B) Calcium
C) Chlorine D) Proteins
 
Answer & Explanation Answer: C) Chlorine

Explanation:

Nutrients that are needed in large amounts are called Macronutrients.

 

There are three macronutrients required by humans:

1. carbohydrates (sugar),

2. lipids (fats), and

3. proteins.

 

Each of these macronutrients provides energy in the form of calories.

 

Some other macronutrients are: nitrogen (N), phosphorus (P), potassium (K), calcium (Ca), sulfur (S), magnesium (Mg), sodium (Na).

Report Error

View Answer Report Error Discuss

Filed Under: General Science
Exam Prep: AIEEE , Bank Exams , CAT , GATE
Job Role: Analyst , Bank Clerk , Bank PO , IT Trainer

4 4367
Q:

MS-EXCEL is based on

A) OS/2 B) UNIX
C) WINDOWS D) DOS
 
Answer & Explanation Answer: C) WINDOWS

Explanation:

Microsoft Excel is a spreadsheet developed by Microsoft for Windows, macOS, Android and iOS. It features calculation, graphing tools, pivot tables, and a macro programming language called Visual Basic for Applications.

Report Error

View Answer Report Error Discuss

4 4366
Q:

What does Maturation refers to

Answer

Maturation refers to the ways in which we grow and develop throughout the lifespan.


 





      •  Maturation is the process of becoming mature; the emergence of individual and behavioral characteristics through growth processes over time.



Report Error

View answer Workspace Report Error Discuss

55 4353
Q:

What do you mean by friend function in C++ ?

Answer

Friends can be either functions or other classes. The class grants friends unlimited access privileges.

* The declaration of the function should be preceded by the keyword 'friend'.
* The function definition will not use the keyword or the scope operator '::'.


Thus, a friend function is an ordinary function or a member of another class.

Report Error

View answer Workspace Report Error Discuss

15 4340
Q:

From a group of 7 boys and 6 girls, five persons are to be selected to form a team, so that at least 3 girls are there in the team. In how many ways can it be done?

A) 427 B) 531
C) 651 D) 714
 
Answer & Explanation Answer: B) 531

Explanation:

Given in the question that, there are 7 boys and 6 girls. 

Team members = 5

Now, required number of ways in which a team of 5 having atleast 3 girls in the team = 

6C3  x 7C2  + 6C4 x 7C1 + 6C5= 6x5x43x2x1 x 7x62x1 + 6x5x4x34x3x2x1 x 7 + 6x5x4x3x25x4x3x2x1= 420 + 105 + 6= 531.

Report Error

View Answer Report Error Discuss

5 4332
Q:

What is C-Sharp (C#) and its advantages ?

Answer

C# is a type-safe, managed and object oriented language, which is compiled by .Net framework for generating intermediate language (IL).


Below are some of the features supported in C# -
* Constructors and Destructors
* Properties
* Passing Parameters
* Arrays
* Main
* XML Documentation and
* Indexers


Below are the advantages of C# -


* Easy to learn
* Object oriented
* Component oriented
* Part of .NET framework

Report Error

View answer Workspace Report Error Discuss

Subject: .NET
Job Role: IT Trainer , Analyst

1 4319
Q:

If a Siren sounds for every 5 seconds, how many times will it sound in ¾ of an hour?

A) 541 times B) 540 times
C) 450 times D) 275 times
 
Answer & Explanation Answer: A) 541 times

Explanation:

There are 60 minutes in an hour.

In ¾ of an hour there are (60 × ¾) minutes = 45 minutes.

In ¾ of an hour there are (60 × 45) seconds = 2700 seconds.

Siren sounds for every 5 seconds.

In 2700 seconds = 2700/5 = 540 times.

The count start after the first sound, the Siren will sound 541 times in ¾ of an hour.

Report Error

View Answer Report Error Discuss

Filed Under: Clock puzzles
Exam Prep: GRE , GATE , CAT , Bank Exams
Job Role: Project Manager , IT Trainer , Bank PO , Bank Clerk

10 4318