Interview Questions

Q:

How can we extract string "abc.com" from a string "https://info@abc.com" using regular _expression of php?

Answer

We can use the preg_match() function with “/.*@(.*)$/” as the regular expression pattern.
For example:
preg_match("/.*@(.*)$/","https://info@abc.com",$data);
echo $data[1];
?>

Report Error

View answer Workspace Report Error Discuss

Subject: PHP

0 4646
Q:

The first step in solving an Ethical Dilemma is to

A) identify the alternatives B) identify an etical situation and ethical issues involved
C) weigh the impact of each alternative on various stakeholders. D) recognize and analyze the principal elements in the situation.
 
Answer & Explanation Answer: B) identify an etical situation and ethical issues involved

Explanation:
Report Error

View Answer Report Error Discuss

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

7 4639
Q:

What is a container class?

Answer

A class is said to be a container class which is utilized for the purpose of holding objects in memory or persistent media. A generic class plays a role of generic holder. A container class is a good blend of predefined behavior and an interface that is well known. The purpose of container class is to hide the topology for the purpose of objects list maintenance in memory. A container class is known as heterogeneous container, when it contains a set of different objects. A container class is known as homogeneous container when it contains a set of similar objects.

Report Error

View answer Workspace Report Error Discuss

Subject: C++

2 4624
Q:

A budget is best described as

A) A master control device B) The most crucial component of a company evaluation process
C) A formal statement of a company's future plans usually expressed in monetary terms D) An informal statement of company future plans usually expressed in monetary terms
 
Answer & Explanation Answer: C) A formal statement of a company's future plans usually expressed in monetary terms

Explanation:

A Budget is a financial plan of expected cash inflows and outflows that a business generates.
It is generally a long-term statement involving ammual updates. It is best described as A formal statement of a company's future plans usually expressed in monetary terms.

Report Error

View Answer Report Error Discuss

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

0 4623
Q:

If Average Total Cost is declining then

A) The Marginal Cost is Less than Average Cost B) The Total Cost must also be Declining
C) The Marginal Cost is Greater than Average Cost D) The Average Fixed Cost curve must lie above the average variable cost curve
 
Answer & Explanation Answer: A) The Marginal Cost is Less than Average Cost

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Marketing and Sales

4 4622
Q:

Which class is used to indicate Black Navigation Bar ?

A) .navbar-inverse B) .navbar-black
C) .navbar-dark D) .navbar-default
 
Answer & Explanation Answer: A) .navbar-inverse

Explanation:

.navbar-inverse is used to display in black color.

Report Error

View Answer Report Error Discuss

Filed Under: .NET
Exam Prep: Bank Exams
Job Role: Analyst , IT Trainer

2 4621
Q:

List out the areas in which data structures are applied extensively?

Answer

Compiler Design,


 Operating System,


 Database Management System,


Statistical analysis package,


Numerical Analysis,


 Graphics,


 Artificial Intelligence,


 Simulation

Report Error

View answer Workspace Report Error Discuss

Subject: C++

4 4611
Q:

How is 3G different from 2G?

Answer

- Packet data speed is higher in 3G, and it is up to 384 KBPS
- Voice and sms speed is also 384 KBPS in 3G
- 2G utilizes different switching techniques for voice and data, where as  3G uses single switching, irrespective of data
- 3G has at least 2MB of data link of a mobile, where in 2G the data rate is in KBPS
- 3G has WiMAX facility for faster VOIP and internet
- 2G uses GSM TDMA technology with narrowband 200Khz.
- 3G uses CDMA technology with broadband 5Mhz, with same frequency carrier and time.

Report Error

View answer Workspace Report Error Discuss

3 4578