GE Online Code Writing Test

General Electric which is also known as GE conducts its placement drive for IT sectors every year in Mumbai & Bengaluru. The Campus placement  is starts with the aptitude test and followed by very  important Code writing test. Then students have to face  3 rounds of technical & HR interview to get into the company. The company offers package of  5 LPA and

Online Code Writing Test

Aptitude test is conducted at Andheri, Mumbai & selected candidates receive an email within 1-2 weeks after the aptitude test. Email contains 3 problems which candidates need to solve in any language (C,C++,Java.C# etc) and send back to the GE coordinators. After that they get a call for 2nd round which is Online Code writing Test.

GE: Company Profile

General Electric also known as GE is one of the world's biggest and famous companies. It operates a wide range of sectors  from energy , IT- techonolgy, aviation fields, finance etc. They are looking for people with who have Good logical skills, who are quick learner & having strong command of English.

Online Code Writing Test Questions

1. Express any no as summation of prime Numbers. User will enter any no. for example 28 then program must give output as addition of 4 prime numbers [  7 3 11 7 ]. as  7+3+11+7=28. Use an array to store the numbers & if given can not be expressed in such format return NULL or print message that this no can't be expressed.
2. Write a function to which will take 2 integers as parameters & which will return its addition
for ex in C#.
           public int Func(int a,int b)
            {
              return(a+b);
             }

GE Online Code Writing Test

General Electric which is also known as GE conducts its placement drive for IT sectors every year in Mumbai & Bengaluru. The Campus placement  is starts with the aptitude test and followed by very  important Code writing test. Then students have to face  3 rounds of technical & HR interview to get into the company. The company offers package of  5 LPA and

Online Code Writing Test

Aptitude test is conducted at Andheri, Mumbai & selected candidates receive an email within 1-2 weeks after the aptitude test. Email contains 3 problems which candidates need to solve in any language (C,C++,Java.C# etc) and send back to the GE coordinators. After that they get a call for 2nd round which is Online Code writing Test.

GE: Company Profile

General Electric also known as GE is one of the world's biggest and famous companies. It operates a wide range of sectors  from energy , IT- techonolgy, aviation fields, finance etc. They are looking for people with who have Good logical skills, who are quick learner & having strong command of English.

Online Code Writing Test Questions

1. Express any no as summation of prime Numbers. User will enter any no. for example 28 then program must give output as addition of 4 prime numbers [  7 3 11 7 ]. as  7+3+11+7=28. Use an array to store the numbers & if given can not be expressed in such format return NULL or print message that this no can't be expressed.
2. Write a function to which will take 2 integers as parameters & which will return its addition
for ex in C#.
           public int Func(int a,int b)
            {
              return(a+b);
             }

GE Online Code Writing Test

General Electric which is also known as GE conducts its placement drive for IT sectors every year in Mumbai & Bengaluru. The Campus placement  is starts with the aptitude test and followed by very  important Code writing test. Then students have to face  3 rounds of technical & HR interview to get into the company. The company offers package of  5 LPA and

Online Code Writing Test

Aptitude test is conducted at Andheri, Mumbai & selected candidates receive an email within 1-2 weeks after the aptitude test. Email contains 3 problems which candidates need to solve in any language (C,C++,Java.C# etc) and send back to the GE coordinators. After that they get a call for 2nd round which is Online Code writing Test.

GE: Company Profile

General Electric also known as GE is one of the world's biggest and famous companies. It operates a wide range of sectors  from energy , IT- techonolgy, aviation fields, finance etc. They are looking for people with who have Good logical skills, who are quick learner & having strong command of English.

Online Code Writing Test Questions

1. Express any no as summation of prime Numbers. User will enter any no. for example 28 then program must give output as addition of 4 prime numbers [  7 3 11 7 ]. as  7+3+11+7=28. Use an array to store the numbers & if given can not be expressed in such format return NULL or print message that this no can't be expressed.
2. Write a function to which will take 2 integers as parameters & which will return its addition
for ex in C#.
           public int Func(int a,int b)
            {
              return(a+b);
             }

One Response so far.

  1. Unknown says:

    import java.util.ArrayList;
    import java.util.List;
    import java.util.Scanner;
    class PrimeNumbers
    {
    List primeNums = new ArrayList();
    List numbers = new ArrayList();


    public static void main (String[] args)
    {
    Scanner scanner = new Scanner(System.in);
    int i =0;
    int num =0;
    //Empty String
    System.out.println("Enter the value of n:");
    int n = scanner.nextInt();
    PrimeNumbers p = new PrimeNumbers();
    p.print(n);
    p.sum(n);

    }

    public void print(int n) {
    int i =0;
    int num =0;
    for (i = 1; i <= n; i++)
    {
    int counter=0;
    for(num =i; num>=1; num--)
    {
    if(i%num==0)
    {
    counter = counter + 1;
    }
    }
    if (counter ==2)
    {
    primeNums.add(i);
    }
    }
    System.out.println("Prime numbers from 1 to n are :");
    System.out.println(primeNums);
    }

    public void sum(int n) {
    for(int g=1 ;g<5 ;g++){
    for(int k1=primeNums.size()-1;k1>=0;k1--){
    if(n-primeNums.get(k1)>=(2*(4-g))){
    numbers.add(primeNums.get(k1));
    n=n-primeNums.get(k1);
    break;
    }
    }
    }
    System.out.println(numbers);

    }
    }

Leave a Reply

Feedjit

Sponsor