Interview Questions

Q:

How to read and write a file using javascript?

Answer

Files can be read and written by using java script functions – fopen(),fread() and fwrite().


The function fopen() takes two parameters – 1. Path and 2. Mode (0 for reading and 3 for writing). The fopen() function returns -1, if the file is successfully opened.


Ex: file=fopen(getScriptPath(),0);


 


The function fread() is used for reading the file content.


Ex: str = fread(file,flength(file));


 


The function fwrite() is used to write the contents to the file.


Ex(): file = fopen("c:\MyFile.txt", 3);// opens the file for writing


fwrite(file, str);// str is the content that is to be written into the file.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 6485
Q:

What is the code-behind feature in ASP.NET?

Answer

The code-behind feature of ASP.NET enables you to divide an ASP.NET page into two files - one consisting of the presentation data, and the second, which is also called the code-behind file, consisting of all the business logic. The presentation data contains the interface elements, such as HTML controls and Web server controls, and the code-behind contains the event-handling process to handle the events that are fired by these controls. The file that contains the presentation data has the .aspx extension. The code behind file has either the .cs extension (if you are using the programming language C#) or the .vb (if you are using the programming language Visual Basic .NET) extension.

Report Error

View answer Workspace Report Error Discuss

Subject: .NET

1 6457
Q:

What is the meaning of VSAM RETURN-CODE 28?

Answer

Out of space condition is raised.

Report Error

View answer Workspace Report Error Discuss

1 6392
Q:

Which of the following is the oldest Joint Stock Bank of India  ?

A) Patiala Bank B) Punjab National Bank
C) Bank of India D) Allahabad Bank
 
Answer & Explanation Answer: D) Allahabad Bank

Explanation:

Oldest Joint Stock bank of India was Bank of Upper India that was established in 1863. But this bank failed in 1913. India's Oldest Joint Stock Bank which is still working is Allahabad Bank. It is also known as India's oldest public sector bank.

Report Error

View Answer Report Error Discuss

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

2 6371
Q:

What is the differences between ABAP and OOABAP. In which situation we use OOABAP?

Answer

OOABAP is used to develop BSP/PCUI applications and also anthing involved object oriented like BADIs, SmartForms..etc.where as ABAP is used to develop traditional programs in R/3.

Report Error

View answer Workspace Report Error Discuss

Subject: ABAP

2 6357
Q:

Which of these class have only one field 'TYPE' ?

A) Run time B) Process
C) Void D) System
 
Answer & Explanation Answer: C) Void

Explanation:

The Void class has one field, TYPE, which holds a reference to the Class object for the type void.

Report Error

View Answer Report Error Discuss

Filed Under: Java
Job Role: Analyst , IT Trainer

6 6347
Q:

What is QUIESCE?

Answer

A QUIESCE flushes all DB2 buffers on to the disk. This gives a correct snapshot of the database and should be used before and after any IMAGECOPY to maintain consistency.

Report Error

View answer Workspace Report Error Discuss

0 6345
Q:

What are the Web Form Events available in ASP.NET?

Answer

Page_Init


Page_Load


Page_PreRender


Page_Unload


Page_Disposed


Page_Error


Page_AbortTransaction


Page_CommitTransaction 


Page_DataBinding

Report Error

View answer Workspace Report Error Discuss

Subject: .NET
Job Role: Software Architect

1 6344