Interview Questions and Answers for 'Broadcom' - 5 question(s) found - Order By Newest Usually asked to entry level software developers. Q1. Write a program to swap two variables without using third Core Java
Ans. public static void main(String[] args) {
int num1 = 1;
int num2 = 2;
num1 = num1^num2;
num2 = num1^num2;
num1 = num1^num2;
System.out.print("num1 = " + num1 +", num2 = "+num2);
} Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  code  coding Asked in 37 Companies basic   frequent Q2. Have you ever heard about csrf attacks ? Security
Ans. Yes, Cross-Site Request Forgery (CSRF) is an attack that forces an end user to execute unwanted actions on a web application in which they're currently authenticated. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  csrf attack  Cross-Site Request Forgery (CSRF) Asked in 16 Companies Frequently asked Spring interview question. Q3. What are the components of Spring framework ? Spring
Ans. Core: [Core, Bean, Context, Expression Language]
Web: [Web, Portlet, Servlet, etc]
Data Access [JMS, JDBC, etc]
AOP, Aspect Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  spring  spring framework components Asked in 12 Companies Q4. What is systemd in Unix ? Unix
This question was recently asked at 'Broadcom, Symantec'.This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 2 Companies Q5. What is Array.Map function ? What will be output of following ?
const myArray = [1, 4, 9, 16];
const result = myArray.map(x => x * 2); Javascript
Ans. It will create an array with each value as x*2
[2, 8, 18, 32] Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 2 Companies