Software Developer Intern Interview Questions

9,749 software developer intern interview questions shared by candidates

You are given two non-empty linked lists representing two non-negative integers. The most significant digit comes first and each of their nodes contains a single digit. Add the two numbers and return them as a linked list. You may assume the two numbers do not contain any leading zero, except the number 0 itself. Example: Input: (7 -> 2 -> 4 -> 3) + (5 -> 6 -> 4) Output: 7 -> 8 -> 0 -> 7
avatar

Software Engineer Intern

Interviewed at Intel Corporation

3.9
Oct 7, 2020

You are given two non-empty linked lists representing two non-negative integers. The most significant digit comes first and each of their nodes contains a single digit. Add the two numbers and return them as a linked list. You may assume the two numbers do not contain any leading zero, except the number 0 itself. Example: Input: (7 -> 2 -> 4 -> 3) + (5 -> 6 -> 4) Output: 7 -> 8 -> 0 -> 7

Determine the output of the following Java code: class B { public static void main(String[] args) { int k = 55; try { System.out.println("In try block"); int t = k/55; } catch (ArithmeticException e) { System.out.println("In catch block"); System.out.println("Dividing by zero but caught"); } finally { System.out.println("Execution, whether an exception occurs or not"); } } }
Oct 6, 2023

Determine the output of the following Java code: class B { public static void main(String[] args) { int k = 55; try { System.out.println("In try block"); int t = k/55; } catch (ArithmeticException e) { System.out.println("In catch block"); System.out.println("Dividing by zero but caught"); } finally { System.out.println("Execution, whether an exception occurs or not"); } } }

Viewing 9681 - 9690 interview questions

Glassdoor has 9,749 interview questions and reports from Software developer intern interviews. Prepare for your interview. Get hired. Love your job.