Interview Questions

Q:

How many constructors can a class have?

A) 1 B) 2
C) 4 D) None of the above
 
Answer & Explanation Answer: D) None of the above

Explanation:

A class can have any number of constructors. If a class have more than one constructor, we call it as the constructor is overloaded.

Report Error

View Answer Report Error Discuss

Filed Under: Java
Job Role: Database Administration , IT Trainer

9 13415
Q:

Write an SQL Query to check whether date passed to Query is date of given format or not.

Answer

SQL has IsDate() function which is used to check passed value is date or not of specified format ,it returns 1(true) or 0(false) accordingly.


SELECT  ISDATE('1/08/13') AS "MM/DD/YY";


It will return 0 because passed date is not in correct format.

Report Error

View answer Workspace Report Error Discuss

Subject: SQL

9 13404
Q:

Explain static and dynamic memory allocation with an example each.

Answer

When amount of memory to be allocated is known beforehand i.e. at the the time of compilation, it is known as Static Memory Allocation. Once the memory is allocated statically, it cannot be deallocated during program run. So it leads to wastage of storage space.


Example:


int A[100];


 


When amount of memory to be allocated is not known beforehand, rather it is determined at the time of program run, it is called Dynamic Memory Allocation. It leads to efficient utilization of storage space.


Example:


cout << " Enter number of elements: ";


cin >> N;


int *A = new int[N]; // dynamic memory allocation

Report Error

View answer Workspace Report Error Discuss

Subject: C++

13 13313
Q:

What are the types of Collision Resolution Techniques and the methods used in each of the type?

Answer

Open addressing (closed hashing),


The methods used include: Overflow block,


 Closed addressing (open hashing)


The methods used include: Linked list, Binary tree…

Report Error

View answer Workspace Report Error Discuss

Subject: Java

16 13301
Q:

Which class provides an interface for invoking JavaScript methods and examining JavaScript properties.

A) ScriptObject B) JSObject
C) JavaObject D) Jobject
 
Answer & Explanation Answer: B) JSObject

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Web Technology

4 13171
Q:

Which of the following is a comparison operator in SQL?

A) = B) <>
C) ` D) /
 
Answer & Explanation Answer: A) =

Explanation:

The comparison operator that is used in SQL is '='. Comparison operators test whether two expressions are the same. Comparison operators can be used on all expressions except expressions of the text, ntext, or image data types.

Report Error

View Answer Report Error Discuss

Filed Under: SQL
Exam Prep: AIEEE , Bank Exams
Job Role: Analyst , Bank Clerk , Bank PO , Database Administration , IT Trainer

3 13019
Q:

What is STPI ? why STPI knowledge required in Accounts Payable?

Answer

Software Technology Parks of India (STPI).Some of the software service providers will get exemption from STPI for their software exports. In accounts payable may be we need to define the vendor STPI location wise.


In India we have different STPI location. If one vendor supplying services or materials to all OR some of the STPI locations we need to maintain the same vendor STPI wise.  

Report Error

View answer Workspace Report Error Discuss

Subject: Accounts Payable

18 12833
Q:

In preparing a bank reconciliation, outstanding checks are

A) Deducted from the balance sheet B) Added to the bank balance
C) Deducted from the bank balance D) Added to the balance sheet
 
Answer & Explanation Answer: A) Deducted from the balance sheet

Explanation:

If an outstanding check of the previous month clears the bank (is paid by the bank) in the current month, you simply remove that check from the list of outstanding checks.

If an outstanding check of the previous month does not clear the bank in the current month, the check will remain on the list of outstanding checks until the month that it does clear the bank.

In the bank reconciliation process, the total amount of the outstanding checks is deducted from the balance appearing on the bank statement.

Report Error

View Answer Report Error Discuss

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

4 12629