Interview Questions

Q:

Write an SQL Query find number of employees according to gender whose DOB is between 01/01/1960 to 31/12/1975.

Answer

SELECT COUNT(*), sex from Employees  WHERE  DOB BETWEEN ‘01/01/1960 ' AND ‘31/12/1975’  GROUP BY sex;

Report Error

View answer Workspace Report Error Discuss

Subject: SQL

17 17186
Q:

In tree construction which is the suitable efficient data structure?

A) Array B) Linked list
C) Stack D) Queue
 
Answer & Explanation Answer: B) Linked list

Explanation:

Linked list is the efficient datastructure in tree construction

Report Error

View Answer Report Error Discuss

Filed Under: C++

7 17135
Q:

Which of the following attribute can hold the JavaScript version?

A) script B) version
C) language D) none of the above
 
Answer & Explanation Answer: C) language

Explanation:

Language attribute contains the javascript versions.

Report Error

View Answer Report Error Discuss

Filed Under: Java
Job Role: Analyst , IT Trainer , Software Architect

9 17054
Q:

Which HTML attribute is used to define inline styles?

 

A) <header> B) <strong>
C) <style> D) <alt>
 
Answer & Explanation Answer: C) <style>

Explanation:

The style attribute specifies an inline style for an element. The style attribute will override any style set globally,

 

e.g. styles specified in the <style> tag or in an external style sheet.

 

Report Error

View Answer Report Error Discuss

Filed Under: Web Technology
Exam Prep: Bank Exams

3 16827
Q:

The total sum of the goods and services produced in a country in a year, minus depreciation is called as ________.

A) Net Domestic Product B) Gross National Income
C) Gross Domestic Product D) Net National Product
 
Answer & Explanation Answer: A) Net Domestic Product

Explanation:

Gross Domestic Product : 

It is the total value of all final goods and services produced within the boundary of country during the given period of time. 

Gross National Product :

It is the total value of the total output or production of final goods and services produced by the nationals of a country during a given period of time. 

Gross National Income : 

It is the total domestic and foreign output claimed by residents of a country, consisting of gross domestic product (GDP) plus factor incomes earned by foreign residents, minus income earned in the domestic economy by non-residents.

Net National Product :

The total value of goods produced and services provided in a country during one year, after depreciation of capital goods has been allowed for.

Report Error

View Answer Report Error Discuss

Filed Under: Bank Interview
Exam Prep: Bank Exams , CAT
Job Role: Bank Clerk , Bank PO

21 16793
Q:

What is the difference between debenture and preference share ?

Answer

The difference between Debentures and Preferential Shares is as follows:

1) Person holding debentures has owed money to a company, while Preferential Shareholder could be considered as a partial owner of the company.

2) A Preference shareholder earns dividends if the company is making profits, however a debenture holder needs to be paid irrespective of making profits or losses.

3) A debenture holder would be paid the capital invested at the end of a stipulated term. A preference shareholder is not promised return of capital invested; instead he earns dividends till the time the company exists and is profitable.

4) A debenture holder earns interest on the capital invested till the capital is not returned, while a preference shareholder is paid dividends till the time the company exists.

Report Error

View answer Workspace Report Error Discuss

Subject: Accounts Payable

15 16781
Q:

Which of the following is not a keyword?

A) assert B) pass
C) eval D) nonlocal
 
Answer & Explanation Answer: C) eval

Explanation:

"eval" is not a keyword and is can be used as variable.

Report Error

View Answer Report Error Discuss

Filed Under: Java

19 16631
Q:

Which of the following best describes JavaScript?

A) a scripting language precompiled in the browser. B) an object-oriented scripting language
C) a low-level programming language. D) a compiled scripting language.
 
Answer & Explanation Answer: B) an object-oriented scripting language

Explanation:

JavaScript, often abbreviated as JS, is a high-level, interpreted programming language that conforms to the ECMAScript specification.

 

JavaScript has

* curly-bracket syntax,

* dynamic typing,

* prototype-based object-orientation, and

* first-class functions.

 

Uses :

It is well-known as the scripting language for Web pages, many non-browser environments also use it, such as Node.js, Apache CouchDB and Adobe Acrobat.

Report Error

View Answer Report Error Discuss

Filed Under: Java
Job Role: IT Trainer

3 15925