Interview Questions

Q:

What is Constructor?

Answer

Constructor is not a special method.


Constructor is block of code that is executed automatically whenever object of the class is created.

Report Error

View answer Workspace Report Error Discuss

Subject: Java

0 1705
Q:

What is top level class?

Answer

Top level class is also called outer class. It is not defined inside any class.


Ex:


class A {  //top level class


 


}

Report Error

View answer Workspace Report Error Discuss

Subject: Java

0 1705
Q:

What is the difference between JavaScript and Jscript?

Answer

Both JavaScript and Jscript are almost similar. JavaScript was developed by Netscape. Microsoft reverse engineered Javascript and called it JScript.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1705
Q:

What is polymorphism?

Answer

It is the ability of an object to behave differently on different situations for the same message.

Report Error

View answer Workspace Report Error Discuss

Subject: Java

0 1704
Q:

How would you automatically transfer your visitors to a new web page?

Answer

- You can do it with the help of meta tag mentioned below: 


<META HTTP-EQUIV="Refresh" CONTENT="2"; URL="https://www.yoursite.com"> 


- Place this tag between <HEAD></HEAD> . 


- It will load yousite.com in 2 seconds.

Report Error

View answer Workspace Report Error Discuss

0 1703
Q:

A supply curve slopes upward because

A) an increase in price gives producers an incentive to supply a larger quantity. B) the quantity supplied of most goods and services increases over time.
C) an increase in input prices increases supply. D) as more is produced, total cost of production falls.
 
Answer & Explanation Answer: A) an increase in price gives producers an incentive to supply a larger quantity.

Explanation:

The supply curve slopes upward because for reflecting the higher price needed to cover the higher marginal cost of production. 

Report Error

View Answer Report Error Discuss

Filed Under: Marketing and Sales
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

0 1702
Q:

What are Cursors? Explain Types of cursors in PL/SQL

Answer

Cursors help you manipulate the information retrieved by select statements. This can be done by assigning a name to the cursor.


Example:


CURSOR emp_cur 


IS 


SELECT emp_number from employee_tbl where employee_name = name_in;


Types of Cursors:


Implicit cursors- These cursors are not declared by the programmer. They are issued when the SQL statement is executed. The open, close and fetching is done by itself.


Example:


UPDATE employee SET salary = salary * 2.1;


Here, an implicit cursor is issued to identify the set of rows in the table which would be affected by the update.


 


Explicit cursors- These cursors are defined by programmer. They are used in queries that return multiple rows.


Example:


CURSOR emp_cur 


IS 


SELECT emp_number from employee_tbl where employee_name = name_in;

Report Error

View answer Workspace Report Error Discuss

Subject: Oracle

1 1702
Q:

What are JavaScript types?

Answer

Number, String, Boolean, Function, Object, Null, Undefined.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1702