Job Roles

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 4209
Q:

What is JSON ?

Answer

* JSON full form is JavaScript Object Notation.
* JSON is a lightweight text-based open standard designed for human-readable data interchange.
* It is derived from the JavaScript programming language for representing simple data structures and associative arrays, called objects.
* And JSON is language-independent, with parsers available for virtually every programming language.
* Uses conventions that are familiar to programmers of the C-family of languages, including C, C++, C#, Java, JavaScript, Perl, Python,php
* The JSON format is often used for serializing and transmitting structured data over a network connection.
* When third party data interchane(REST Services) then JSON may used there LIKE SHOP.
* It is primarily used to transmit data between a server and web application, serving as an alternative to XML.


 

Report Error

View answer Workspace Report Error Discuss

2 4078
Q:

A train 125 m long passes a man, running at 5 km/hr in the same direction in which the train is going, in 10 seconds. The speed of the train is ?

A) 45 kmph B) 25 kmph
C) 30 kmph D) 50 kmph
 
Answer & Explanation Answer: D) 50 kmph

Explanation:

Speed of the train relative to man = (125/10) m/sec = (25/2) m/sec.
[(25/2) x (18/5)] km/hr = 45 km/hr.
Let the speed of the train be 'S' km/hr.
Then, relative speed = (S - 5) km/hr.
S - 5 = 45 => S = 50 km/hr.

Report Error

View Answer Report Error Discuss

Filed Under: Problems on Trains
Exam Prep: AIEEE , Bank Exams , CAT , GATE
Job Role: Bank Clerk , Bank PO

48 41500
Q:

The construction of world’s largest optical telescope has started in which country  ?

A) China B) Russia
C) Chile D) India
 
Answer & Explanation Answer: C) Chile

Explanation:

The construction of the world’s largest optical telescope has started in northern Chile, which is expected to begin operating in 2024. The Extremely Large Telescope (ELT) is being built by the European Southern Observatory (ESO) and will have a main mirror that is 39m in diameter. The telescope will be positioned on top of Cerro Armazones – a 3046-metre long mountain Chile. It will tackle a wide range of scientific challenges, including probing Earth-like exoplanets for signs of life, studying the nature of dark energy and dark matter, and observing the universe’s early stages to explore humans’ origins.

Report Error

View Answer Report Error Discuss

Filed Under: Longest, Shortest, Deepest
Exam Prep: Bank Exams
Job Role: Bank Clerk

14 4425
Q:

International Day of United Nations Peacekeepers was observed on

A) 28 May B) 29 May
C) 30 May D) 31 May
 
Answer & Explanation Answer: B) 29 May

Explanation:

The United Nations General Assembly designated 29 May as the International Day of United Nations Peacekeepers. The day has two purposes: To honour the memory of the UN peacekeepers who have lost their lives in the cause of peace. To pay tribute to all the men and women who have served and continue to serve in UN Peacekeeping operations for their high level of professionalism, dedication and courage. The theme for the 2017 International Day of UN Peacekeepers is “Investing in Peace Around the World“.

Report Error

View Answer Report Error Discuss

Filed Under: Important Days and Years
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Bank Clerk

5 4478
Q:

A tap can fill a tank in 6 hours. After half the tank is filled three more similar taps are opened. What is the total time taken to fill the tank completely ?

A) 4 hrs 15 min B) 3 hrs 24 min
C) 4 hrs 51 min D) 3 hrs 45 min
 
Answer & Explanation Answer: D) 3 hrs 45 min

Explanation:

Time taken by one tap to fill half of the tank = 3 hrs.

Part filled by the taps in 1 hour = 4 x 1/6 = 2/3

Remaining part = 1 - 1/2 = 1/2

2/3 : 1/2 :: 1 : p

p = 1/2 x 1 x 3/2 = 3/4 hrs. i.e., 45 min

So, total time taken = 3 hrs 45 min.

Report Error

View Answer Report Error Discuss

Filed Under: Pipes and Cistern
Exam Prep: AIEEE , Bank Exams , CAT , GATE
Job Role: Bank Clerk , Bank PO

13 6528
Q:

Find the odd one out of the series ?

35, 48, 54, 63, 81, 105

A) 63 B) 48
C) 35 D) 81
 
Answer & Explanation Answer: C) 35

Explanation:

48, 54, 63, 81 and 105 are divisible by 3 but not 35.

Report Error

View Answer Report Error Discuss

Filed Under: Odd Man Out
Exam Prep: AIEEE , Bank Exams , CAT , GATE
Job Role: Bank Clerk , Bank PO

12 37488
Q:

45 men working 9 hours per day dig 40 m deep. How many extra men should be put to dig to a depth of 56 m working 7 hours per day ?

A) 36 B) 61
C) 48 D) 54
 
Answer & Explanation Answer: A) 36

Explanation:

(45 x 9)/40 = (M x 7)/56 => M = 81

=> 81 – 45 = 36

Report Error

View Answer Report Error Discuss

Filed Under: Time and Work
Exam Prep: AIEEE , Bank Exams , CAT , GATE
Job Role: Bank Clerk , Bank PO

6 8897