Interview Questions

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 6459
Q:

Does javascript have the concept level scope?

Answer

No. JavaScript does not have block level scope, all the variables declared inside a function possess the same level of scope unlike c,c++,java.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 6399
Q:

Which containers use a border Layout as their default layout ?

Answer

The window, Frame and Dialog classes use a border layout as their default layout.

Report Error

View answer Workspace Report Error Discuss

Subject: Java

8 6398
Q:

Describe a stressful situation and how you handled it?

Answer

The interviewer wants to know how you will deal in stressful situations by asking this question.


Sample answer:


I react to situations rather than being stressful. I want to make the situations not to be stress for anybody. If a situation seems overwhelming, I mentally break it up into smaller steps and just focus on reaching each one on the way to accomplishing the larger task. Once I had a situation that in the same week i had to submit two projects which is very pressure to me. As i was skilled in multiple tasks, i just break down all the works i have in to smaller assignments and just worked one by one to complete the whole task. By this way i handled my stressful situation and submitted my projects within the due time.


Ofcourse, such situations helps me to stay motivated and productive.

Report Error

View answer Workspace Report Error Discuss

13 6396
Q:

What is the difference between mysql_connect and mysql_pconnect?

Answer

There is a decent page in the php manual on the subject, in short mysql_pconnect() makes a persevering association with the database which implies a SQL join that don't close when the execution of your script closes. mysql_connect()provides just for the database new association while utilizing mysql_pconnect , the capacity would first attempt to locate a (relentless) connection that is as of now open with the same host, username and password. On the off chance that one is found, an identifier for it will be returned as opposed to opening another connection... the connection with the SQL server won't be terminated when the execution of the script ends. Rather, the link will stay open for future use.

Report Error

View answer Workspace Report Error Discuss

Subject: PHP
Job Role: Database Administration

4 6383
Q:

What is the difference between $argv and $argc? Give example?

Answer

To pass the information into the script from outside, help can be taken from the PHP CLI (Command line interface) method. Suppose addition of two numbers has to be passed to PHP then it can be passed like this on the command line:


php add.php 2 3


Here the script name is add.php, and 2 and 3 are the numbers that has to be added by the script. These numbers are available inside the script in an array called $argv. This array contains all the information on the command line; the statement is stored as follows:


$argv[0]=add.php


$argv[1]=2


$argv[2]=3


So, $argv always contains at least one element — the script name.


Then, in your script, you can use the following statements:


$sum = $argv[1] + $argv[2];


echo $sum;


$argc is a variable that stores the numbers of elements in $argv. $argc is equal to at least 1, which is saved for the name of the script. Example is $argc=3 using the above statements.

Report Error

View answer Workspace Report Error Discuss

Subject: PHP

0 6375
Q:

What entry is recorded when $75.00 worth of supplies are purchased on account?

Answer

Purchasing good two kinds of entry 


Either Cash or Credit 


 


If Cash


Purchase A/c ------ Dr  xx  To Cash A/c


(Being good purchase on cash)


 


If Credit 


Purchase A/c ---- Dr  To Supplier A/c


(Being goods purchase on Credit)

Report Error

View answer Workspace Report Error Discuss

Subject: Accounts Payable

15 6303
Q:

Which operator is used in catch-all handler?

A) ellipses operator B) ternary operator
C) string operator D) unary operator
 
Answer & Explanation Answer: A) ellipses operator

Explanation:

The ellipses operator can be represented as (…).

Report Error

View Answer Report Error Discuss

Filed Under: C++

0 6301