Interview Questions

Q:

Explain the different types of errors in PHP.

Answer

Notices, Warnings and Fatal errors are the types of errors in PHP


Notices: 


Notices represents non-critical errors, i.e. accessing a variable that has not yet been defined. By default, such errors are not displayed to the user at all but whenever required, you can change this default behavior.


Warnings: 


Warnings are more serious errors but they do not result in script termination. i.e calling include() a file which does not exist. By default, these errors are displayed to the user.


Fatal errors: 


Fatal errors are critical errors i.e. calling a non-existent function or class. These errors cause the immediate termination of the script.

Report Error

View answer Workspace Report Error Discuss

Subject: PHP

0 2677
Q:

How are documents accessed and manipulated in XML?

Answer

The XML DOM (document object model) is used the access and management of xml. It is a platform that is language neutral and allows a program or a script to dynamically access a document. It also allows the updation of content as well as the structure and style of the document. It is responsible for the defining of the object and properties of all xml elements as well as to define the methods for their access. There are various methods that can be used in xml dom such as:


- getElementsByTagName: used to call a specific user defined tag.


- setAttribute: used to change the value of an existing attribute.


- appendChild: used to add a child node to another node.


 

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

1 2677
Q:

What is a prompt box?

Answer

A prompt box allows the user to enter input by providing a text box.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

1 2676
Q:

A small text file on the client machine either in the client’s file system or memory of client browser session is called

A) View State B) Cookies
C) QueryString D) None
 
Answer & Explanation Answer: B) Cookies

Explanation:

A cookie is a small text file on the client machine either in the client’s file system or memory of client browser session.

Report Error

View Answer Report Error Discuss

Filed Under: .NET
Job Role: Software Architect

0 2676
Q:

Which of the following terms is not used in banking sector?

A) Daily Product Basis B) Remittancel
C) Cash Reserve D) Actuary
 
Answer & Explanation Answer: D) Actuary

Explanation:

Actuary is the term which is not used in banking sector.

Report Error

View Answer Report Error Discuss

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

2 2675
Q:

Why static method can not call non static method of the same class?

Answer

bcoz the static method does not contains the 'this' reference.

Report Error

View answer Workspace Report Error Discuss

Subject: Java

0 2674
Q:

What are the main components of .NET Framework?

Answer

.NET Framework provides enormous advantages to software developers in comparison to the advantages provided by other platforms. Microsoft has united various modern as well as existing technologies of software development in .NET Framework. These technologies are used by developers to develop highly efficient applications for modern as well as future business needs. The following are the key components of .NET Framework:

 =>   .NET Framework Class Library
 =>   Common Language Runtime
 =>   Dynamic Language Runtimes (DLR)
 =>   Application Domains
 =>   Runtime Host
 =>   Common Type System
 =>   Metadata and Self-Describing Components
 =>   Cross-Language Interoperability
 =>  .NET Framework Security
 =>   Profiling
 =>   Side-by-Side Execution

Report Error

View answer Workspace Report Error Discuss

Subject: .NET

0 2674
Q:

How do you display last 5 records in DB2?

Answer

SELECT * FROM table_name ORDER BY column_name desc Fetch first 5 rows only;

Report Error

View answer Workspace Report Error Discuss

0 2671