Interview Questions

Q:

What of the following describes protected access specifier?

A) The variable is visible only outside inside the block B) The variable is visible everywhere
C) The variable is visible to its block and to it’s derived class D) None of these
 
Answer & Explanation Answer: C) The variable is visible to its block and to it’s derived class

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: C++

2 6467
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:

What is the difference between _construct() and _destruct() methods in php?

Answer

These two methods are bulid-in methods  in php. with  construct() we can overwride the parent class method. The inverse of the __construct() PHP capacity while making another class, is the __destruct() technique. The __destruct() technique will consequently keep running, after you've completed with the PHP class.

Report Error

View answer Workspace Report Error Discuss

Subject: PHP
Job Role: Software Architect

5 6454
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 6408
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:

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 6377
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 6304